Skip to main content

synthetics_test_search_results

Creates, updates, deletes, gets or lists a synthetics_test_search_results resource.

Overview

Namesynthetics_test_search_results
TypeResource
Iddatadog.monitoring.synthetics_test_search_results

Fields

The following fields are returned by SELECT queries:

OK - Returns the list of Synthetic tests matching the search.

NameDatatypeDescription
namestringName of the test.
monitor_idinteger (int64)The associated monitor ID.
public_idstringThe test public ID.
configobjectConfiguration object for a Synthetic test.
creatorobjectObject describing the creator of the shared element.
locationsarrayArray of locations used to run the test.
messagestringNotification message associated with the test.
optionsobjectObject describing the extra options for a Synthetic test.
statusstringDefine whether you want to start (live) or pause (paused) a Synthetic test. (live, paused) (example: live)
subtypestringThe subtype of the Synthetic API test, http, ssl, tcp, dns, icmp, udp, websocket, grpc or multi. (http, ssl, tcp, dns, multi, icmp, udp, websocket, grpc) (example: http)
tagsarrayArray of tags attached to the test.
typestringType of the Synthetic test. (api, browser, mobile, network)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
search_testsselecttext, include_full_config, facets_only, start, count, sortSearch for Synthetic tests.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.
countinteger (int64)The maximum number of results to return.
facets_onlybooleanIf true, return only facets instead of full test details.
include_full_configbooleanIf true, include the full configuration for each test in the response.
sortstringThe sort order for the results (e.g., name,asc or name,desc).
startinteger (int64)The offset from which to start returning results.
textstringThe search query.

SELECT examples

Search for Synthetic tests.

SELECT
name,
monitor_id,
public_id,
config,
creator,
locations,
message,
options,
status,
subtype,
tags,
type
FROM datadog.monitoring.synthetics_test_search_results
WHERE text = '{{ text }}'
AND include_full_config = '{{ include_full_config }}'
AND facets_only = '{{ facets_only }}'
AND start = '{{ start }}'
AND count = '{{ count }}'
AND sort = '{{ sort }}'
;