@Generated public class AlertsLegacyAPI extends Object
**Note**: A new version of the Databricks SQL API is now available. Please see the latest version. [Learn more]
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
| Constructor and Description |
|---|
AlertsLegacyAPI(AlertsLegacyService mock)
Constructor for mocks
|
AlertsLegacyAPI(ApiClient apiClient)
Regular-use constructor
|
| Modifier and Type | Method and Description |
|---|---|
LegacyAlert |
create(CreateAlert request)
Create an alert.
|
LegacyAlert |
create(String name,
AlertOptions options,
String queryId) |
void |
delete(DeleteAlertsLegacyRequest request)
Delete an alert.
|
void |
delete(String alertId) |
LegacyAlert |
get(GetAlertsLegacyRequest request)
Get an alert.
|
LegacyAlert |
get(String alertId) |
AlertsLegacyService |
impl() |
Iterable<LegacyAlert> |
list()
Get alerts.
|
void |
update(EditAlert request)
Update an alert.
|
void |
update(String alertId,
String name,
AlertOptions options,
String queryId) |
public AlertsLegacyAPI(ApiClient apiClient)
public AlertsLegacyAPI(AlertsLegacyService mock)
public LegacyAlert create(String name, AlertOptions options, String queryId)
public LegacyAlert 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 is now available. Please use :method:alerts/create instead. [Learn more]
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
public void delete(String alertId)
public void delete(DeleteAlertsLegacyRequest 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 is now available. Please use :method:alerts/delete instead. [Learn more]
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
public LegacyAlert get(String alertId)
public LegacyAlert get(GetAlertsLegacyRequest request)
Gets an alert.
**Note**: A new version of the Databricks SQL API is now available. Please use :method:alerts/get instead. [Learn more]
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
public Iterable<LegacyAlert> list()
Gets a list of alerts.
**Note**: A new version of the Databricks SQL API is now available. Please use :method:alerts/list instead. [Learn more]
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
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 is now available. Please use :method:alerts/update instead. [Learn more]
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
public AlertsLegacyService impl()
Copyright © 2025. All rights reserved.