Skip to main content

synthetics_test_version_histories

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

Overview

Namesynthetics_test_version_histories
TypeResource
Iddatadog.monitoring.synthetics_test_version_histories

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUUID of the version record. (example: 00000000-0000-0000-0000-000000000000)
attributesobjectAttributes of a specific Synthetic test version.
typestringType of the version resource. (version) (default: version, example: version)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_synthetics_test_versionselectpublic_id, version_numberinclude_change_metadata, only_check_existenceGet a specific version of a Synthetic test by its version number.
list_synthetics_test_versionsselectpublic_idlast_version_number, limitGet the paginated version history for a Synthetic 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 Synthetic test.
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.
version_numberinteger (int64)The version number to retrieve.
include_change_metadatabooleanIf true, include change metadata in the response.
last_version_numberinteger (int64)The version number of the last item from the previous page. Omit to get the first page.
limitinteger (int64)Maximum number of version records to return per page.
only_check_existencebooleanIf true, only check whether the version exists without returning its full payload. Returns an empty object if the version exists, or 404 if not.

SELECT examples

Get a specific version of a Synthetic test by its version number.

SELECT
id,
attributes,
type
FROM datadog.monitoring.synthetics_test_version_histories
WHERE public_id = '{{ public_id }}' -- required
AND version_number = '{{ version_number }}' -- required
AND include_change_metadata = '{{ include_change_metadata }}'
AND only_check_existence = '{{ only_check_existence }}'
;