Create
POST {{baseUrl}}/alerts_synthetics_conditions/policies/{{policy_id}}.json
This API endpoint allows you to create Synthetics conditions for your alert policies.
Note: Admin User’s API Key is required.
See our documentation for a discussion on creating Synthetic conditions.
All fields are required except for “runbook_url”, “enabled” (defaults to false).
name: A title for your condition.
monitor_id: The GUID of the Synthetics monitor to alert on.
runbook_url: Runbook URL to display in notifications (optional).
enabled: The status of your condition (optional).
Request Body
{"synthetics_condition"=>{"enabled"=>"<boolean>", "monitor_id"=>"<string>", "name"=>"<string>", "runbook_url"=>"<string>"}}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"synthetics_condition":{"enabled":true,"id":-64493306,"monitor_id":"ex nostrud aliqua","name":"adipisicing ipsum","runbook_url":"dolore"}}