@Generated public class AlertsAPI extends Object
**Note**: A new version of the Databricks SQL API will soon be available. [Learn more]
[Learn more]: https://docs.databricks.com/en/whats-coming.html#updates-to-the-databricks-sql-api-for-managing-queries-alerts-and-data-sources
| 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.
**Note**: A new version of the Databricks SQL API will soon be available. [Learn more]
[Learn more]: https://docs.databricks.com/en/whats-coming.html#updates-to-the-databricks-sql-api-for-managing-queries-alerts-and-data-sources
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.
**Note**: A new version of the Databricks SQL API will soon be available. [Learn more]
[Learn more]: https://docs.databricks.com/en/whats-coming.html#updates-to-the-databricks-sql-api-for-managing-queries-alerts-and-data-sources
public Alert get(GetAlertRequest request)
Gets an alert.
**Note**: A new version of the Databricks SQL API will soon be available. [Learn more]
[Learn more]: https://docs.databricks.com/en/whats-coming.html#updates-to-the-databricks-sql-api-for-managing-queries-alerts-and-data-sources
public Iterable<Alert> list()
Gets a list of alerts.
**Note**: A new version of the Databricks SQL API will soon be available. [Learn more]
[Learn more]: https://docs.databricks.com/en/whats-coming.html#updates-to-the-databricks-sql-api-for-managing-queries-alerts-and-data-sources
public void update(String alertId, String name, AlertOptions options, String queryId)
public void update(EditAlert request)
Updates an alert.
**Note**: A new version of the Databricks SQL API will soon be available. [Learn more]
[Learn more]: https://docs.databricks.com/en/whats-coming.html#updates-to-the-databricks-sql-api-for-managing-queries-alerts-and-data-sources
public AlertsService impl()
Copyright © 2024. All rights reserved.