Skip to main content

synthetics_downtime_tests

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

Overview

Namesynthetics_downtime_tests
TypeResource
Iddatadog.monitoring.synthetics_downtime_tests

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
add_test_to_synthetics_downtimereplacedowntime_id, test_idAssociate a Synthetics test with a downtime.
remove_test_from_synthetics_downtimedeletedowntime_id, test_idDisassociate a Synthetics test from a downtime.

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
downtime_idstringThe ID of the downtime.
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.
test_idstringThe public ID of the Synthetics test to disassociate from the downtime.

REPLACE examples

Associate a Synthetics test with a downtime.

REPLACE datadog.monitoring.synthetics_downtime_tests
SET
-- No updatable properties
WHERE
downtime_id = '{{ downtime_id }}' --required
AND test_id = '{{ test_id }}' --required
RETURNING
data;

DELETE examples

Disassociate a Synthetics test from a downtime.

DELETE FROM datadog.monitoring.synthetics_downtime_tests
WHERE downtime_id = '{{ downtime_id }}' --required
AND test_id = '{{ test_id }}' --required
;