Alert record representing a triggered alert instance. An AlertRecord captures the details of a specific alert trigger event, including the metric values, thresholds, and context that caused an AlertRule to fire. Alert records provide essential data for monitoring analysis and troubleshooting.Documentation Index
Fetch the complete documentation index at: https://handbook.fiddler.ai/llms.txt
Use this file to discover all available pages before exploring further.
Example
Alert records are read-only entities created automatically by the Fiddler platform when AlertRules trigger. They cannot be created or modified directly but provide valuable historical data for analysis and debugging.
Alert records are read-only entities that capture historical alert trigger events. They are created automatically by the system and cannot be modified after creation.Return type: None
classmethod list(alert_rule_id, start_time=None, end_time=None, ordering=None)
List alert records triggered by a specific alert rule. Retrieves historical alert records for analysis and troubleshooting. This method provides access to all alert trigger events within a specified time range, enabling pattern analysis and threshold tuning.Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
alert_rule_id | `UUID | str` | ✗ | None |
start_time | `datetime | None` | ✗ | 7 days ago |
end_time | `datetime | None` | ✗ | current time |
ordering | list[str] | None | ✗ | None | List of field names for result ordering. Prefix with ”-” for descending order (e.g., [“-created_at”] for newest first). |
Yields
AlertRecord — Alert record instances with complete trigger details and context information. Return type: Iterator[AlertRecord]
Example
Results are paginated automatically. The default time range is 7 days to balance performance with useful historical context. Use ordering parameters to get the most relevant results first.