| Package | Description |
|---|---|
| com.google.api.services.monitoring.v3 | |
| com.google.api.services.monitoring.v3.model |
| Modifier and Type | Method and Description |
|---|---|
Monitoring.Projects.AlertPolicies.Create |
Monitoring.Projects.AlertPolicies.create(String name,
AlertPolicy content)
Creates a new alerting policy.Design your application to single-thread API calls that modify the
state of alerting policies in a single project.
|
Monitoring.Projects.AlertPolicies.Patch |
Monitoring.Projects.AlertPolicies.patch(String name,
AlertPolicy content)
Updates an alerting policy.
|
| Constructor and Description |
|---|
Create(String name,
AlertPolicy content)
Creates a new alerting policy.Design your application to single-thread API calls that modify
the state of alerting policies in a single project.
|
Patch(String name,
AlertPolicy content)
Updates an alerting policy.
|
| Modifier and Type | Method and Description |
|---|---|
AlertPolicy |
AlertPolicy.clone() |
AlertPolicy |
AlertPolicy.set(String fieldName,
Object value) |
AlertPolicy |
AlertPolicy.setAlertStrategy(AlertStrategy alertStrategy)
Control over how this alerting policy's notification channels are notified.
|
AlertPolicy |
AlertPolicy.setCombiner(String combiner)
How to combine the results of multiple conditions to determine if an incident should be opened.
|
AlertPolicy |
AlertPolicy.setConditions(List<Condition> conditions)
A list of conditions for the policy.
|
AlertPolicy |
AlertPolicy.setCreationRecord(MutationRecord creationRecord)
A read-only record of the creation of the alerting policy.
|
AlertPolicy |
AlertPolicy.setDisplayName(String displayName)
A short name or phrase used to identify the policy in dashboards, notifications, and incidents.
|
AlertPolicy |
AlertPolicy.setDocumentation(Documentation documentation)
Documentation that is included with notifications and incidents related to this policy.
|
AlertPolicy |
AlertPolicy.setEnabled(Boolean enabled)
Whether or not the policy is enabled.
|
AlertPolicy |
AlertPolicy.setMutationRecord(MutationRecord mutationRecord)
A read-only record of the most recent change to the alerting policy.
|
AlertPolicy |
AlertPolicy.setName(String name)
Identifier.
|
AlertPolicy |
AlertPolicy.setNotificationChannels(List<String> notificationChannels)
Identifies the notification channels to which notifications should be sent when incidents are
opened or closed or when new violations occur on an already opened incident.
|
AlertPolicy |
AlertPolicy.setSeverity(String severity)
Optional.
|
AlertPolicy |
AlertPolicy.setUserLabels(Map<String,String> userLabels)
User-supplied key/value data to be used for organizing and identifying the AlertPolicy
objects.The field can contain up to 64 entries.
|
AlertPolicy |
AlertPolicy.setValidity(Status validity)
Read-only description of how the alerting policy is invalid.
|
| Modifier and Type | Method and Description |
|---|---|
List<AlertPolicy> |
ListAlertPoliciesResponse.getAlertPolicies()
The returned alert policies.
|
| Modifier and Type | Method and Description |
|---|---|
ListAlertPoliciesResponse |
ListAlertPoliciesResponse.setAlertPolicies(List<AlertPolicy> alertPolicies)
The returned alert policies.
|
Copyright © 2011–2025 Google. All rights reserved.