AlertConfig
Alert definition within a monitor configuration.Unique identifier for the alert
Display name for the alert
Declarative condition or callback function that determines when to fire
Array of channel IDs to notify when the alert fires
Severity level of the alert. Defaults to “warning”.
Multi-region threshold for firing. Defaults to “any”.
Re-notify if alert stays firing for this many milliseconds
DeclarativeCondition
Declarative alert conditions that can be configured without writing code.Fire when N consecutive check failures occur
Fire when N consecutive check successes occur (used for recovery alerts)
Fire when latency exceeds this threshold in milliseconds
Optional: number of checks the condition must be true for (used with
latencyAboveMs and status)Fire when monitor reaches this status
Fire when monitor has been down for this duration in milliseconds
Fire when monitor has been up for this duration in milliseconds
ConditionCallback
Callback-based condition function for advanced custom logic.The current check result with ID
Array of recent check results for historical analysis
Return
true to fire the alert, false otherwiseAlertSeverity
Alert severity levels.Critical severity - requires immediate attention
Warning severity - should be investigated
Informational severity - for awareness only
AlertStatus
Alert state in memory and database.Alert condition is not met
Alert condition is met and alert is firing
AlertEventType
Alert event types for webhook notifications.Alert has started firing
Alert has been resolved and is no longer firing
RegionThreshold
Region threshold for multi-region alerting.Fire if any region triggers (default)
Fire if more than 50% of regions trigger
Fire only if all regions trigger
Fire if N or more regions trigger
CheckResultWithId
Check result with ID for database references and alert evaluation.Unique identifier for the check result
ID of the monitor that performed the check
Status of the check
Response time in milliseconds
HTTP status code if applicable, null otherwise
Optional message describing the check result
Timestamp when the check was performed
AlertSnapshot
Snapshot of monitor state when an alert fires.Number of consecutive failures at the time of firing
Number of consecutive successes at the time of firing
Last status of the monitor
Last response time in milliseconds, or null if not available
Last message from the monitor check, or null if not available