namestring
Name of the alert (4-100 characters)
messagestring
Alert message shown when the alert fires
alertThresholdnumber double
Threshold value that triggers the alert
warningThresholdnumber double nullable
Optional warning threshold value. Pass null to clear.
formulastring nullable
Formula expression. Pass null to clear.
windowMsnumber double
How far back and how frequently a metric should be checked, in milliseconds. Must be between 60_000 and 30 days.
condition'greater' | 'greater_or_equal' | 'less' | 'less_or_equal' | 'equal' | 'not_equal'
Condition under which a metric change triggers an alert
priority'P1' | 'P2' | 'P3' | 'P4'
renotificationConditionsstring[] nullable
Conditions under which a re-notification is sent. Pass null to clear.
renotificationWindowMsnumber double
How long to wait before re-notifying, in ms
evaluationDelayMsnumber double
Delay before evaluating metrics, in milliseconds. Pass 0 to clear.
renotificationMessagestring
teamIDstring nullable
ID of the team that owns this alert. Pass null to clear.
definitionMetricsJsonstring[]
JSON-encoded metric definitions evaluated by the alert. Each entry is a stringified ToplineAlertMExDefinitionOrUnresolved. When omitted, existing definitions are preserved. Pass an empty array to clear all metrics.
tagsstring[]
Tags to attach to the alert. When omitted, existing tags are preserved. Pass an empty array to clear all tags.