public static final class AlertPolicy.Condition.Builder extends GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder> implements AlertPolicy.ConditionOrBuilder
A condition is a true/false test that determines when an alerting policy should open an incident. If a condition evaluates to true, it signifies that something is wrong.Protobuf type
google.monitoring.v3.AlertPolicy.ConditiongetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>public AlertPolicy.Condition.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>public AlertPolicy.Condition getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic AlertPolicy.Condition build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic AlertPolicy.Condition buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic AlertPolicy.Condition.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>public AlertPolicy.Condition.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>public AlertPolicy.Condition.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>public AlertPolicy.Condition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>public AlertPolicy.Condition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>public AlertPolicy.Condition.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>public AlertPolicy.Condition.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<AlertPolicy.Condition.Builder>public AlertPolicy.Condition.Builder mergeFrom(AlertPolicy.Condition other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>public AlertPolicy.Condition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<AlertPolicy.Condition.Builder>java.io.IOExceptionpublic AlertPolicy.Condition.ConditionCase getConditionCase()
getConditionCase in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.Builder clearCondition()
public java.lang.String getName()
Required if the condition exists. The unique resource name for this
condition. Its syntax is:
projects/[PROJECT_ID]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
`[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
condition is created as part of a new or updated alerting policy.
When calling the
[alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
method, do not include the `name` field in the conditions of the
requested alerting policy. Stackdriver Monitoring creates the
condition identifiers and includes them in the new policy.
When calling the
[alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
method to update a policy, including a condition `name` causes the
existing condition to be updated. Conditions without names are added to
the updated policy. Existing conditions are deleted if they are not
updated.
Best practice is to preserve `[CONDITION_ID]` if you make only small
changes, such as those to condition thresholds, durations, or trigger
values. Otherwise, treat the change as a new condition and let the
existing condition be deleted.
string name = 12;getName in interface AlertPolicy.ConditionOrBuilderpublic ByteString getNameBytes()
Required if the condition exists. The unique resource name for this
condition. Its syntax is:
projects/[PROJECT_ID]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
`[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
condition is created as part of a new or updated alerting policy.
When calling the
[alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
method, do not include the `name` field in the conditions of the
requested alerting policy. Stackdriver Monitoring creates the
condition identifiers and includes them in the new policy.
When calling the
[alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
method to update a policy, including a condition `name` causes the
existing condition to be updated. Conditions without names are added to
the updated policy. Existing conditions are deleted if they are not
updated.
Best practice is to preserve `[CONDITION_ID]` if you make only small
changes, such as those to condition thresholds, durations, or trigger
values. Otherwise, treat the change as a new condition and let the
existing condition be deleted.
string name = 12;getNameBytes in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.Builder setName(java.lang.String value)
Required if the condition exists. The unique resource name for this
condition. Its syntax is:
projects/[PROJECT_ID]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
`[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
condition is created as part of a new or updated alerting policy.
When calling the
[alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
method, do not include the `name` field in the conditions of the
requested alerting policy. Stackdriver Monitoring creates the
condition identifiers and includes them in the new policy.
When calling the
[alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
method to update a policy, including a condition `name` causes the
existing condition to be updated. Conditions without names are added to
the updated policy. Existing conditions are deleted if they are not
updated.
Best practice is to preserve `[CONDITION_ID]` if you make only small
changes, such as those to condition thresholds, durations, or trigger
values. Otherwise, treat the change as a new condition and let the
existing condition be deleted.
string name = 12;public AlertPolicy.Condition.Builder clearName()
Required if the condition exists. The unique resource name for this
condition. Its syntax is:
projects/[PROJECT_ID]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
`[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
condition is created as part of a new or updated alerting policy.
When calling the
[alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
method, do not include the `name` field in the conditions of the
requested alerting policy. Stackdriver Monitoring creates the
condition identifiers and includes them in the new policy.
When calling the
[alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
method to update a policy, including a condition `name` causes the
existing condition to be updated. Conditions without names are added to
the updated policy. Existing conditions are deleted if they are not
updated.
Best practice is to preserve `[CONDITION_ID]` if you make only small
changes, such as those to condition thresholds, durations, or trigger
values. Otherwise, treat the change as a new condition and let the
existing condition be deleted.
string name = 12;public AlertPolicy.Condition.Builder setNameBytes(ByteString value)
Required if the condition exists. The unique resource name for this
condition. Its syntax is:
projects/[PROJECT_ID]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
`[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
condition is created as part of a new or updated alerting policy.
When calling the
[alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
method, do not include the `name` field in the conditions of the
requested alerting policy. Stackdriver Monitoring creates the
condition identifiers and includes them in the new policy.
When calling the
[alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
method to update a policy, including a condition `name` causes the
existing condition to be updated. Conditions without names are added to
the updated policy. Existing conditions are deleted if they are not
updated.
Best practice is to preserve `[CONDITION_ID]` if you make only small
changes, such as those to condition thresholds, durations, or trigger
values. Otherwise, treat the change as a new condition and let the
existing condition be deleted.
string name = 12;public java.lang.String getDisplayName()
A short name or phrase used to identify the condition in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple conditions in the same policy.
string display_name = 6;getDisplayName in interface AlertPolicy.ConditionOrBuilderpublic ByteString getDisplayNameBytes()
A short name or phrase used to identify the condition in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple conditions in the same policy.
string display_name = 6;getDisplayNameBytes in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.Builder setDisplayName(java.lang.String value)
A short name or phrase used to identify the condition in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple conditions in the same policy.
string display_name = 6;public AlertPolicy.Condition.Builder clearDisplayName()
A short name or phrase used to identify the condition in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple conditions in the same policy.
string display_name = 6;public AlertPolicy.Condition.Builder setDisplayNameBytes(ByteString value)
A short name or phrase used to identify the condition in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple conditions in the same policy.
string display_name = 6;public boolean hasConditionThreshold()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;hasConditionThreshold in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.MetricThreshold getConditionThreshold()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;getConditionThreshold in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.Builder setConditionThreshold(AlertPolicy.Condition.MetricThreshold value)
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;public AlertPolicy.Condition.Builder setConditionThreshold(AlertPolicy.Condition.MetricThreshold.Builder builderForValue)
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;public AlertPolicy.Condition.Builder mergeConditionThreshold(AlertPolicy.Condition.MetricThreshold value)
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;public AlertPolicy.Condition.Builder clearConditionThreshold()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;public AlertPolicy.Condition.MetricThreshold.Builder getConditionThresholdBuilder()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;public AlertPolicy.Condition.MetricThresholdOrBuilder getConditionThresholdOrBuilder()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;getConditionThresholdOrBuilder in interface AlertPolicy.ConditionOrBuilderpublic boolean hasConditionAbsent()
A condition that checks that a time series continues to receive new data points.
.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;hasConditionAbsent in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.MetricAbsence getConditionAbsent()
A condition that checks that a time series continues to receive new data points.
.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;getConditionAbsent in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.Builder setConditionAbsent(AlertPolicy.Condition.MetricAbsence value)
A condition that checks that a time series continues to receive new data points.
.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;public AlertPolicy.Condition.Builder setConditionAbsent(AlertPolicy.Condition.MetricAbsence.Builder builderForValue)
A condition that checks that a time series continues to receive new data points.
.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;public AlertPolicy.Condition.Builder mergeConditionAbsent(AlertPolicy.Condition.MetricAbsence value)
A condition that checks that a time series continues to receive new data points.
.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;public AlertPolicy.Condition.Builder clearConditionAbsent()
A condition that checks that a time series continues to receive new data points.
.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;public AlertPolicy.Condition.MetricAbsence.Builder getConditionAbsentBuilder()
A condition that checks that a time series continues to receive new data points.
.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;public AlertPolicy.Condition.MetricAbsenceOrBuilder getConditionAbsentOrBuilder()
A condition that checks that a time series continues to receive new data points.
.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;getConditionAbsentOrBuilder in interface AlertPolicy.ConditionOrBuilderpublic final AlertPolicy.Condition.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>public final AlertPolicy.Condition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>