API.fetch_alert_rule#

API.fetch_alert_rule(alert_rule_id: int, raise_on_status: bool = True) Union[Response, Dict[str, Any]]#

Create alert rule.

Parameters
alert_rule_idint

The ID of the alert rule

raise_on_statusbool

Whether to raise error on bad status code or not

Returns
Union[httpx.Response, Dict[str, Any]]

The response from the server