Package com.google.monitoring.v3
Class AlertPolicy.Condition.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>
-
- com.google.monitoring.v3.AlertPolicy.Condition.Builder
-
- All Implemented Interfaces:
AlertPolicy.ConditionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AlertPolicy.Condition
public static final class AlertPolicy.Condition.Builder extends com.google.protobuf.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 typegoogle.monitoring.v3.AlertPolicy.Condition
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertPolicy.Condition.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AlertPolicy.Conditionbuild()AlertPolicy.ConditionbuildPartial()AlertPolicy.Condition.Builderclear()AlertPolicy.Condition.BuilderclearCondition()AlertPolicy.Condition.BuilderclearConditionAbsent()A condition that checks that a time series continues to receive new data points.AlertPolicy.Condition.BuilderclearConditionMatchedLog()A condition that checks for log messages matching given constraints.AlertPolicy.Condition.BuilderclearConditionMonitoringQueryLanguage()A condition that uses the Monitoring Query Language to define alerts.AlertPolicy.Condition.BuilderclearConditionPrometheusQueryLanguage()A condition that uses the Prometheus query language to define alerts.AlertPolicy.Condition.BuilderclearConditionThreshold()A condition that compares a time series against a threshold.AlertPolicy.Condition.BuilderclearDisplayName()A short name or phrase used to identify the condition in dashboards, notifications, and incidents.AlertPolicy.Condition.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AlertPolicy.Condition.BuilderclearName()Required if the condition exists.AlertPolicy.Condition.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AlertPolicy.Condition.Builderclone()AlertPolicy.Condition.MetricAbsencegetConditionAbsent()A condition that checks that a time series continues to receive new data points.AlertPolicy.Condition.MetricAbsence.BuildergetConditionAbsentBuilder()A condition that checks that a time series continues to receive new data points.AlertPolicy.Condition.MetricAbsenceOrBuildergetConditionAbsentOrBuilder()A condition that checks that a time series continues to receive new data points.AlertPolicy.Condition.ConditionCasegetConditionCase()AlertPolicy.Condition.LogMatchgetConditionMatchedLog()A condition that checks for log messages matching given constraints.AlertPolicy.Condition.LogMatch.BuildergetConditionMatchedLogBuilder()A condition that checks for log messages matching given constraints.AlertPolicy.Condition.LogMatchOrBuildergetConditionMatchedLogOrBuilder()A condition that checks for log messages matching given constraints.AlertPolicy.Condition.MonitoringQueryLanguageConditiongetConditionMonitoringQueryLanguage()A condition that uses the Monitoring Query Language to define alerts.AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildergetConditionMonitoringQueryLanguageBuilder()A condition that uses the Monitoring Query Language to define alerts.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuildergetConditionMonitoringQueryLanguageOrBuilder()A condition that uses the Monitoring Query Language to define alerts.AlertPolicy.Condition.PrometheusQueryLanguageConditiongetConditionPrometheusQueryLanguage()A condition that uses the Prometheus query language to define alerts.AlertPolicy.Condition.PrometheusQueryLanguageCondition.BuildergetConditionPrometheusQueryLanguageBuilder()A condition that uses the Prometheus query language to define alerts.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuildergetConditionPrometheusQueryLanguageOrBuilder()A condition that uses the Prometheus query language to define alerts.AlertPolicy.Condition.MetricThresholdgetConditionThreshold()A condition that compares a time series against a threshold.AlertPolicy.Condition.MetricThreshold.BuildergetConditionThresholdBuilder()A condition that compares a time series against a threshold.AlertPolicy.Condition.MetricThresholdOrBuildergetConditionThresholdOrBuilder()A condition that compares a time series against a threshold.AlertPolicy.ConditiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()A short name or phrase used to identify the condition in dashboards, notifications, and incidents.com.google.protobuf.ByteStringgetDisplayNameBytes()A short name or phrase used to identify the condition in dashboards, notifications, and incidents.StringgetName()Required if the condition exists.com.google.protobuf.ByteStringgetNameBytes()Required if the condition exists.booleanhasConditionAbsent()A condition that checks that a time series continues to receive new data points.booleanhasConditionMatchedLog()A condition that checks for log messages matching given constraints.booleanhasConditionMonitoringQueryLanguage()A condition that uses the Monitoring Query Language to define alerts.booleanhasConditionPrometheusQueryLanguage()A condition that uses the Prometheus query language to define alerts.booleanhasConditionThreshold()A condition that compares a time series against a threshold.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AlertPolicy.Condition.BuildermergeConditionAbsent(AlertPolicy.Condition.MetricAbsence value)A condition that checks that a time series continues to receive new data points.AlertPolicy.Condition.BuildermergeConditionMatchedLog(AlertPolicy.Condition.LogMatch value)A condition that checks for log messages matching given constraints.AlertPolicy.Condition.BuildermergeConditionMonitoringQueryLanguage(AlertPolicy.Condition.MonitoringQueryLanguageCondition value)A condition that uses the Monitoring Query Language to define alerts.AlertPolicy.Condition.BuildermergeConditionPrometheusQueryLanguage(AlertPolicy.Condition.PrometheusQueryLanguageCondition value)A condition that uses the Prometheus query language to define alerts.AlertPolicy.Condition.BuildermergeConditionThreshold(AlertPolicy.Condition.MetricThreshold value)A condition that compares a time series against a threshold.AlertPolicy.Condition.BuildermergeFrom(AlertPolicy.Condition other)AlertPolicy.Condition.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AlertPolicy.Condition.BuildermergeFrom(com.google.protobuf.Message other)AlertPolicy.Condition.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AlertPolicy.Condition.BuildersetConditionAbsent(AlertPolicy.Condition.MetricAbsence value)A condition that checks that a time series continues to receive new data points.AlertPolicy.Condition.BuildersetConditionAbsent(AlertPolicy.Condition.MetricAbsence.Builder builderForValue)A condition that checks that a time series continues to receive new data points.AlertPolicy.Condition.BuildersetConditionMatchedLog(AlertPolicy.Condition.LogMatch value)A condition that checks for log messages matching given constraints.AlertPolicy.Condition.BuildersetConditionMatchedLog(AlertPolicy.Condition.LogMatch.Builder builderForValue)A condition that checks for log messages matching given constraints.AlertPolicy.Condition.BuildersetConditionMonitoringQueryLanguage(AlertPolicy.Condition.MonitoringQueryLanguageCondition value)A condition that uses the Monitoring Query Language to define alerts.AlertPolicy.Condition.BuildersetConditionMonitoringQueryLanguage(AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder builderForValue)A condition that uses the Monitoring Query Language to define alerts.AlertPolicy.Condition.BuildersetConditionPrometheusQueryLanguage(AlertPolicy.Condition.PrometheusQueryLanguageCondition value)A condition that uses the Prometheus query language to define alerts.AlertPolicy.Condition.BuildersetConditionPrometheusQueryLanguage(AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder builderForValue)A condition that uses the Prometheus query language to define alerts.AlertPolicy.Condition.BuildersetConditionThreshold(AlertPolicy.Condition.MetricThreshold value)A condition that compares a time series against a threshold.AlertPolicy.Condition.BuildersetConditionThreshold(AlertPolicy.Condition.MetricThreshold.Builder builderForValue)A condition that compares a time series against a threshold.AlertPolicy.Condition.BuildersetDisplayName(String value)A short name or phrase used to identify the condition in dashboards, notifications, and incidents.AlertPolicy.Condition.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)A short name or phrase used to identify the condition in dashboards, notifications, and incidents.AlertPolicy.Condition.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AlertPolicy.Condition.BuildersetName(String value)Required if the condition exists.AlertPolicy.Condition.BuildersetNameBytes(com.google.protobuf.ByteString value)Required if the condition exists.AlertPolicy.Condition.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AlertPolicy.Condition.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>
-
clear
public AlertPolicy.Condition.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>
-
getDefaultInstanceForType
public AlertPolicy.Condition getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AlertPolicy.Condition build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AlertPolicy.Condition buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AlertPolicy.Condition.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>
-
setField
public AlertPolicy.Condition.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>
-
clearField
public AlertPolicy.Condition.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>
-
clearOneof
public AlertPolicy.Condition.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>
-
setRepeatedField
public AlertPolicy.Condition.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>
-
addRepeatedField
public AlertPolicy.Condition.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>
-
mergeFrom
public AlertPolicy.Condition.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AlertPolicy.Condition.Builder>
-
mergeFrom
public AlertPolicy.Condition.Builder mergeFrom(AlertPolicy.Condition other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>
-
mergeFrom
public AlertPolicy.Condition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AlertPolicy.Condition.Builder>- Throws:
IOException
-
getConditionCase
public AlertPolicy.Condition.ConditionCase getConditionCase()
- Specified by:
getConditionCasein interfaceAlertPolicy.ConditionOrBuilder
-
clearCondition
public AlertPolicy.Condition.Builder clearCondition()
-
getName
public String getName()
Required if the condition exists. The unique resource name for this condition. Its format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID] `[CONDITION_ID]` is assigned by Cloud 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. Cloud 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;- Specified by:
getNamein interfaceAlertPolicy.ConditionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Required if the condition exists. The unique resource name for this condition. Its format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID] `[CONDITION_ID]` is assigned by Cloud 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. Cloud 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;- Specified by:
getNameBytesin interfaceAlertPolicy.ConditionOrBuilder- Returns:
- The bytes for name.
-
setName
public AlertPolicy.Condition.Builder setName(String value)
Required if the condition exists. The unique resource name for this condition. Its format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID] `[CONDITION_ID]` is assigned by Cloud 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. Cloud 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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public AlertPolicy.Condition.Builder clearName()
Required if the condition exists. The unique resource name for this condition. Its format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID] `[CONDITION_ID]` is assigned by Cloud 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. Cloud 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;- Returns:
- This builder for chaining.
-
setNameBytes
public AlertPolicy.Condition.Builder setNameBytes(com.google.protobuf.ByteString value)
Required if the condition exists. The unique resource name for this condition. Its format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID] `[CONDITION_ID]` is assigned by Cloud 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. Cloud 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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
public 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;- Specified by:
getDisplayNamein interfaceAlertPolicy.ConditionOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.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;- Specified by:
getDisplayNameBytesin interfaceAlertPolicy.ConditionOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public AlertPolicy.Condition.Builder setDisplayName(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;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
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;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public AlertPolicy.Condition.Builder setDisplayNameBytes(com.google.protobuf.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;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
hasConditionThreshold
public boolean hasConditionThreshold()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;- Specified by:
hasConditionThresholdin interfaceAlertPolicy.ConditionOrBuilder- Returns:
- Whether the conditionThreshold field is set.
-
getConditionThreshold
public AlertPolicy.Condition.MetricThreshold getConditionThreshold()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;- Specified by:
getConditionThresholdin interfaceAlertPolicy.ConditionOrBuilder- Returns:
- The conditionThreshold.
-
setConditionThreshold
public 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;
-
setConditionThreshold
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;
-
mergeConditionThreshold
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;
-
clearConditionThreshold
public AlertPolicy.Condition.Builder clearConditionThreshold()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
-
getConditionThresholdBuilder
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;
-
getConditionThresholdOrBuilder
public AlertPolicy.Condition.MetricThresholdOrBuilder getConditionThresholdOrBuilder()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;- Specified by:
getConditionThresholdOrBuilderin interfaceAlertPolicy.ConditionOrBuilder
-
hasConditionAbsent
public 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;- Specified by:
hasConditionAbsentin interfaceAlertPolicy.ConditionOrBuilder- Returns:
- Whether the conditionAbsent field is set.
-
getConditionAbsent
public 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;- Specified by:
getConditionAbsentin interfaceAlertPolicy.ConditionOrBuilder- Returns:
- The conditionAbsent.
-
setConditionAbsent
public 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;
-
setConditionAbsent
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;
-
mergeConditionAbsent
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;
-
clearConditionAbsent
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;
-
getConditionAbsentBuilder
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;
-
getConditionAbsentOrBuilder
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;- Specified by:
getConditionAbsentOrBuilderin interfaceAlertPolicy.ConditionOrBuilder
-
hasConditionMatchedLog
public boolean hasConditionMatchedLog()
A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
.google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;- Specified by:
hasConditionMatchedLogin interfaceAlertPolicy.ConditionOrBuilder- Returns:
- Whether the conditionMatchedLog field is set.
-
getConditionMatchedLog
public AlertPolicy.Condition.LogMatch getConditionMatchedLog()
A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
.google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;- Specified by:
getConditionMatchedLogin interfaceAlertPolicy.ConditionOrBuilder- Returns:
- The conditionMatchedLog.
-
setConditionMatchedLog
public AlertPolicy.Condition.Builder setConditionMatchedLog(AlertPolicy.Condition.LogMatch value)
A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
.google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
-
setConditionMatchedLog
public AlertPolicy.Condition.Builder setConditionMatchedLog(AlertPolicy.Condition.LogMatch.Builder builderForValue)
A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
.google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
-
mergeConditionMatchedLog
public AlertPolicy.Condition.Builder mergeConditionMatchedLog(AlertPolicy.Condition.LogMatch value)
A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
.google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
-
clearConditionMatchedLog
public AlertPolicy.Condition.Builder clearConditionMatchedLog()
A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
.google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
-
getConditionMatchedLogBuilder
public AlertPolicy.Condition.LogMatch.Builder getConditionMatchedLogBuilder()
A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
.google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
-
getConditionMatchedLogOrBuilder
public AlertPolicy.Condition.LogMatchOrBuilder getConditionMatchedLogOrBuilder()
A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
.google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;- Specified by:
getConditionMatchedLogOrBuilderin interfaceAlertPolicy.ConditionOrBuilder
-
hasConditionMonitoringQueryLanguage
public boolean hasConditionMonitoringQueryLanguage()
A condition that uses the Monitoring Query Language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;- Specified by:
hasConditionMonitoringQueryLanguagein interfaceAlertPolicy.ConditionOrBuilder- Returns:
- Whether the conditionMonitoringQueryLanguage field is set.
-
getConditionMonitoringQueryLanguage
public AlertPolicy.Condition.MonitoringQueryLanguageCondition getConditionMonitoringQueryLanguage()
A condition that uses the Monitoring Query Language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;- Specified by:
getConditionMonitoringQueryLanguagein interfaceAlertPolicy.ConditionOrBuilder- Returns:
- The conditionMonitoringQueryLanguage.
-
setConditionMonitoringQueryLanguage
public AlertPolicy.Condition.Builder setConditionMonitoringQueryLanguage(AlertPolicy.Condition.MonitoringQueryLanguageCondition value)
A condition that uses the Monitoring Query Language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
-
setConditionMonitoringQueryLanguage
public AlertPolicy.Condition.Builder setConditionMonitoringQueryLanguage(AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder builderForValue)
A condition that uses the Monitoring Query Language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
-
mergeConditionMonitoringQueryLanguage
public AlertPolicy.Condition.Builder mergeConditionMonitoringQueryLanguage(AlertPolicy.Condition.MonitoringQueryLanguageCondition value)
A condition that uses the Monitoring Query Language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
-
clearConditionMonitoringQueryLanguage
public AlertPolicy.Condition.Builder clearConditionMonitoringQueryLanguage()
A condition that uses the Monitoring Query Language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
-
getConditionMonitoringQueryLanguageBuilder
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder getConditionMonitoringQueryLanguageBuilder()
A condition that uses the Monitoring Query Language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
-
getConditionMonitoringQueryLanguageOrBuilder
public AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder getConditionMonitoringQueryLanguageOrBuilder()
A condition that uses the Monitoring Query Language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;- Specified by:
getConditionMonitoringQueryLanguageOrBuilderin interfaceAlertPolicy.ConditionOrBuilder
-
hasConditionPrometheusQueryLanguage
public boolean hasConditionPrometheusQueryLanguage()
A condition that uses the Prometheus query language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;- Specified by:
hasConditionPrometheusQueryLanguagein interfaceAlertPolicy.ConditionOrBuilder- Returns:
- Whether the conditionPrometheusQueryLanguage field is set.
-
getConditionPrometheusQueryLanguage
public AlertPolicy.Condition.PrometheusQueryLanguageCondition getConditionPrometheusQueryLanguage()
A condition that uses the Prometheus query language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;- Specified by:
getConditionPrometheusQueryLanguagein interfaceAlertPolicy.ConditionOrBuilder- Returns:
- The conditionPrometheusQueryLanguage.
-
setConditionPrometheusQueryLanguage
public AlertPolicy.Condition.Builder setConditionPrometheusQueryLanguage(AlertPolicy.Condition.PrometheusQueryLanguageCondition value)
A condition that uses the Prometheus query language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;
-
setConditionPrometheusQueryLanguage
public AlertPolicy.Condition.Builder setConditionPrometheusQueryLanguage(AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder builderForValue)
A condition that uses the Prometheus query language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;
-
mergeConditionPrometheusQueryLanguage
public AlertPolicy.Condition.Builder mergeConditionPrometheusQueryLanguage(AlertPolicy.Condition.PrometheusQueryLanguageCondition value)
A condition that uses the Prometheus query language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;
-
clearConditionPrometheusQueryLanguage
public AlertPolicy.Condition.Builder clearConditionPrometheusQueryLanguage()
A condition that uses the Prometheus query language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;
-
getConditionPrometheusQueryLanguageBuilder
public AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder getConditionPrometheusQueryLanguageBuilder()
A condition that uses the Prometheus query language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;
-
getConditionPrometheusQueryLanguageOrBuilder
public AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder getConditionPrometheusQueryLanguageOrBuilder()
A condition that uses the Prometheus query language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;- Specified by:
getConditionPrometheusQueryLanguageOrBuilderin interfaceAlertPolicy.ConditionOrBuilder
-
setUnknownFields
public final AlertPolicy.Condition.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>
-
mergeUnknownFields
public final AlertPolicy.Condition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.Builder>
-
-