public final class AlertPolicy
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Stackdriver Monitoring API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
AlertPolicy() |
| Modifier and Type | Method and Description |
|---|---|
AlertPolicy |
clone() |
java.lang.String |
getCombiner()
How to combine the results of multiple conditions to determine if an incident should be opened.
|
java.util.List<Condition> |
getConditions()
A list of conditions for the policy.
|
MutationRecord |
getCreationRecord()
A read-only record of the creation of the alerting policy.
|
java.lang.String |
getDisplayName()
A short name or phrase used to identify the policy in dashboards, notifications, and incidents.
|
Documentation |
getDocumentation()
Documentation that is included with notifications and incidents related to this policy.
|
java.lang.Boolean |
getEnabled()
Whether or not the policy is enabled.
|
MutationRecord |
getMutationRecord()
A read-only record of the most recent change to the alerting policy.
|
java.lang.String |
getName()
Required if the policy exists.
|
java.util.List<java.lang.String> |
getNotificationChannels()
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.
|
java.util.Map<java.lang.String,java.lang.String> |
getUserLabels()
User-supplied key/value data to be used for organizing and identifying the AlertPolicy
objects.The field can contain up to 64 entries.
|
AlertPolicy |
set(java.lang.String fieldName,
java.lang.Object value) |
AlertPolicy |
setCombiner(java.lang.String combiner)
How to combine the results of multiple conditions to determine if an incident should be opened.
|
AlertPolicy |
setConditions(java.util.List<Condition> conditions)
A list of conditions for the policy.
|
AlertPolicy |
setCreationRecord(MutationRecord creationRecord)
A read-only record of the creation of the alerting policy.
|
AlertPolicy |
setDisplayName(java.lang.String displayName)
A short name or phrase used to identify the policy in dashboards, notifications, and incidents.
|
AlertPolicy |
setDocumentation(Documentation documentation)
Documentation that is included with notifications and incidents related to this policy.
|
AlertPolicy |
setEnabled(java.lang.Boolean enabled)
Whether or not the policy is enabled.
|
AlertPolicy |
setMutationRecord(MutationRecord mutationRecord)
A read-only record of the most recent change to the alerting policy.
|
AlertPolicy |
setName(java.lang.String name)
Required if the policy exists.
|
AlertPolicy |
setNotificationChannels(java.util.List<java.lang.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 |
setUserLabels(java.util.Map<java.lang.String,java.lang.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.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getCombiner()
null for nonepublic AlertPolicy setCombiner(java.lang.String combiner)
combiner - combiner or null for nonepublic java.util.List<Condition> getConditions()
null for nonepublic AlertPolicy setConditions(java.util.List<Condition> conditions)
conditions - conditions or null for nonepublic MutationRecord getCreationRecord()
null for nonepublic AlertPolicy setCreationRecord(MutationRecord creationRecord)
creationRecord - creationRecord or null for nonepublic java.lang.String getDisplayName()
null for nonepublic AlertPolicy setDisplayName(java.lang.String displayName)
displayName - displayName or null for nonepublic Documentation getDocumentation()
null for nonepublic AlertPolicy setDocumentation(Documentation documentation)
documentation - documentation or null for nonepublic java.lang.Boolean getEnabled()
null for nonepublic AlertPolicy setEnabled(java.lang.Boolean enabled)
enabled - enabled or null for nonepublic MutationRecord getMutationRecord()
null for nonepublic AlertPolicy setMutationRecord(MutationRecord mutationRecord)
mutationRecord - mutationRecord or null for nonepublic java.lang.String getName()
null for nonepublic AlertPolicy setName(java.lang.String name)
name - name or null for nonepublic java.util.List<java.lang.String> getNotificationChannels()
null for nonepublic AlertPolicy setNotificationChannels(java.util.List<java.lang.String> notificationChannels)
notificationChannels - notificationChannels or null for nonepublic java.util.Map<java.lang.String,java.lang.String> getUserLabels()
null for nonepublic AlertPolicy setUserLabels(java.util.Map<java.lang.String,java.lang.String> userLabels)
userLabels - userLabels or null for nonepublic AlertPolicy set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic AlertPolicy clone()
clone in class com.google.api.client.json.GenericJson