• Home
  • Dynatrace API
  • Environment
  • Synthetic v2
  • Monitor executions
  • GET summary of a batch execution

Synthetic monitor executions API v2 - GET summary of a batch execution

Gets the summary of a batch execution of synthetic monitors.

The request produces an application/json payload.

GETManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/v2/synthetic/executions/batch/{batchId}
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/synthetic/executions/batch/{batchId}
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v2/synthetic/executions/batch/{batchId}

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

ParameterTypeDescriptionInRequired
batchIdinteger

The batch identifier of the executions.

pathrequired

Response

Response codes

CodeTypeDescription
200SyntheticOnDemandBatchStatus

Success

Response body objects

The SyntheticOnDemandBatchStatus object

Contains information about on-demand executions triggered within the batch.

ElementTypeDescription
batchIdstring

The identifier of the batch.

userIdstring

The name of the user who triggered execution of the batch.

batchStatusstring

The status of the batch.

The element can hold these values
  • FAILED
  • FAILED_TO_EXECUTE
  • NOT_TRIGGERED
  • RUNNING
  • SUCCESS
triggeredCountinteger

The number of triggered executions within the batch.

executedCountinteger

The number of triggered executions with the result SUCCESS or FAILED.

failedCountinteger

The number of triggered executions with the result FAILED.

failedExecutionsSyntheticOnDemandFailedExecutionStatus[]-
failedToExecuteCountinteger

The number of executions that were triggered and timed out because of a problem with the Synthetic engine.

failedToExecuteSyntheticOnDemandFailedExecutionStatus[]-
metadataobject

String to string map of metadata properties for batch

triggeringProblemsCountinteger

The number of executions that were not triggered due to some problems.

triggeringProblemsSyntheticOnDemandTriggeringProblemDetails[]-

The SyntheticOnDemandFailedExecutionStatus object

Contains information about on-demand executions that failed or failed to be executed.

ElementTypeDescription
executionIdstring

The identifier of the execution.

executionStagestring

Execution stage.

The element can hold these values
  • DATA_RETRIEVED
  • EXECUTED
  • NOT_TRIGGERED
  • TIMED_OUT
  • TRIGGERED
  • WAITING
failureMessagestring

Failure message.

errorCodestring

Error code.

executionTimestampinteger

The timestamp when execution was finished, in UTC milliseconds.

monitorIdstring

The identifier of the monitor.

locationIdstring

The identifier of the location from where the monitor is to be executed.

The SyntheticOnDemandTriggeringProblemDetails object

Contains the details of problems encountered while triggering on-demand executions.

ElementTypeDescription
entityIdstring

The entity identifier.

locationIdstring

The location identifier.

causestring

The cause of not triggering entity.

Response body JSON model

json
{ "batchId": "22396514015719218", "userId": "admin", "batchStatus": "FAILED_TO_EXECUTE", "triggeredCount": 3, "executedCount": 1, "failedCount": 1, "failedExecutions": [ { "executionId": "1629891693487", "executionStage": "EXECUTED", "failureMessage": "Validate text match failed", "errorCode": "CONSTRAINT_VIOLATED(3)", "executionTimestamp": "1629891695487", "monitorId": "HTTP_CHECK-6349B98E1CD87352", "locationId": "SYNTHETIC_LOCATION-9BB04DAEBA71B8CA" } ], "failedToExecuteCount": 1, "failedToExecute": [ { "executionId": "478437504", "executionStage": "TIMED_OUT", "monitorId": "SYNTHETIC_TEST-027011D7D27CC892", "locationId": "SYNTHETIC_LOCATION-90380DA8A44C74BD" } ], "triggeringProblemsCount": 2, "triggeringProblems": [ { "entityId": "HTTP_CHECK-6349B98E1CD87352", "locationId": "SYNTHETIC_LOCAT-9BB04DAEBA71B8CA", "cause": "Location not found" }, { "entityId": "APPLICATION-WRONG", "cause": "Incorrect application identifier format" } ], "metadata": { "key": "value", "version": "1.255.20221022" } }
Related topics
  • Synthetic Monitoring

    Learn about Synthetic Monitoring and how to create a single-URL browser monitor, a browser clickpath, or an HTTP monitor.