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.GeneratedMessage.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.GeneratedMessage.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
implements AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder
A condition type that allows alerting policies to be defined using [Monitoring Query Language](https://cloud.google.com/monitoring/mql).Protobuf type
google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The amount of time that a time series must violate the threshold to be considered failing.A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.The number/percent of time series for which the comparison must hold in order for the condition to trigger.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationThe amount of time that a time series must violate the threshold to be considered failing.com.google.protobuf.Duration.BuilderThe amount of time that a time series must violate the threshold to be considered failing.com.google.protobuf.DurationOrBuilderThe amount of time that a time series must violate the threshold to be considered failing.A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.intA condition control that determines how metric-threshold conditions are evaluated when data stops arriving.getQuery()[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.com.google.protobuf.ByteString[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.The number/percent of time series for which the comparison must hold in order for the condition to trigger.The number/percent of time series for which the comparison must hold in order for the condition to trigger.The number/percent of time series for which the comparison must hold in order for the condition to trigger.booleanThe amount of time that a time series must violate the threshold to be considered failing.booleanThe number/percent of time series for which the comparison must hold in order for the condition to trigger.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeDuration(com.google.protobuf.Duration value) The amount of time that a time series must violate the threshold to be considered failing.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The number/percent of time series for which the comparison must hold in order for the condition to trigger.setDuration(com.google.protobuf.Duration value) The amount of time that a time series must violate the threshold to be considered failing.setDuration(com.google.protobuf.Duration.Builder builderForValue) The amount of time that a time series must violate the threshold to be considered failing.A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.setEvaluationMissingDataValue(int value) A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.[Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.setQueryBytes(com.google.protobuf.ByteString value) [Monitoring Query Language](https://cloud.google.com/monitoring/mql) query that outputs a boolean stream.The number/percent of time series for which the comparison must hold in order for the condition to trigger.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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.Builder<AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
[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
[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
[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
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
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
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
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
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
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
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.
-