Class AlertPolicy.Condition.MonitoringQueryLanguageCondition (3.53.0)

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AlertPolicy.Condition.MonitoringQueryLanguageCondition

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()
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder newBuilder()
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder

newBuilder(AlertPolicy.Condition.MonitoringQueryLanguageCondition prototype)

public static AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder newBuilder(AlertPolicy.Condition.MonitoringQueryLanguageCondition prototype)
Parameter
Name Description
prototype AlertPolicy.Condition.MonitoringQueryLanguageCondition
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder

parseDelimitedFrom(InputStream input)

public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AlertPolicy.Condition.MonitoringQueryLanguageCondition> parser()
Returns
Type Description
Parser<MonitoringQueryLanguageCondition>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AlertPolicy.Condition.MonitoringQueryLanguageCondition getDefaultInstanceForType()
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition

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;

Returns
Type Description
DurationOrBuilder

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;

Returns
Type Description
AlertPolicy.Condition.EvaluationMissingData

The evaluationMissingData.

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()
Returns
Type Description
Parser<MonitoringQueryLanguageCondition>
Overrides

getQuery()

public String getQuery()

Monitoring Query Language query that outputs a boolean stream.

string query = 1;

Returns
Type Description
String

The query.

getQueryBytes()

public ByteString getQueryBytes()

Monitoring Query Language query that outputs a boolean stream.

string query = 1;

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;

Returns
Type Description
AlertPolicy.Condition.Trigger

The trigger.

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
Type Description
AlertPolicy.Condition.TriggerOrBuilder

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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder newBuilderForType()
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder toBuilder()
Returns
Type Description
AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException