public class Monitoring.Projects.Alerts extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Monitoring.Projects.Alerts.Get |
class |
Monitoring.Projects.Alerts.List |
| Constructor and Description |
|---|
Alerts() |
| Modifier and Type | Method and Description |
|---|---|
Monitoring.Projects.Alerts.Get |
get(String name)
Gets a single alert.
|
Monitoring.Projects.Alerts.List |
list(String parent)
Lists the existing alerts for the metrics scope of the project.
|
public Monitoring.Projects.Alerts.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The name of the alert.The format is: projects/[PROJECT_ID_OR_NUMBER]/alerts/[ALERT_ID] The
[ALERT_ID] is a system-assigned unique identifier for the alert.IOExceptionpublic Monitoring.Projects.Alerts.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The name of the project to list alerts for.IOExceptionCopyright © 2011–2025 Google. All rights reserved.