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
Static Fields
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
Field Value
QUERY_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER
Field Value
TRIGGER_FIELD_NUMBER
public static final int TRIGGER_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder newBuilder()
Returns
newBuilder(AlertPolicy.Condition.MonitoringQueryLanguageCondition prototype)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder newBuilder(AlertPolicy.Condition.MonitoringQueryLanguageCondition prototype)
Parameter
Returns
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AlertPolicy.Condition.MonitoringQueryLanguageCondition> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public AlertPolicy.Condition.MonitoringQueryLanguageCondition getDefaultInstanceForType()
Returns
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
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;
Returns
getParserForType()
public Parser<AlertPolicy.Condition.MonitoringQueryLanguageCondition> getParserForType()
Returns
Overrides
getQuery()
Returns
Type | Description |
String | The query.
|
getQueryBytes()
public ByteString getQueryBytes()
Returns
getSerializedSize()
public int getSerializedSize()
Returns
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;
Returns
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;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions