Trigger an on-demand test run for a monitor
Server:
https://{kibana_url}
- POST /api/synthetics/monitor/test/{monitorId}
Trigger an immediate test execution for the specified monitor. The response includes the generated testRunId. If the test encounters issues in one or more service locations, an errors array is also returned with details about the failures.
Path Parameters
-
monitorIdstringrequired -
The ID (config_id) of the monitor to test.
Responses
Test run triggered successfully.
-
errorsobject -
Array of errors encountered while triggering the test, one per service location.
-
errorobjectrequired -
failed_monitorsobjectrequired nullable -
Optional list of monitors that failed at the location.
-
reasonstringrequired -
Human-readable explanation of the failure.
-
statusintegerrequired -
HTTP status code returned by the agent.
-
locationIdstringrequired -
Identifier of the service location where the error occurred.
-
testRunIdstringrequired -
Unique identifier for the triggered test run.
404
Monitor not found.