get_alert_state_history
Retrieve alert state transition history to debug alert behavior and understand evaluation patterns. Filter by rule UID, labels, or time range.
Instructions
Get alert state transition history.
Returns the history of state changes for alert rules, including transitions between Normal, Pending, Alerting, NoData, and Error states. Useful for debugging alert behavior and understanding evaluation patterns.
Args: connection_name: Name of the Grafana connection rule_uid: Optional filter by specific rule UID labels: Optional label matchers to filter history from_time: Start time (ISO 8601 or relative like "now-1h") to_time: End time (ISO 8601 or relative like "now") limit: Maximum number of history entries to return
Returns: JSON string with state history entries including timestamps and state transitions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| labels | No | ||
| to_time | No | ||
| rule_uid | No | ||
| from_time | No | ||
| connection_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |