Get alerts and their state
Everything the alerts page and the global indicator need, in one response. Polled by the console, so it makes two upstream calls and a few database reads.
/api/v1/alertstse_sessionAPI key · cookierequiredOK
deliveryConfiguredbooleanrequiredAt least one global destination is stored
engineReachablebooleanrequiredplannedOperationsPlannedSilencesViewrequiredShow propertiesHide properties
enabledbooleanrequiredThe console silences the expected alerts of a service while a planned operation of the service runs
silencesPlannedSilenceView[]requiredOne entry for each operation with silences, also in the grace after its end. Empty when the alert router cannot be reached.
Show propertiesHide properties
PlannedSilenceViewoperationstringrequiredThe operation, for example service upgrade
runningbooleanrequiredfalse in the grace after the end of the operation
serviceIdstringrequiredserviceNamestringrequireduntilstringrequiredRFC3339: the end of the silences
workflowIdstringrequiredEmpty for an action with no workflow, for example a rolling restart
rulesAlertRuleStatus[]requiredShow propertiesHide properties
AlertRuleStatuserrorstringforstringrequiredThe rule's duration; empty when it has none
groupstringrequiredinstancesAlertInstance[]requiredShow propertiesHide properties
AlertInstanceinhibitedbooleanrequiredAnother firing alert holds back this instance
labelsobjectrequiredIdentity labels of this firing series
silencedbooleanrequiredA silence matches this instance
sincestringrequiredWhen this instance entered its current state (RFC3339)
statestringrequiredpending while the rule's duration runs, then firing
pendingfiringvaluestringrequiredThe evaluated figure, which is what makes the alert actionable
namestringrequiredseveritystringrequiredwarning or critical; empty for the heartbeat
statusstringrequiredokpendingtriggeredunknownheartbeatdisabledsummarystringrequiredsummaryAlertCountsrequiredShow propertiesHide properties
okinteger<int64>requiredpendinginteger<int64>requiredtriggeredinteger<int64>requiredunknowninteger<int64>requiredError
codestringStable code of the refusal, when the route has codes
detailsstring[]Additional detail, e.g. per-field validation failures
errorstringrequiredHuman-readable error message