List of Synthetic suites matching the search query.
message
string
Notification message associated with the suite.
monitor_id
int64
The associated monitor ID.
name [required]
string
Name of the suite.
options [required]
object
Object describing the extra options for a Synthetic suite.
alerting_threshold
double
Percentage of critical tests failure needed for a suite to fail.
public_id
string
The public ID for the test.
tags
[string]
Array of tags attached to the suite.
tests [required]
[object]
Array of Synthetic tests included in the suite.
alerting_criticality
enum
Alerting criticality for each the test.
Allowed enum values: ignore,critical
public_id [required]
string
The public ID of the Synthetic test included in the suite.
type [required]
enum
Type of the Synthetic suite, suite.
Allowed enum values: suite
default: suite
total
int32
Total number of Synthetic suites matching the search query.
id
uuid
The unique identifier of the suite search response data.
type
enum
Type for the Synthetics suites search response, suites_search.
Allowed enum values: suites_search
default: suites_search
{"data":{"attributes":{"suites":[{"message":"Notification message","monitor_id":12345678,"name":"Example suite name","options":{"alerting_threshold":"number"},"public_id":"123-abc-456","tags":["env:production"],"tests":[{"alerting_criticality":"critical","public_id":""}],"type":"suite"}],"total":"integer"},"id":"string","type":"suites_search"}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_API_KEY="<DD_API_KEY>"DD_APP_KEY="<DD_APP_KEY>"cargo run
/**
* Search test suites returns "OK" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv2.SyntheticsApi(configuration);apiInstance.searchSuites().then((data: v2.SyntheticsSuiteSearchResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));