Deterministic alerts
Turn dashboard values and update timing into explicit rules. Glance evaluates the rule you define; no model decides whether an incident is firing, recovered or ready to notify.
Choose a condition
Timing and incident state
Create rules over MCP
Call create_alert with the dashboard ID and a complete definition. These two examples differ only in the condition and destination shape.
{
"dashboardId": "operations",
"definition": {
"name": "High CPU",
"enabled": true,
"kind": "threshold",
"source": "cpuPercent",
"operator": "gt",
"value": 90,
"sustainSeconds": 120,
"cooldownSeconds": 900,
"notifyOnRecovery": true,
"destinations": [
{ "kind": "email", "to": "ops@example.com" }
]
}
}{
"dashboardId": "sales",
"definition": {
"name": "Pipeline feed stale",
"enabled": true,
"kind": "freshness",
"source": "pipeline",
"staleAfterSeconds": 300,
"sustainSeconds": 60,
"cooldownSeconds": 900,
"notifyOnRecovery": true,
"destinations": [
{ "kind": "webhook", "url": "https://hooks.example.com/glance" }
]
}
}update_alert is a full replacement, not a patch. Send the entire definition, including every destination you want to keep; omitted fields and destinations are not inherited from the saved rule.
Destinations stay write-only
Saved email addresses and webhook URLs are write-only. Read tools and the admin page show a redacted label, never the raw target. Because update_alert replaces the definition, you must re-enter every email address or webhook URL when editing a rule; the previous value cannot be copied back out of Glance.
Delivery history
Each firing or recovery notification starts pending, then becomes delivered or failed. History and attempt counts remain available after a rule is edited or removed, in the dashboard's Alerts panel and through list_alert_deliveries.
Transient network and timeout failures retry with capped exponential backoff. Permanent failures such as an unsafe destination or rejected response become terminal immediately; a transient failure becomes terminal after its maximum attempts. Duplicate or overlapping workers use leased claims and idempotency keys rather than double-sending a delivery.
Admin and operations
Need the connection and dashboard publishing reference? Return to the publisher docs.