An alert status represents the runtime evaluation of an alert for a specific subscription. While the alert resource defines the threshold rule, the alert status tells you whether a subscription is currently within_limit or in_alarm for that rule. Statuses are tracked for every alert type — usage_exceeded and spend_exceeded.
Each alert status tracks:
alarm_status: The current state —within_limit(the subscription is within the configured threshold) orin_alarm(the threshold has been breached).alarm_triggered_at: The timestamp when the alert last entered thein_alarmstate. This isnullif the alert has never been triggered for this subscription.
Note: Alert statuses are computed by Chargebee based on billing data and the alert configuration. They are read-only — you cannot create or update an alert status directly. To change the threshold rule, use the Alerts API.
Sample Alert statusJSON
API Index URL
Alert statuses attributes
The identifier of the alert configuration that this status corresponds to.
The identifier of the subscription that this status is evaluated for.
The current runtime state of the alert for this subscription. Indicates whether the subscription is within the configured threshold or has breached it.
The subscription is within the configured threshold.
The configured threshold has been breached and the alert has been triggered for this subscription. For usage_exceeded and spend_exceeded alerts, this means the measured value has reached or exceeded the threshold.