public static final class AlertPolicy.Builder extends GeneratedMessageV3.Builder<AlertPolicy.Builder> implements AlertPolicyOrBuilder
A description of the conditions under which some aspect of your system is considered to be "unhealthy" and the ways to notify people or services about this state. For an overview of alert policies, see [Introduction to Alerting](/monitoring/alerts/).Protobuf type
google.monitoring.v3.AlertPolicy
Modifier and Type | Method and Description |
---|---|
AlertPolicy.Builder |
addAllConditions(java.lang.Iterable<? extends AlertPolicy.Condition> values)
A list of conditions for the policy.
|
AlertPolicy.Builder |
addAllNotificationChannels(java.lang.Iterable<java.lang.String> values)
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.Builder |
addConditions(AlertPolicy.Condition.Builder builderForValue)
A list of conditions for the policy.
|
AlertPolicy.Builder |
addConditions(AlertPolicy.Condition value)
A list of conditions for the policy.
|
AlertPolicy.Builder |
addConditions(int index,
AlertPolicy.Condition.Builder builderForValue)
A list of conditions for the policy.
|
AlertPolicy.Builder |
addConditions(int index,
AlertPolicy.Condition value)
A list of conditions for the policy.
|
AlertPolicy.Condition.Builder |
addConditionsBuilder()
A list of conditions for the policy.
|
AlertPolicy.Condition.Builder |
addConditionsBuilder(int index)
A list of conditions for the policy.
|
AlertPolicy.Builder |
addNotificationChannels(java.lang.String value)
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.Builder |
addNotificationChannelsBytes(ByteString value)
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.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
AlertPolicy |
build() |
AlertPolicy |
buildPartial() |
AlertPolicy.Builder |
clear() |
AlertPolicy.Builder |
clearCombiner()
How to combine the results of multiple conditions
to determine if an incident should be opened.
|
AlertPolicy.Builder |
clearConditions()
A list of conditions for the policy.
|
AlertPolicy.Builder |
clearCreationRecord()
A read-only record of the creation of the alerting policy.
|
AlertPolicy.Builder |
clearDisplayName()
A short name or phrase used to identify the policy in dashboards,
notifications, and incidents.
|
AlertPolicy.Builder |
clearDocumentation()
Documentation that is included with notifications and incidents related to
this policy.
|
AlertPolicy.Builder |
clearEnabled()
Whether or not the policy is enabled.
|
AlertPolicy.Builder |
clearField(Descriptors.FieldDescriptor field) |
AlertPolicy.Builder |
clearMutationRecord()
A read-only record of the most recent change to the alerting policy.
|
AlertPolicy.Builder |
clearName()
Required if the policy exists.
|
AlertPolicy.Builder |
clearNotificationChannels()
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.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
AlertPolicy.Builder |
clearUserLabels() |
AlertPolicy.Builder |
clone() |
boolean |
containsUserLabels(java.lang.String key)
User-supplied key/value data to be used for organizing and
identifying the `AlertPolicy` objects.
|
AlertPolicy.ConditionCombinerType |
getCombiner()
How to combine the results of multiple conditions
to determine if an incident should be opened.
|
int |
getCombinerValue()
How to combine the results of multiple conditions
to determine if an incident should be opened.
|
AlertPolicy.Condition |
getConditions(int index)
A list of conditions for the policy.
|
AlertPolicy.Condition.Builder |
getConditionsBuilder(int index)
A list of conditions for the policy.
|
java.util.List<AlertPolicy.Condition.Builder> |
getConditionsBuilderList()
A list of conditions for the policy.
|
int |
getConditionsCount()
A list of conditions for the policy.
|
java.util.List<AlertPolicy.Condition> |
getConditionsList()
A list of conditions for the policy.
|
AlertPolicy.ConditionOrBuilder |
getConditionsOrBuilder(int index)
A list of conditions for the policy.
|
java.util.List<? extends AlertPolicy.ConditionOrBuilder> |
getConditionsOrBuilderList()
A list of conditions for the policy.
|
MutationRecord |
getCreationRecord()
A read-only record of the creation of the alerting policy.
|
MutationRecord.Builder |
getCreationRecordBuilder()
A read-only record of the creation of the alerting policy.
|
MutationRecordOrBuilder |
getCreationRecordOrBuilder()
A read-only record of the creation of the alerting policy.
|
AlertPolicy |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getDisplayName()
A short name or phrase used to identify the policy in dashboards,
notifications, and incidents.
|
ByteString |
getDisplayNameBytes()
A short name or phrase used to identify the policy in dashboards,
notifications, and incidents.
|
AlertPolicy.Documentation |
getDocumentation()
Documentation that is included with notifications and incidents related to
this policy.
|
AlertPolicy.Documentation.Builder |
getDocumentationBuilder()
Documentation that is included with notifications and incidents related to
this policy.
|
AlertPolicy.DocumentationOrBuilder |
getDocumentationOrBuilder()
Documentation that is included with notifications and incidents related to
this policy.
|
BoolValue |
getEnabled()
Whether or not the policy is enabled.
|
BoolValue.Builder |
getEnabledBuilder()
Whether or not the policy is enabled.
|
BoolValueOrBuilder |
getEnabledOrBuilder()
Whether or not the policy is enabled.
|
java.util.Map<java.lang.String,java.lang.String> |
getMutableUserLabels()
Deprecated.
|
MutationRecord |
getMutationRecord()
A read-only record of the most recent change to the alerting policy.
|
MutationRecord.Builder |
getMutationRecordBuilder()
A read-only record of the most recent change to the alerting policy.
|
MutationRecordOrBuilder |
getMutationRecordOrBuilder()
A read-only record of the most recent change to the alerting policy.
|
java.lang.String |
getName()
Required if the policy exists.
|
ByteString |
getNameBytes()
Required if the policy exists.
|
java.lang.String |
getNotificationChannels(int index)
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.
|
ByteString |
getNotificationChannelsBytes(int index)
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.
|
int |
getNotificationChannelsCount()
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.
|
ProtocolStringList |
getNotificationChannelsList()
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()
Deprecated.
|
int |
getUserLabelsCount()
User-supplied key/value data to be used for organizing and
identifying the `AlertPolicy` objects.
|
java.util.Map<java.lang.String,java.lang.String> |
getUserLabelsMap()
User-supplied key/value data to be used for organizing and
identifying the `AlertPolicy` objects.
|
java.lang.String |
getUserLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
User-supplied key/value data to be used for organizing and
identifying the `AlertPolicy` objects.
|
java.lang.String |
getUserLabelsOrThrow(java.lang.String key)
User-supplied key/value data to be used for organizing and
identifying the `AlertPolicy` objects.
|
boolean |
hasCreationRecord()
A read-only record of the creation of the alerting policy.
|
boolean |
hasDocumentation()
Documentation that is included with notifications and incidents related to
this policy.
|
boolean |
hasEnabled()
Whether or not the policy is enabled.
|
boolean |
hasMutationRecord()
A read-only record of the most recent change to the alerting policy.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
AlertPolicy.Builder |
mergeCreationRecord(MutationRecord value)
A read-only record of the creation of the alerting policy.
|
AlertPolicy.Builder |
mergeDocumentation(AlertPolicy.Documentation value)
Documentation that is included with notifications and incidents related to
this policy.
|
AlertPolicy.Builder |
mergeEnabled(BoolValue value)
Whether or not the policy is enabled.
|
AlertPolicy.Builder |
mergeFrom(AlertPolicy other) |
AlertPolicy.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
AlertPolicy.Builder |
mergeFrom(Message other) |
AlertPolicy.Builder |
mergeMutationRecord(MutationRecord value)
A read-only record of the most recent change to the alerting policy.
|
AlertPolicy.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
AlertPolicy.Builder |
putAllUserLabels(java.util.Map<java.lang.String,java.lang.String> values)
User-supplied key/value data to be used for organizing and
identifying the `AlertPolicy` objects.
|
AlertPolicy.Builder |
putUserLabels(java.lang.String key,
java.lang.String value)
User-supplied key/value data to be used for organizing and
identifying the `AlertPolicy` objects.
|
AlertPolicy.Builder |
removeConditions(int index)
A list of conditions for the policy.
|
AlertPolicy.Builder |
removeUserLabels(java.lang.String key)
User-supplied key/value data to be used for organizing and
identifying the `AlertPolicy` objects.
|
AlertPolicy.Builder |
setCombiner(AlertPolicy.ConditionCombinerType value)
How to combine the results of multiple conditions
to determine if an incident should be opened.
|
AlertPolicy.Builder |
setCombinerValue(int value)
How to combine the results of multiple conditions
to determine if an incident should be opened.
|
AlertPolicy.Builder |
setConditions(int index,
AlertPolicy.Condition.Builder builderForValue)
A list of conditions for the policy.
|
AlertPolicy.Builder |
setConditions(int index,
AlertPolicy.Condition value)
A list of conditions for the policy.
|
AlertPolicy.Builder |
setCreationRecord(MutationRecord.Builder builderForValue)
A read-only record of the creation of the alerting policy.
|
AlertPolicy.Builder |
setCreationRecord(MutationRecord value)
A read-only record of the creation of the alerting policy.
|
AlertPolicy.Builder |
setDisplayName(java.lang.String value)
A short name or phrase used to identify the policy in dashboards,
notifications, and incidents.
|
AlertPolicy.Builder |
setDisplayNameBytes(ByteString value)
A short name or phrase used to identify the policy in dashboards,
notifications, and incidents.
|
AlertPolicy.Builder |
setDocumentation(AlertPolicy.Documentation.Builder builderForValue)
Documentation that is included with notifications and incidents related to
this policy.
|
AlertPolicy.Builder |
setDocumentation(AlertPolicy.Documentation value)
Documentation that is included with notifications and incidents related to
this policy.
|
AlertPolicy.Builder |
setEnabled(BoolValue.Builder builderForValue)
Whether or not the policy is enabled.
|
AlertPolicy.Builder |
setEnabled(BoolValue value)
Whether or not the policy is enabled.
|
AlertPolicy.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
AlertPolicy.Builder |
setMutationRecord(MutationRecord.Builder builderForValue)
A read-only record of the most recent change to the alerting policy.
|
AlertPolicy.Builder |
setMutationRecord(MutationRecord value)
A read-only record of the most recent change to the alerting policy.
|
AlertPolicy.Builder |
setName(java.lang.String value)
Required if the policy exists.
|
AlertPolicy.Builder |
setNameBytes(ByteString value)
Required if the policy exists.
|
AlertPolicy.Builder |
setNotificationChannels(int index,
java.lang.String value)
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.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
AlertPolicy.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<AlertPolicy.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<AlertPolicy.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<AlertPolicy.Builder>
public AlertPolicy.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<AlertPolicy.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<AlertPolicy.Builder>
public AlertPolicy getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public AlertPolicy build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public AlertPolicy buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public AlertPolicy.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<AlertPolicy.Builder>
public AlertPolicy.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<AlertPolicy.Builder>
public AlertPolicy.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<AlertPolicy.Builder>
public AlertPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<AlertPolicy.Builder>
public AlertPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<AlertPolicy.Builder>
public AlertPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<AlertPolicy.Builder>
public AlertPolicy.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<AlertPolicy.Builder>
public AlertPolicy.Builder mergeFrom(AlertPolicy other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<AlertPolicy.Builder>
public AlertPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<AlertPolicy.Builder>
java.io.IOException
public java.lang.String getName()
Required if the policy exists. The resource name for this policy. The syntax is: projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy is created. When calling the [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy] method, do not include the `name` field in the alerting policy passed as part of the request.
string name = 1;
getName
in interface AlertPolicyOrBuilder
public ByteString getNameBytes()
Required if the policy exists. The resource name for this policy. The syntax is: projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy is created. When calling the [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy] method, do not include the `name` field in the alerting policy passed as part of the request.
string name = 1;
getNameBytes
in interface AlertPolicyOrBuilder
public AlertPolicy.Builder setName(java.lang.String value)
Required if the policy exists. The resource name for this policy. The syntax is: projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy is created. When calling the [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy] method, do not include the `name` field in the alerting policy passed as part of the request.
string name = 1;
public AlertPolicy.Builder clearName()
Required if the policy exists. The resource name for this policy. The syntax is: projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy is created. When calling the [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy] method, do not include the `name` field in the alerting policy passed as part of the request.
string name = 1;
public AlertPolicy.Builder setNameBytes(ByteString value)
Required if the policy exists. The resource name for this policy. The syntax is: projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy is created. When calling the [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy] method, do not include the `name` field in the alerting policy passed as part of the request.
string name = 1;
public java.lang.String getDisplayName()
A short name or phrase used to identify the policy in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple policies in the same project. The name is limited to 512 Unicode characters.
string display_name = 2;
getDisplayName
in interface AlertPolicyOrBuilder
public ByteString getDisplayNameBytes()
A short name or phrase used to identify the policy in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple policies in the same project. The name is limited to 512 Unicode characters.
string display_name = 2;
getDisplayNameBytes
in interface AlertPolicyOrBuilder
public AlertPolicy.Builder setDisplayName(java.lang.String value)
A short name or phrase used to identify the policy in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple policies in the same project. The name is limited to 512 Unicode characters.
string display_name = 2;
public AlertPolicy.Builder clearDisplayName()
A short name or phrase used to identify the policy in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple policies in the same project. The name is limited to 512 Unicode characters.
string display_name = 2;
public AlertPolicy.Builder setDisplayNameBytes(ByteString value)
A short name or phrase used to identify the policy in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple policies in the same project. The name is limited to 512 Unicode characters.
string display_name = 2;
public boolean hasDocumentation()
Documentation that is included with notifications and incidents related to this policy. Best practice is for the documentation to include information to help responders understand, mitigate, escalate, and correct the underlying problems detected by the alerting policy. Notification channels that have limited capacity might not show this documentation.
.google.monitoring.v3.AlertPolicy.Documentation documentation = 13;
hasDocumentation
in interface AlertPolicyOrBuilder
public AlertPolicy.Documentation getDocumentation()
Documentation that is included with notifications and incidents related to this policy. Best practice is for the documentation to include information to help responders understand, mitigate, escalate, and correct the underlying problems detected by the alerting policy. Notification channels that have limited capacity might not show this documentation.
.google.monitoring.v3.AlertPolicy.Documentation documentation = 13;
getDocumentation
in interface AlertPolicyOrBuilder
public AlertPolicy.Builder setDocumentation(AlertPolicy.Documentation value)
Documentation that is included with notifications and incidents related to this policy. Best practice is for the documentation to include information to help responders understand, mitigate, escalate, and correct the underlying problems detected by the alerting policy. Notification channels that have limited capacity might not show this documentation.
.google.monitoring.v3.AlertPolicy.Documentation documentation = 13;
public AlertPolicy.Builder setDocumentation(AlertPolicy.Documentation.Builder builderForValue)
Documentation that is included with notifications and incidents related to this policy. Best practice is for the documentation to include information to help responders understand, mitigate, escalate, and correct the underlying problems detected by the alerting policy. Notification channels that have limited capacity might not show this documentation.
.google.monitoring.v3.AlertPolicy.Documentation documentation = 13;
public AlertPolicy.Builder mergeDocumentation(AlertPolicy.Documentation value)
Documentation that is included with notifications and incidents related to this policy. Best practice is for the documentation to include information to help responders understand, mitigate, escalate, and correct the underlying problems detected by the alerting policy. Notification channels that have limited capacity might not show this documentation.
.google.monitoring.v3.AlertPolicy.Documentation documentation = 13;
public AlertPolicy.Builder clearDocumentation()
Documentation that is included with notifications and incidents related to this policy. Best practice is for the documentation to include information to help responders understand, mitigate, escalate, and correct the underlying problems detected by the alerting policy. Notification channels that have limited capacity might not show this documentation.
.google.monitoring.v3.AlertPolicy.Documentation documentation = 13;
public AlertPolicy.Documentation.Builder getDocumentationBuilder()
Documentation that is included with notifications and incidents related to this policy. Best practice is for the documentation to include information to help responders understand, mitigate, escalate, and correct the underlying problems detected by the alerting policy. Notification channels that have limited capacity might not show this documentation.
.google.monitoring.v3.AlertPolicy.Documentation documentation = 13;
public AlertPolicy.DocumentationOrBuilder getDocumentationOrBuilder()
Documentation that is included with notifications and incidents related to this policy. Best practice is for the documentation to include information to help responders understand, mitigate, escalate, and correct the underlying problems detected by the alerting policy. Notification channels that have limited capacity might not show this documentation.
.google.monitoring.v3.AlertPolicy.Documentation documentation = 13;
getDocumentationOrBuilder
in interface AlertPolicyOrBuilder
public int getUserLabelsCount()
AlertPolicyOrBuilder
User-supplied key/value data to be used for organizing and identifying the `AlertPolicy` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 16;
getUserLabelsCount
in interface AlertPolicyOrBuilder
public boolean containsUserLabels(java.lang.String key)
User-supplied key/value data to be used for organizing and identifying the `AlertPolicy` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 16;
containsUserLabels
in interface AlertPolicyOrBuilder
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getUserLabels()
getUserLabelsMap()
instead.getUserLabels
in interface AlertPolicyOrBuilder
public java.util.Map<java.lang.String,java.lang.String> getUserLabelsMap()
User-supplied key/value data to be used for organizing and identifying the `AlertPolicy` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 16;
getUserLabelsMap
in interface AlertPolicyOrBuilder
public java.lang.String getUserLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)
User-supplied key/value data to be used for organizing and identifying the `AlertPolicy` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 16;
getUserLabelsOrDefault
in interface AlertPolicyOrBuilder
public java.lang.String getUserLabelsOrThrow(java.lang.String key)
User-supplied key/value data to be used for organizing and identifying the `AlertPolicy` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 16;
getUserLabelsOrThrow
in interface AlertPolicyOrBuilder
public AlertPolicy.Builder clearUserLabels()
public AlertPolicy.Builder removeUserLabels(java.lang.String key)
User-supplied key/value data to be used for organizing and identifying the `AlertPolicy` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 16;
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableUserLabels()
public AlertPolicy.Builder putUserLabels(java.lang.String key, java.lang.String value)
User-supplied key/value data to be used for organizing and identifying the `AlertPolicy` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 16;
public AlertPolicy.Builder putAllUserLabels(java.util.Map<java.lang.String,java.lang.String> values)
User-supplied key/value data to be used for organizing and identifying the `AlertPolicy` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 16;
public java.util.List<AlertPolicy.Condition> getConditionsList()
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
getConditionsList
in interface AlertPolicyOrBuilder
public int getConditionsCount()
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
getConditionsCount
in interface AlertPolicyOrBuilder
public AlertPolicy.Condition getConditions(int index)
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
getConditions
in interface AlertPolicyOrBuilder
public AlertPolicy.Builder setConditions(int index, AlertPolicy.Condition value)
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
public AlertPolicy.Builder setConditions(int index, AlertPolicy.Condition.Builder builderForValue)
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
public AlertPolicy.Builder addConditions(AlertPolicy.Condition value)
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
public AlertPolicy.Builder addConditions(int index, AlertPolicy.Condition value)
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
public AlertPolicy.Builder addConditions(AlertPolicy.Condition.Builder builderForValue)
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
public AlertPolicy.Builder addConditions(int index, AlertPolicy.Condition.Builder builderForValue)
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
public AlertPolicy.Builder addAllConditions(java.lang.Iterable<? extends AlertPolicy.Condition> values)
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
public AlertPolicy.Builder clearConditions()
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
public AlertPolicy.Builder removeConditions(int index)
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
public AlertPolicy.Condition.Builder getConditionsBuilder(int index)
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
public AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(int index)
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
getConditionsOrBuilder
in interface AlertPolicyOrBuilder
public java.util.List<? extends AlertPolicy.ConditionOrBuilder> getConditionsOrBuilderList()
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
getConditionsOrBuilderList
in interface AlertPolicyOrBuilder
public AlertPolicy.Condition.Builder addConditionsBuilder()
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
public AlertPolicy.Condition.Builder addConditionsBuilder(int index)
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
public java.util.List<AlertPolicy.Condition.Builder> getConditionsBuilderList()
A list of conditions for the policy. The conditions are combined by AND or OR according to the `combiner` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions.
repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
public int getCombinerValue()
How to combine the results of multiple conditions to determine if an incident should be opened.
.google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6;
getCombinerValue
in interface AlertPolicyOrBuilder
public AlertPolicy.Builder setCombinerValue(int value)
How to combine the results of multiple conditions to determine if an incident should be opened.
.google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6;
public AlertPolicy.ConditionCombinerType getCombiner()
How to combine the results of multiple conditions to determine if an incident should be opened.
.google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6;
getCombiner
in interface AlertPolicyOrBuilder
public AlertPolicy.Builder setCombiner(AlertPolicy.ConditionCombinerType value)
How to combine the results of multiple conditions to determine if an incident should be opened.
.google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6;
public AlertPolicy.Builder clearCombiner()
How to combine the results of multiple conditions to determine if an incident should be opened.
.google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6;
public boolean hasEnabled()
Whether or not the policy is enabled. On write, the default interpretation if unset is that the policy is enabled. On read, clients should not make any assumption about the state if it has not been populated. The field should always be populated on List and Get operations, unless a field projection has been specified that strips it out.
.google.protobuf.BoolValue enabled = 17;
hasEnabled
in interface AlertPolicyOrBuilder
public BoolValue getEnabled()
Whether or not the policy is enabled. On write, the default interpretation if unset is that the policy is enabled. On read, clients should not make any assumption about the state if it has not been populated. The field should always be populated on List and Get operations, unless a field projection has been specified that strips it out.
.google.protobuf.BoolValue enabled = 17;
getEnabled
in interface AlertPolicyOrBuilder
public AlertPolicy.Builder setEnabled(BoolValue value)
Whether or not the policy is enabled. On write, the default interpretation if unset is that the policy is enabled. On read, clients should not make any assumption about the state if it has not been populated. The field should always be populated on List and Get operations, unless a field projection has been specified that strips it out.
.google.protobuf.BoolValue enabled = 17;
public AlertPolicy.Builder setEnabled(BoolValue.Builder builderForValue)
Whether or not the policy is enabled. On write, the default interpretation if unset is that the policy is enabled. On read, clients should not make any assumption about the state if it has not been populated. The field should always be populated on List and Get operations, unless a field projection has been specified that strips it out.
.google.protobuf.BoolValue enabled = 17;
public AlertPolicy.Builder mergeEnabled(BoolValue value)
Whether or not the policy is enabled. On write, the default interpretation if unset is that the policy is enabled. On read, clients should not make any assumption about the state if it has not been populated. The field should always be populated on List and Get operations, unless a field projection has been specified that strips it out.
.google.protobuf.BoolValue enabled = 17;
public AlertPolicy.Builder clearEnabled()
Whether or not the policy is enabled. On write, the default interpretation if unset is that the policy is enabled. On read, clients should not make any assumption about the state if it has not been populated. The field should always be populated on List and Get operations, unless a field projection has been specified that strips it out.
.google.protobuf.BoolValue enabled = 17;
public BoolValue.Builder getEnabledBuilder()
Whether or not the policy is enabled. On write, the default interpretation if unset is that the policy is enabled. On read, clients should not make any assumption about the state if it has not been populated. The field should always be populated on List and Get operations, unless a field projection has been specified that strips it out.
.google.protobuf.BoolValue enabled = 17;
public BoolValueOrBuilder getEnabledOrBuilder()
Whether or not the policy is enabled. On write, the default interpretation if unset is that the policy is enabled. On read, clients should not make any assumption about the state if it has not been populated. The field should always be populated on List and Get operations, unless a field projection has been specified that strips it out.
.google.protobuf.BoolValue enabled = 17;
getEnabledOrBuilder
in interface AlertPolicyOrBuilder
public ProtocolStringList getNotificationChannelsList()
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. Each element of this array corresponds to the `name` field in each of the [`NotificationChannel`][google.monitoring.v3.NotificationChannel] objects that are returned from the [`ListNotificationChannels`] [google.monitoring.v3.NotificationChannelService.ListNotificationChannels] method. The syntax of the entries in this field is: projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
repeated string notification_channels = 14;
getNotificationChannelsList
in interface AlertPolicyOrBuilder
public int getNotificationChannelsCount()
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. Each element of this array corresponds to the `name` field in each of the [`NotificationChannel`][google.monitoring.v3.NotificationChannel] objects that are returned from the [`ListNotificationChannels`] [google.monitoring.v3.NotificationChannelService.ListNotificationChannels] method. The syntax of the entries in this field is: projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
repeated string notification_channels = 14;
getNotificationChannelsCount
in interface AlertPolicyOrBuilder
public java.lang.String getNotificationChannels(int index)
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. Each element of this array corresponds to the `name` field in each of the [`NotificationChannel`][google.monitoring.v3.NotificationChannel] objects that are returned from the [`ListNotificationChannels`] [google.monitoring.v3.NotificationChannelService.ListNotificationChannels] method. The syntax of the entries in this field is: projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
repeated string notification_channels = 14;
getNotificationChannels
in interface AlertPolicyOrBuilder
public ByteString getNotificationChannelsBytes(int index)
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. Each element of this array corresponds to the `name` field in each of the [`NotificationChannel`][google.monitoring.v3.NotificationChannel] objects that are returned from the [`ListNotificationChannels`] [google.monitoring.v3.NotificationChannelService.ListNotificationChannels] method. The syntax of the entries in this field is: projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
repeated string notification_channels = 14;
getNotificationChannelsBytes
in interface AlertPolicyOrBuilder
public AlertPolicy.Builder setNotificationChannels(int index, java.lang.String value)
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. Each element of this array corresponds to the `name` field in each of the [`NotificationChannel`][google.monitoring.v3.NotificationChannel] objects that are returned from the [`ListNotificationChannels`] [google.monitoring.v3.NotificationChannelService.ListNotificationChannels] method. The syntax of the entries in this field is: projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
repeated string notification_channels = 14;
public AlertPolicy.Builder addNotificationChannels(java.lang.String value)
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. Each element of this array corresponds to the `name` field in each of the [`NotificationChannel`][google.monitoring.v3.NotificationChannel] objects that are returned from the [`ListNotificationChannels`] [google.monitoring.v3.NotificationChannelService.ListNotificationChannels] method. The syntax of the entries in this field is: projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
repeated string notification_channels = 14;
public AlertPolicy.Builder addAllNotificationChannels(java.lang.Iterable<java.lang.String> values)
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. Each element of this array corresponds to the `name` field in each of the [`NotificationChannel`][google.monitoring.v3.NotificationChannel] objects that are returned from the [`ListNotificationChannels`] [google.monitoring.v3.NotificationChannelService.ListNotificationChannels] method. The syntax of the entries in this field is: projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
repeated string notification_channels = 14;
public AlertPolicy.Builder clearNotificationChannels()
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. Each element of this array corresponds to the `name` field in each of the [`NotificationChannel`][google.monitoring.v3.NotificationChannel] objects that are returned from the [`ListNotificationChannels`] [google.monitoring.v3.NotificationChannelService.ListNotificationChannels] method. The syntax of the entries in this field is: projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
repeated string notification_channels = 14;
public AlertPolicy.Builder addNotificationChannelsBytes(ByteString value)
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. Each element of this array corresponds to the `name` field in each of the [`NotificationChannel`][google.monitoring.v3.NotificationChannel] objects that are returned from the [`ListNotificationChannels`] [google.monitoring.v3.NotificationChannelService.ListNotificationChannels] method. The syntax of the entries in this field is: projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
repeated string notification_channels = 14;
public boolean hasCreationRecord()
A read-only record of the creation of the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord creation_record = 10;
hasCreationRecord
in interface AlertPolicyOrBuilder
public MutationRecord getCreationRecord()
A read-only record of the creation of the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord creation_record = 10;
getCreationRecord
in interface AlertPolicyOrBuilder
public AlertPolicy.Builder setCreationRecord(MutationRecord value)
A read-only record of the creation of the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord creation_record = 10;
public AlertPolicy.Builder setCreationRecord(MutationRecord.Builder builderForValue)
A read-only record of the creation of the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord creation_record = 10;
public AlertPolicy.Builder mergeCreationRecord(MutationRecord value)
A read-only record of the creation of the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord creation_record = 10;
public AlertPolicy.Builder clearCreationRecord()
A read-only record of the creation of the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord creation_record = 10;
public MutationRecord.Builder getCreationRecordBuilder()
A read-only record of the creation of the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord creation_record = 10;
public MutationRecordOrBuilder getCreationRecordOrBuilder()
A read-only record of the creation of the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord creation_record = 10;
getCreationRecordOrBuilder
in interface AlertPolicyOrBuilder
public boolean hasMutationRecord()
A read-only record of the most recent change to the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord mutation_record = 11;
hasMutationRecord
in interface AlertPolicyOrBuilder
public MutationRecord getMutationRecord()
A read-only record of the most recent change to the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord mutation_record = 11;
getMutationRecord
in interface AlertPolicyOrBuilder
public AlertPolicy.Builder setMutationRecord(MutationRecord value)
A read-only record of the most recent change to the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord mutation_record = 11;
public AlertPolicy.Builder setMutationRecord(MutationRecord.Builder builderForValue)
A read-only record of the most recent change to the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord mutation_record = 11;
public AlertPolicy.Builder mergeMutationRecord(MutationRecord value)
A read-only record of the most recent change to the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord mutation_record = 11;
public AlertPolicy.Builder clearMutationRecord()
A read-only record of the most recent change to the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord mutation_record = 11;
public MutationRecord.Builder getMutationRecordBuilder()
A read-only record of the most recent change to the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord mutation_record = 11;
public MutationRecordOrBuilder getMutationRecordOrBuilder()
A read-only record of the most recent change to the alerting policy. If provided in a call to create or update, this field will be ignored.
.google.monitoring.v3.MutationRecord mutation_record = 11;
getMutationRecordOrBuilder
in interface AlertPolicyOrBuilder
public final AlertPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<AlertPolicy.Builder>
public final AlertPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<AlertPolicy.Builder>