Alerts
Manage Databricks SQL assets, including warehouses, dashboards, queries and query history, and alerts
List Alerts GA
GET
Gets a list of alerts accessible to the user, ordered by creation time. Warning: Calling this API concurrently 10 or more times could result in throttling, service degradation, or a temporary ban.
API scopes: sql
Parameters
- page_tokenstringquery
- page_sizeint32query
Response
- resultsarray of object
Show child attributesHide child attributes
- idstring
UUID identifying the alert.
- display_namestring
The display name of the alert.
- query_idstring
UUID of the query attached to the alert.
- statestring
Current state of the alert's trigger status. This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation.
- seconds_to_retriggerint32
Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again.
- lifecycle_statestring
The workspace state of the alert. Used for tracking trashed status.
- trigger_timestring
Timestamp when the alert was last triggered, if the alert has been triggered before.
- custom_bodystring
Custom body of alert notification, if it exists. See here for custom templating instructions.
- custom_subjectstring
Custom subject of alert notification, if it exists. This can include email subject entries and Slack notification headers, for example. See here for custom templating instructions.
- conditionobject
Trigger conditions of the alert.
Show child attributesHide child attributes
- opstring
Operator used for comparison in alert evaluation.
- operandobject
Name of the column from the query result to use for comparison in alert evaluation.
Show child attributesHide child attributes
- valueobjectRequired
- columnobjectRequired
- thresholdobject
Threshold value used for comparison in alert evaluation.
Show child attributesHide child attributes
- valueobjectRequired
- columnobjectRequired
- empty_result_statestring
Alert state if result is empty.
- owner_user_namestring
The owner's username. This field is set to "Unavailable" if the user has been deleted.
- parent_pathstring
The workspace path of the folder containing the alert.
- create_timestring
The timestamp indicating when the alert was created.
- update_timestring
The timestamp indicating when the alert was updated.
- notify_on_okboolean
Whether to notify alert subscribers when alert returns back to normal.
- next_page_tokenstring