@Generated public class AlertsAPI extends Object
Constructor and Description |
---|
AlertsAPI(AlertsService mock)
Constructor for mocks
|
AlertsAPI(ApiClient apiClient)
Regular-use constructor
|
Modifier and Type | Method and 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 alertId,
String name,
AlertOptions options,
String queryId) |
public AlertsAPI(ApiClient apiClient)
public AlertsAPI(AlertsService mock)
public Alert create(String name, AlertOptions options, String queryId)
public Alert create(CreateAlert request)
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.
public void delete(String alertId)
public void delete(DeleteAlertRequest request)
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.
public Alert get(GetAlertRequest request)
Gets an alert.
public void update(String alertId, String name, AlertOptions options, String queryId)
public void update(EditAlert request)
Updates an alert.
public AlertsService impl()
Copyright © 2024. All rights reserved.