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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AlertPolicy.Condition.MonitoringQueryLanguageCondition
build()
AlertPolicy.Condition.MonitoringQueryLanguageCondition
buildPartial()
AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
clear()
AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
clearDuration()
The amount of time that a time series must violate the threshold to be considered failing.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
clearEvaluationMissingData()
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
clearQuery()
[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
clearTrigger()
The number/percent of time series for which the comparison must hold in order for the condition to trigger.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
clone()
AlertPolicy.Condition.MonitoringQueryLanguageCondition
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Duration
getDuration()
The amount of time that a time series must violate the threshold to be considered failing.com.google.protobuf.Duration.Builder
getDurationBuilder()
The amount of time that a time series must violate the threshold to be considered failing.com.google.protobuf.DurationOrBuilder
getDurationOrBuilder()
The amount of time that a time series must violate the threshold to be considered failing.AlertPolicy.Condition.EvaluationMissingData
getEvaluationMissingData()
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.int
getEvaluationMissingDataValue()
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.String
getQuery()
[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.com.google.protobuf.ByteString
getQueryBytes()
[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.AlertPolicy.Condition.Trigger
getTrigger()
The number/percent of time series for which the comparison must hold in order for the condition to trigger.AlertPolicy.Condition.Trigger.Builder
getTriggerBuilder()
The number/percent of time series for which the comparison must hold in order for the condition to trigger.AlertPolicy.Condition.TriggerOrBuilder
getTriggerOrBuilder()
The number/percent of time series for which the comparison must hold in order for the condition to trigger.boolean
hasDuration()
The amount of time that a time series must violate the threshold to be considered failing.boolean
hasTrigger()
The number/percent of time series for which the comparison must hold in order for the condition to trigger.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
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.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
mergeFrom(AlertPolicy.Condition.MonitoringQueryLanguageCondition other)
AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
mergeFrom(com.google.protobuf.Message other)
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.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
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.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.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
setEvaluationMissingData(AlertPolicy.Condition.EvaluationMissingData value)
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
setEvaluationMissingDataValue(int value)
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
setQuery(String value)
[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.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.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
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.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.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
-
clear
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
-
getDefaultInstanceForType
public AlertPolicy.Condition.MonitoringQueryLanguageCondition getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AlertPolicy.Condition.MonitoringQueryLanguageCondition build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AlertPolicy.Condition.MonitoringQueryLanguageCondition buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in 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:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
-
clearField
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
-
clearOneof
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in 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:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
-
mergeFrom
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in 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:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getQuery
in 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:
getQueryBytes
in 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:
hasDuration
in 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:
getDuration
in 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:
getDurationOrBuilder
in 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:
hasTrigger
in 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:
getTrigger
in 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:
getTriggerOrBuilder
in 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:
getEvaluationMissingDataValue
in 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:
getEvaluationMissingData
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
-
mergeUnknownFields
public final AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
-
-