Package com.databricks.sdk.service.sql
Class AlertsAPI
- java.lang.Object
-
- com.databricks.sdk.service.sql.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 Summary
Constructors Constructor Description AlertsAPI(ApiClient apiClient)
Regular-use constructorAlertsAPI(AlertsService mock)
Constructor for mocks
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Alert
create(CreateAlert request)
Create an alert.Alert
create(String name, AlertOptions options, String queryId)
void
delete(DeleteAlertRequest request)
Delete an alert.void
delete(String alertId)
Alert
get(GetAlertRequest request)
Get an alert.Alert
get(String alertId)
AlertsService
impl()
Iterable<Alert>
list()
Get alerts.void
update(EditAlert request)
Update an alert.void
update(String name, AlertOptions options, String queryId, String alertId)
-
-
-
Constructor Detail
-
AlertsAPI
public AlertsAPI(ApiClient apiClient)
Regular-use constructor
-
AlertsAPI
public AlertsAPI(AlertsService mock)
Constructor for mocks
-
-
Method Detail
-
create
public Alert create(String name, AlertOptions options, String queryId)
-
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.
-
get
public Alert get(GetAlertRequest request)
Get an alert.Gets an alert.
-
update
public void update(String name, AlertOptions options, String queryId, String alertId)
-
update
public void update(EditAlert request)
Update an alert.Updates an alert.
-
impl
public AlertsService impl()
-
-