Package com.google.monitoring.v3
Class AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
-
- com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
-
- All Implemented Interfaces:
AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AlertPolicy.Condition.MonitoringQueryLanguageCondition
public static final class AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder> implements AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder
A condition type that allows alert policies to be defined using [Monitoring Query Language](https://cloud.google.com/monitoring/mql).
Protobuf typegoogle.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AlertPolicy.Condition.MonitoringQueryLanguageConditionbuild()AlertPolicy.Condition.MonitoringQueryLanguageConditionbuildPartial()AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builderclear()AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuilderclearDuration()The amount of time that a time series must violate the threshold to be considered failing.AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuilderclearEvaluationMissingData()A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuilderclearQuery()[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuilderclearTrigger()The number/percent of time series for which the comparison must hold in order for the condition to trigger.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builderclone()AlertPolicy.Condition.MonitoringQueryLanguageConditiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.DurationgetDuration()The amount of time that a time series must violate the threshold to be considered failing.com.google.protobuf.Duration.BuildergetDurationBuilder()The amount of time that a time series must violate the threshold to be considered failing.com.google.protobuf.DurationOrBuildergetDurationOrBuilder()The amount of time that a time series must violate the threshold to be considered failing.AlertPolicy.Condition.EvaluationMissingDatagetEvaluationMissingData()A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.intgetEvaluationMissingDataValue()A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.StringgetQuery()[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.com.google.protobuf.ByteStringgetQueryBytes()[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.AlertPolicy.Condition.TriggergetTrigger()The number/percent of time series for which the comparison must hold in order for the condition to trigger.AlertPolicy.Condition.Trigger.BuildergetTriggerBuilder()The number/percent of time series for which the comparison must hold in order for the condition to trigger.AlertPolicy.Condition.TriggerOrBuildergetTriggerOrBuilder()The number/percent of time series for which the comparison must hold in order for the condition to trigger.booleanhasDuration()The amount of time that a time series must violate the threshold to be considered failing.booleanhasTrigger()The number/percent of time series for which the comparison must hold in order for the condition to trigger.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildermergeDuration(com.google.protobuf.Duration value)The amount of time that a time series must violate the threshold to be considered failing.AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildermergeFrom(AlertPolicy.Condition.MonitoringQueryLanguageCondition other)AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildermergeFrom(com.google.protobuf.Message other)AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildermergeTrigger(AlertPolicy.Condition.Trigger value)The number/percent of time series for which the comparison must hold in order for the condition to trigger.AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildersetDuration(com.google.protobuf.Duration value)The amount of time that a time series must violate the threshold to be considered failing.AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildersetDuration(com.google.protobuf.Duration.Builder builderForValue)The amount of time that a time series must violate the threshold to be considered failing.AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildersetEvaluationMissingData(AlertPolicy.Condition.EvaluationMissingData value)A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildersetEvaluationMissingDataValue(int value)A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildersetQuery(String value)[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildersetQueryBytes(com.google.protobuf.ByteString value)[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildersetTrigger(AlertPolicy.Condition.Trigger value)The number/percent of time series for which the comparison must hold in order for the condition to trigger.AlertPolicy.Condition.MonitoringQueryLanguageCondition.BuildersetTrigger(AlertPolicy.Condition.Trigger.Builder builderForValue)The number/percent of time series for which the comparison must hold in order for the condition to trigger.AlertPolicy.Condition.MonitoringQueryLanguageCondition.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.MonitoringQueryLanguageCondition.Builder>
-
clear
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.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.MonitoringQueryLanguageCondition.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.MonitoringQueryLanguageCondition.Builder>
-
getDefaultInstanceForType
public AlertPolicy.Condition.MonitoringQueryLanguageCondition getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AlertPolicy.Condition.MonitoringQueryLanguageCondition build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AlertPolicy.Condition.MonitoringQueryLanguageCondition buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.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.MonitoringQueryLanguageCondition.Builder>
-
setField
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.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.MonitoringQueryLanguageCondition.Builder>
-
clearField
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.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.MonitoringQueryLanguageCondition.Builder>
-
clearOneof
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.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.MonitoringQueryLanguageCondition.Builder>
-
setRepeatedField
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.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.MonitoringQueryLanguageCondition.Builder>
-
addRepeatedField
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.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.MonitoringQueryLanguageCondition.Builder>
-
mergeFrom
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
-
mergeFrom
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder mergeFrom(AlertPolicy.Condition.MonitoringQueryLanguageCondition other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
-
mergeFrom
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.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.MonitoringQueryLanguageCondition.Builder>- Throws:
IOException
-
getQuery
public String getQuery()
[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.
string query = 1;- Specified by:
getQueryin interfaceAlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder- Returns:
- The query.
-
getQueryBytes
public com.google.protobuf.ByteString getQueryBytes()
[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.
string query = 1;- Specified by:
getQueryBytesin interfaceAlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder- Returns:
- The bytes for query.
-
setQuery
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder setQuery(String value)
[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.
string query = 1;- Parameters:
value- The query to set.- Returns:
- This builder for chaining.
-
clearQuery
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder clearQuery()
[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.
string query = 1;- Returns:
- This builder for chaining.
-
setQueryBytes
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder setQueryBytes(com.google.protobuf.ByteString value)
[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.
string query = 1;- Parameters:
value- The bytes for query to set.- Returns:
- This builder for chaining.
-
hasDuration
public boolean hasDuration()
The amount of time that a time series must violate the threshold to be considered failing. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the `aggregations` field); a good duration is long enough so that a single outlier does not generate spurious alerts, but short enough that unhealthy states are detected and alerted on quickly.
.google.protobuf.Duration duration = 2;- Specified by:
hasDurationin interfaceAlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
public com.google.protobuf.Duration getDuration()
The amount of time that a time series must violate the threshold to be considered failing. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the `aggregations` field); a good duration is long enough so that a single outlier does not generate spurious alerts, but short enough that unhealthy states are detected and alerted on quickly.
.google.protobuf.Duration duration = 2;- Specified by:
getDurationin interfaceAlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder- Returns:
- The duration.
-
setDuration
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder setDuration(com.google.protobuf.Duration value)
The amount of time that a time series must violate the threshold to be considered failing. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the `aggregations` field); a good duration is long enough so that a single outlier does not generate spurious alerts, but short enough that unhealthy states are detected and alerted on quickly.
.google.protobuf.Duration duration = 2;
-
setDuration
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
The amount of time that a time series must violate the threshold to be considered failing. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the `aggregations` field); a good duration is long enough so that a single outlier does not generate spurious alerts, but short enough that unhealthy states are detected and alerted on quickly.
.google.protobuf.Duration duration = 2;
-
mergeDuration
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder mergeDuration(com.google.protobuf.Duration value)
The amount of time that a time series must violate the threshold to be considered failing. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the `aggregations` field); a good duration is long enough so that a single outlier does not generate spurious alerts, but short enough that unhealthy states are detected and alerted on quickly.
.google.protobuf.Duration duration = 2;
-
clearDuration
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder clearDuration()
The amount of time that a time series must violate the threshold to be considered failing. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the `aggregations` field); a good duration is long enough so that a single outlier does not generate spurious alerts, but short enough that unhealthy states are detected and alerted on quickly.
.google.protobuf.Duration duration = 2;
-
getDurationBuilder
public com.google.protobuf.Duration.Builder getDurationBuilder()
The amount of time that a time series must violate the threshold to be considered failing. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the `aggregations` field); a good duration is long enough so that a single outlier does not generate spurious alerts, but short enough that unhealthy states are detected and alerted on quickly.
.google.protobuf.Duration duration = 2;
-
getDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
The amount of time that a time series must violate the threshold to be considered failing. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the `aggregations` field); a good duration is long enough so that a single outlier does not generate spurious alerts, but short enough that unhealthy states are detected and alerted on quickly.
.google.protobuf.Duration duration = 2;- Specified by:
getDurationOrBuilderin interfaceAlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder
-
hasTrigger
public boolean hasTrigger()
The number/percent of time series for which the comparison must hold in order for the condition to trigger. If unspecified, then the condition will trigger if the comparison is true for any of the time series that have been identified by `filter` and `aggregations`, or by the ratio, if `denominator_filter` and `denominator_aggregations` are specified.
.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;- Specified by:
hasTriggerin interfaceAlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder- Returns:
- Whether the trigger field is set.
-
getTrigger
public AlertPolicy.Condition.Trigger getTrigger()
The number/percent of time series for which the comparison must hold in order for the condition to trigger. If unspecified, then the condition will trigger if the comparison is true for any of the time series that have been identified by `filter` and `aggregations`, or by the ratio, if `denominator_filter` and `denominator_aggregations` are specified.
.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;- Specified by:
getTriggerin interfaceAlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder- Returns:
- The trigger.
-
setTrigger
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder setTrigger(AlertPolicy.Condition.Trigger value)
The number/percent of time series for which the comparison must hold in order for the condition to trigger. If unspecified, then the condition will trigger if the comparison is true for any of the time series that have been identified by `filter` and `aggregations`, or by the ratio, if `denominator_filter` and `denominator_aggregations` are specified.
.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
-
setTrigger
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder setTrigger(AlertPolicy.Condition.Trigger.Builder builderForValue)
The number/percent of time series for which the comparison must hold in order for the condition to trigger. If unspecified, then the condition will trigger if the comparison is true for any of the time series that have been identified by `filter` and `aggregations`, or by the ratio, if `denominator_filter` and `denominator_aggregations` are specified.
.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
-
mergeTrigger
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder mergeTrigger(AlertPolicy.Condition.Trigger value)
The number/percent of time series for which the comparison must hold in order for the condition to trigger. If unspecified, then the condition will trigger if the comparison is true for any of the time series that have been identified by `filter` and `aggregations`, or by the ratio, if `denominator_filter` and `denominator_aggregations` are specified.
.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
-
clearTrigger
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder clearTrigger()
The number/percent of time series for which the comparison must hold in order for the condition to trigger. If unspecified, then the condition will trigger if the comparison is true for any of the time series that have been identified by `filter` and `aggregations`, or by the ratio, if `denominator_filter` and `denominator_aggregations` are specified.
.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
-
getTriggerBuilder
public AlertPolicy.Condition.Trigger.Builder getTriggerBuilder()
The number/percent of time series for which the comparison must hold in order for the condition to trigger. If unspecified, then the condition will trigger if the comparison is true for any of the time series that have been identified by `filter` and `aggregations`, or by the ratio, if `denominator_filter` and `denominator_aggregations` are specified.
.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
-
getTriggerOrBuilder
public AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder()
The number/percent of time series for which the comparison must hold in order for the condition to trigger. If unspecified, then the condition will trigger if the comparison is true for any of the time series that have been identified by `filter` and `aggregations`, or by the ratio, if `denominator_filter` and `denominator_aggregations` are specified.
.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;- Specified by:
getTriggerOrBuilderin interfaceAlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder
-
getEvaluationMissingDataValue
public int getEvaluationMissingDataValue()
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.
.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4;- Specified by:
getEvaluationMissingDataValuein interfaceAlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder- Returns:
- The enum numeric value on the wire for evaluationMissingData.
-
setEvaluationMissingDataValue
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder setEvaluationMissingDataValue(int value)
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.
.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4;- Parameters:
value- The enum numeric value on the wire for evaluationMissingData to set.- Returns:
- This builder for chaining.
-
getEvaluationMissingData
public AlertPolicy.Condition.EvaluationMissingData getEvaluationMissingData()
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.
.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4;- Specified by:
getEvaluationMissingDatain interfaceAlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder- Returns:
- The evaluationMissingData.
-
setEvaluationMissingData
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder setEvaluationMissingData(AlertPolicy.Condition.EvaluationMissingData value)
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.
.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4;- Parameters:
value- The evaluationMissingData to set.- Returns:
- This builder for chaining.
-
clearEvaluationMissingData
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder clearEvaluationMissingData()
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.
.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
-
mergeUnknownFields
public final AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
-
-