Synthetic monitor executions API v2 - GET all on-demand executions
Gets a list of all all on-demand executions of synthetic monitors.
The request produces an application/json
payload.
GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/synthetic/executions |
Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/synthetic/executions |
Authentication
To execute this request, you need an access token with one of the following scopes:
syntheticExecutions.read
ExternalSyntheticIntegration
ReadSyntheticData
To learn how to obtain and use it, see Tokens and authentication.
Parameters
Filters the resulting set of executions by their stage.
TRIGGERED
EXECUTED
DATA_RETRIEVED
The start of the requested timeframe for scheduling timestamps.
You can use one of the following formats:
- Timestamp in UTC milliseconds.
- Human-readable format of
2021-01-25T05:57:01.123+01:00
. If no time zone is specified, UTC is used. You can use a space character instead of theT
. Seconds and fractions of a second are optional. - Relative timeframe, back from now. The format is
now-NU/A
, whereN
is the amount of time,U
is the unit of time, andA
is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example,now-1y/w
is one year back, aligned by a week. You can also specify relative timeframe without an alignment:now-NU
. Supported time units for the relative timeframe are:m
: minutesh
: hoursd
: daysw
: weeksM
: monthsy
: years
If not set, the maximum relative timeframe of six hours is used (now-6h
).
The end of the requested timeframe for scheduling timestamps.
You can use one of the following formats:
- Timestamp in UTC milliseconds.
- Human-readable format of
2021-01-25T05:57:01.123+01:00
. If no time zone is specified, UTC is used. You can use a space character instead of theT
. Seconds and fractions of a second are optional. - Relative timeframe, back from now. The format is
now-NU/A
, whereN
is the amount of time,U
is the unit of time, andA
is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example,now-1y/w
is one year back, aligned by a week. You can also specify relative timeframe without an alignment:now-NU
. Supported time units for the relative timeframe are:m
: minutesh
: hoursd
: daysw
: weeksM
: monthsy
: years
If not set, the current timestamp is used.
The start of the requested timeframe for execution timestamps.
You can use one of the following formats:
- Timestamp in UTC milliseconds.
- Human-readable format of
2021-01-25T05:57:01.123+01:00
. If no time zone is specified, UTC is used. You can use a space character instead of theT
. Seconds and fractions of a second are optional. - Relative timeframe, back from now. The format is
now-NU/A
, whereN
is the amount of time,U
is the unit of time, andA
is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example,now-1y/w
is one year back, aligned by a week. You can also specify relative timeframe without an alignment:now-NU
. Supported time units for the relative timeframe are:m
: minutesh
: hoursd
: daysw
: weeksM
: monthsy
: years
If not set, the maximum relative timeframe of six hours is used (now-6h
).
The end of the requested timeframe for execution timestamps.
You can use one of the following formats:
- Timestamp in UTC milliseconds.
- Human-readable format of
2021-01-25T05:57:01.123+01:00
. If no time zone is specified, UTC is used. You can use a space character instead of theT
. Seconds and fractions of a second are optional. - Relative timeframe, back from now. The format is
now-NU/A
, whereN
is the amount of time,U
is the unit of time, andA
is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example,now-1y/w
is one year back, aligned by a week. You can also specify relative timeframe without an alignment:now-NU
. Supported time units for the relative timeframe are:m
: minutesh
: hoursd
: daysw
: weeksM
: monthsy
: years
If not set, the current timestamp is used.
The start of the requested timeframe for data delivering timestamps.
You can use one of the following formats:
- Timestamp in UTC milliseconds.
- Human-readable format of
2021-01-25T05:57:01.123+01:00
. If no time zone is specified, UTC is used. You can use a space character instead of theT
. Seconds and fractions of a second are optional. - Relative timeframe, back from now. The format is
now-NU/A
, whereN
is the amount of time,U
is the unit of time, andA
is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example,now-1y/w
is one year back, aligned by a week. You can also specify relative timeframe without an alignment:now-NU
. Supported time units for the relative timeframe are:m
: minutesh
: hoursd
: daysw
: weeksM
: monthsy
: years
If not set, the maximum relative timeframe of six hours is used (now-6h
).
The end of the requested timeframe for data delivering timestamps.
You can use one of the following formats:
- Timestamp in UTC milliseconds.
- Human-readable format of
2021-01-25T05:57:01.123+01:00
. If no time zone is specified, UTC is used. You can use a space character instead of theT
. Seconds and fractions of a second are optional. - Relative timeframe, back from now. The format is
now-NU/A
, whereN
is the amount of time,U
is the unit of time, andA
is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example,now-1y/w
is one year back, aligned by a week. You can also specify relative timeframe without an alignment:now-NU
. Supported time units for the relative timeframe are:m
: minutesh
: hoursd
: daysw
: weeksM
: monthsy
: years
If not set, the current timestamp is used.
Filters the resulting set of the executions by batch. Specify the ID of the batch.
Filters the resulting set of the executions by monitor synthetic monitor. Specify the ID of the monitor.
Filters the resulting set of the executions by Synthetic location. Specify the ID of the location.
Filters the resulting set of executions by scheduled user.
Filters the resulting set of the executions by the source of the triggering request.
API
UI
Response
Response codes
Response body objects
The SyntheticOnDemandExecutions
object
Contains a list of synthetic on-demand executions.
The SyntheticOnDemandExecution
object
Describes the status of an on-demand execution.
The identifier of the batch.
The timestamp when whole data set has been collected on server, in UTC milliseconds.
The identifier of the execution.
Execution stage.
DATA_RETRIEVED
EXECUTED
NOT_TRIGGERED
TIMED_OUT
TRIGGERED
WAITING
The timestamp when execution was finished, in UTC milliseconds.
The identifier of the location from where the monitor is to be executed.
Metadata map for the execution batch.
The identifier of the monitor.
Next execution id for sequential mode.
The processing mode of the execution.
DISABLE_PROBLEM_DETECTION
EXECUTIONS_DETAILS_ONLY
NONE
STANDARD
UNKNOWN
The scheduling timestamp, in UTC milliseconds.
The source of the triggering request.
API
UI
The name of the user who triggered the on-demand execution.
The ObjectNode
object
Customized script properties for this on-demand batch execution.
The ExecutionFullResults
object
Contains extended monitor's execution details.
Error code.
Number executed steps.
Failed step name.
Failed step sequence id.
Failure message.
Execution status.
The ExecutionStep
object
Contains detailed information about the monitor's step execution.
Defines the actual set of fields depending on the value. See one of the following objects:
BROWSER
-> BMActionHTTP
-> MonitorRequestExecutionResult
BROWSER
HTTP
The ExecutionSimpleResults
object
Contains basic results of the monitor's on-demand execution.
Informs whether is Chrome error.
Synthetic engine id on which monitor was executed.
Error code.
Number of the executed steps by Synthetic engine
Failure message.
A hostname resolution time measured in milliseconds.
Informs whether is HTTP error.
DEPRECATED
An expiry date of the first SSL certificate from the certificate chain.
Flag informs whether request was executed on public location.
Total number of milliseconds spent on handling all redirect requests, measured in milliseconds.
Number of redirects.
A flag indicating that the response payload size limit of 10MB has been exceeded.
Request's response size in bytes.
Response status code.
Start timestamp.
Execution status.
A TCP connect time measured in milliseconds.
A time to first byte measured in milliseconds.
A TLS handshake time measured in milliseconds.
A total time measured in milliseconds.
Response body JSON model
{"executions": [{"executionId": "7002396514015719218","executionStage": "EXECUTED","executionTimestamp": "1629891695487","locationId": "SYNTHETIC_LOCATION-9BB04DAEBA71B8CA","monitorId": "HTTP_CHECK-6349B98E1CD87352","schedulingTimestamp": "1629891686877","userId": "someUserIdentifier"}]}