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.
Each alert status tracks:
alarm_status: The current state —within_limit(usage is below the threshold) orin_alarm(usage has breached the threshold).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 usage 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's usage is within the configured threshold or has breached it.
Usage is below the configured threshold. The alert has not been triggered for this subscription.
Usage has reached or exceeded the configured threshold. The alert has been triggered for this subscription.