public static final class AlertPolicy.Condition.MonitoringQueryLanguageCondition extends GeneratedMessageV3 implements AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder
A condition type that allows alert policies to be defined using
Monitoring Query Language.
Protobuf type
google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
EVALUATION_MISSING_DATA_FIELD_NUMBER
public static final int EVALUATION_MISSING_DATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
QUERY_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TRIGGER_FIELD_NUMBER
public static final int TRIGGER_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder newBuilder()
newBuilder(AlertPolicy.Condition.MonitoringQueryLanguageCondition prototype)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder newBuilder(AlertPolicy.Condition.MonitoringQueryLanguageCondition prototype)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseDelimitedFrom(InputStream input)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(CodedInputStream input)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(InputStream input)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AlertPolicy.Condition.MonitoringQueryLanguageCondition> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public AlertPolicy.Condition.MonitoringQueryLanguageCondition getDefaultInstanceForType()
getDuration()
public 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;
Returns |
---|
Type | Description |
Duration | The duration.
|
getDurationOrBuilder()
public 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;
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;
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;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for evaluationMissingData.
|
getParserForType()
public Parser<AlertPolicy.Condition.MonitoringQueryLanguageCondition> getParserForType()
Overrides
getQuery()
Returns |
---|
Type | Description |
String | The query.
|
getQueryBytes()
public ByteString getQueryBytes()
Returns |
---|
Type | Description |
ByteString | The bytes for query.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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;
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;
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
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;
Returns |
---|
Type | Description |
boolean | Whether the duration field is set.
|
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;
Returns |
---|
Type | Description |
boolean | Whether the trigger field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides