@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(CreateAlertRequest request)
Create an alert.
|
void |
delete(String id) |
void |
delete(TrashAlertRequest request)
Delete an alert.
|
Alert |
get(GetAlertRequest request)
Get an alert.
|
Alert |
get(String id) |
AlertsService |
impl() |
Iterable<ListAlertsResponseAlert> |
list(ListAlertsRequest request)
List alerts.
|
Alert |
update(String id,
String updateMask) |
Alert |
update(UpdateAlertRequest request)
Update an alert.
|
public AlertsAPI(ApiClient apiClient)
public AlertsAPI(AlertsService mock)
public Alert create(CreateAlertRequest request)
Creates an alert.
public void delete(String id)
public void delete(TrashAlertRequest request)
Moves an alert to the trash. Trashed alerts immediately disappear from searches and list views, and can no longer trigger. You can restore a trashed alert through the UI. A trashed alert is permanently deleted after 30 days.
public Alert get(GetAlertRequest request)
Gets an alert.
public Iterable<ListAlertsResponseAlert> list(ListAlertsRequest request)
Gets a list of alerts accessible to the user, ordered by creation time. **Warning:** Calling this API concurrently 10 or more times could result in throttling, service degradation, or a temporary ban.
public Alert update(UpdateAlertRequest request)
Updates an alert.
public AlertsService impl()
Copyright © 2025. All rights reserved.