Class AlertsAPI


  • @Generated
    public class AlertsAPI
    extends Object
    The alerts API can be used to perform CRUD operations on alerts. An alert is a Databricks SQL object that periodically runs a query, evaluates a condition of its result, and notifies one or more users and/or notification destinations if the condition was met. Alerts can be scheduled using the `sql_task` type of the Jobs API, e.g. :method:jobs/create.
    • Constructor Detail

      • AlertsAPI

        public AlertsAPI​(ApiClient apiClient)
        Regular-use constructor
      • AlertsAPI

        public AlertsAPI​(AlertsService mock)
        Constructor for mocks
    • Method Detail

      • create

        public Alert create​(CreateAlert request)
        Create an alert.

        Creates an alert. An alert is a Databricks SQL object that periodically runs a query, evaluates a condition of its result, and notifies users or notification destinations if the condition was met.

      • delete

        public void delete​(String alertId)
      • delete

        public void delete​(DeleteAlertRequest request)
        Delete an alert.

        Deletes an alert. Deleted alerts are no longer accessible and cannot be restored. **Note:** Unlike queries and dashboards, alerts cannot be moved to the trash.

      • list

        public Iterable<Alert> list()
        Get alerts.

        Gets a list of alerts.

      • update

        public void update​(EditAlert request)
        Update an alert.

        Updates an alert.