client.get_triggered_alerts

To get a list of all triggered alerts for given alert rule and time period

Input ParametersTypeDefaultDescription
alert_rule_uuidstrNoneThe unique system generated identifier for the alert rule.
start_timeOptional[datetime]NoneStart time to filter trigger alerts in yyyy-MM-dd format, inclusive.
end_timeOptional[datetime]NoneEnd time to filter trigger alerts in yyyy-MM-dd format, inclusive.
offsetOptional[int]NonePointer to the starting of the page index
limitOptional[int]NoneNumber of records to be retrieved per page, also referred as page_size
orderingOptional[List[str]]NoneList of Alert Rule fields to order by. Eg. [‘alert_time_bucket’] or [‘- alert_time_bucket’] for descending order.

📘

Info

The Fiddler client can be used to get a list of triggered alerts for given alert rule and time duration.


trigerred_alerts = client.get_triggered_alerts(
    alert_rule_uuid = "588744b2-5757-4ae9-9849-1f4e076a58de",
    start_time = "2022-05-01",
    end_time = "2022-09-30",
    ordering = ['alert_time_bucket'], #['-alert_time_bucket'] for descending
    limit= 4, ## to set number of rules to show in one go
    offset = 0, # page offset
)
Return TypeDescription
List[TriggeredAlerts]A List containing TriggeredAlerts objects returned by the query.