Skip to main content

synthetics_api_test_results

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

Overview

Namesynthetics_api_test_results
TypeResource
Iddatadog.monitoring.synthetics_api_test_results

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
result_idstringID of the API test result.
checkobjectObject describing the API test configuration.
check_timenumber (double)When the API test was conducted.
check_versioninteger (int64)Version of the API test used.
probe_dcstringLocations for which to query the API test results.
resultobjectObject containing results for your Synthetic API test.
statusinteger (int64)The status of your Synthetic monitor. * O for not triggered * 1 for triggered * 2 for no data (0, 1, 2)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_apitest_resultselectpublic_id, result_idGet a specific full result from a given Synthetic API test.
get_apitest_latest_resultsselectpublic_idfrom_ts, to_ts, probe_dcGet the last 150 test results summaries for a given Synthetic API test.

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
public_idstringThe public ID of the test for which to search results for.
result_idstringThe ID of the result to get.
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.
from_tsinteger (int64)Timestamp in milliseconds from which to start querying results.
probe_dcarrayLocations for which to query results.
to_tsinteger (int64)Timestamp in milliseconds up to which to query results.

SELECT examples

Get a specific full result from a given Synthetic API test.

SELECT
result_id,
check,
check_time,
check_version,
probe_dc,
result,
status
FROM datadog.monitoring.synthetics_api_test_results
WHERE public_id = '{{ public_id }}' -- required
AND result_id = '{{ result_id }}' -- required
;