public static final class AlertPolicy.Condition.MetricAbsence extends com.google.protobuf.GeneratedMessageV3 implements AlertPolicy.Condition.MetricAbsenceOrBuilder
A condition type that checks that monitored resources are reporting data. The configuration defines a metric and a set of monitored resources. The predicate is considered in violation when a time series for the specified metric of a monitored resource does not include any data in the specified `duration`.Protobuf type
google.monitoring.v3.AlertPolicy.Condition.MetricAbsence| Modifier and Type | Class and Description |
|---|---|
static class |
AlertPolicy.Condition.MetricAbsence.Builder
A condition type that checks that monitored resources
are reporting data.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AGGREGATIONS_FIELD_NUMBER |
static int |
DURATION_FIELD_NUMBER |
static int |
FILTER_FIELD_NUMBER |
static int |
TRIGGER_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Aggregation |
getAggregations(int index)
Specifies the alignment of data points in individual time series as
well as how to combine the retrieved time series together (such as
when aggregating multiple streams on each resource to a single
stream for each resource or when aggregating streams across all
members of a group of resources).
|
int |
getAggregationsCount()
Specifies the alignment of data points in individual time series as
well as how to combine the retrieved time series together (such as
when aggregating multiple streams on each resource to a single
stream for each resource or when aggregating streams across all
members of a group of resources).
|
List<Aggregation> |
getAggregationsList()
Specifies the alignment of data points in individual time series as
well as how to combine the retrieved time series together (such as
when aggregating multiple streams on each resource to a single
stream for each resource or when aggregating streams across all
members of a group of resources).
|
AggregationOrBuilder |
getAggregationsOrBuilder(int index)
Specifies the alignment of data points in individual time series as
well as how to combine the retrieved time series together (such as
when aggregating multiple streams on each resource to a single
stream for each resource or when aggregating streams across all
members of a group of resources).
|
List<? extends AggregationOrBuilder> |
getAggregationsOrBuilderList()
Specifies the alignment of data points in individual time series as
well as how to combine the retrieved time series together (such as
when aggregating multiple streams on each resource to a single
stream for each resource or when aggregating streams across all
members of a group of resources).
|
static AlertPolicy.Condition.MetricAbsence |
getDefaultInstance() |
AlertPolicy.Condition.MetricAbsence |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Duration |
getDuration()
The amount of time that a time series must fail to report new
data to be considered failing.
|
com.google.protobuf.DurationOrBuilder |
getDurationOrBuilder()
The amount of time that a time series must fail to report new
data to be considered failing.
|
String |
getFilter()
Required.
|
com.google.protobuf.ByteString |
getFilterBytes()
Required.
|
com.google.protobuf.Parser<AlertPolicy.Condition.MetricAbsence> |
getParserForType() |
int |
getSerializedSize() |
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.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 fail to report new
data to be considered failing.
|
int |
hashCode() |
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() |
static AlertPolicy.Condition.MetricAbsence.Builder |
newBuilder() |
static AlertPolicy.Condition.MetricAbsence.Builder |
newBuilder(AlertPolicy.Condition.MetricAbsence prototype) |
AlertPolicy.Condition.MetricAbsence.Builder |
newBuilderForType() |
protected AlertPolicy.Condition.MetricAbsence.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AlertPolicy.Condition.MetricAbsence |
parseDelimitedFrom(InputStream input) |
static AlertPolicy.Condition.MetricAbsence |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition.MetricAbsence |
parseFrom(byte[] data) |
static AlertPolicy.Condition.MetricAbsence |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition.MetricAbsence |
parseFrom(ByteBuffer data) |
static AlertPolicy.Condition.MetricAbsence |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition.MetricAbsence |
parseFrom(com.google.protobuf.ByteString data) |
static AlertPolicy.Condition.MetricAbsence |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition.MetricAbsence |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AlertPolicy.Condition.MetricAbsence |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition.MetricAbsence |
parseFrom(InputStream input) |
static AlertPolicy.Condition.MetricAbsence |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AlertPolicy.Condition.MetricAbsence> |
parser() |
AlertPolicy.Condition.MetricAbsence.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int FILTER_FIELD_NUMBER
public static final int AGGREGATIONS_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
public static final int TRIGGER_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getFilter()
Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies which time series should be compared with the threshold. The filter is similar to the one that is specified in the [`ListTimeSeries` request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that call is useful to verify the time series that will be retrieved / processed). The filter must specify the metric type and the resource type. Optionally, it can specify resource labels and metric labels. This field must not exceed 2048 Unicode characters in length.
string filter = 1 [(.google.api.field_behavior) = REQUIRED];getFilter in interface AlertPolicy.Condition.MetricAbsenceOrBuilderpublic com.google.protobuf.ByteString getFilterBytes()
Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies which time series should be compared with the threshold. The filter is similar to the one that is specified in the [`ListTimeSeries` request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that call is useful to verify the time series that will be retrieved / processed). The filter must specify the metric type and the resource type. Optionally, it can specify resource labels and metric labels. This field must not exceed 2048 Unicode characters in length.
string filter = 1 [(.google.api.field_behavior) = REQUIRED];getFilterBytes in interface AlertPolicy.Condition.MetricAbsenceOrBuilderpublic List<Aggregation> getAggregationsList()
Specifies the alignment of data points in individual time series as well as how to combine the retrieved time series together (such as when aggregating multiple streams on each resource to a single stream for each resource or when aggregating streams across all members of a group of resources). Multiple aggregations are applied in the order specified. This field is similar to the one in the [`ListTimeSeries` request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It is advisable to use the `ListTimeSeries` method when debugging this field.
repeated .google.monitoring.v3.Aggregation aggregations = 5;getAggregationsList in interface AlertPolicy.Condition.MetricAbsenceOrBuilderpublic List<? extends AggregationOrBuilder> getAggregationsOrBuilderList()
Specifies the alignment of data points in individual time series as well as how to combine the retrieved time series together (such as when aggregating multiple streams on each resource to a single stream for each resource or when aggregating streams across all members of a group of resources). Multiple aggregations are applied in the order specified. This field is similar to the one in the [`ListTimeSeries` request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It is advisable to use the `ListTimeSeries` method when debugging this field.
repeated .google.monitoring.v3.Aggregation aggregations = 5;getAggregationsOrBuilderList in interface AlertPolicy.Condition.MetricAbsenceOrBuilderpublic int getAggregationsCount()
Specifies the alignment of data points in individual time series as well as how to combine the retrieved time series together (such as when aggregating multiple streams on each resource to a single stream for each resource or when aggregating streams across all members of a group of resources). Multiple aggregations are applied in the order specified. This field is similar to the one in the [`ListTimeSeries` request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It is advisable to use the `ListTimeSeries` method when debugging this field.
repeated .google.monitoring.v3.Aggregation aggregations = 5;getAggregationsCount in interface AlertPolicy.Condition.MetricAbsenceOrBuilderpublic Aggregation getAggregations(int index)
Specifies the alignment of data points in individual time series as well as how to combine the retrieved time series together (such as when aggregating multiple streams on each resource to a single stream for each resource or when aggregating streams across all members of a group of resources). Multiple aggregations are applied in the order specified. This field is similar to the one in the [`ListTimeSeries` request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It is advisable to use the `ListTimeSeries` method when debugging this field.
repeated .google.monitoring.v3.Aggregation aggregations = 5;getAggregations in interface AlertPolicy.Condition.MetricAbsenceOrBuilderpublic AggregationOrBuilder getAggregationsOrBuilder(int index)
Specifies the alignment of data points in individual time series as well as how to combine the retrieved time series together (such as when aggregating multiple streams on each resource to a single stream for each resource or when aggregating streams across all members of a group of resources). Multiple aggregations are applied in the order specified. This field is similar to the one in the [`ListTimeSeries` request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It is advisable to use the `ListTimeSeries` method when debugging this field.
repeated .google.monitoring.v3.Aggregation aggregations = 5;getAggregationsOrBuilder in interface AlertPolicy.Condition.MetricAbsenceOrBuilderpublic boolean hasDuration()
The amount of time that a time series must fail to report new data to be considered failing. The minimum value of this field is 120 seconds. Larger values that are a multiple of a minute--for example, 240 or 300 seconds--are supported. If an invalid value is given, an error will be returned. The `Duration.nanos` field is ignored.
.google.protobuf.Duration duration = 2;hasDuration in interface AlertPolicy.Condition.MetricAbsenceOrBuilderpublic com.google.protobuf.Duration getDuration()
The amount of time that a time series must fail to report new data to be considered failing. The minimum value of this field is 120 seconds. Larger values that are a multiple of a minute--for example, 240 or 300 seconds--are supported. If an invalid value is given, an error will be returned. The `Duration.nanos` field is ignored.
.google.protobuf.Duration duration = 2;getDuration in interface AlertPolicy.Condition.MetricAbsenceOrBuilderpublic com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
The amount of time that a time series must fail to report new data to be considered failing. The minimum value of this field is 120 seconds. Larger values that are a multiple of a minute--for example, 240 or 300 seconds--are supported. If an invalid value is given, an error will be returned. The `Duration.nanos` field is ignored.
.google.protobuf.Duration duration = 2;getDurationOrBuilder in interface AlertPolicy.Condition.MetricAbsenceOrBuilderpublic 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`.
.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;hasTrigger in interface AlertPolicy.Condition.MetricAbsenceOrBuilderpublic 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`.
.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;getTrigger in interface AlertPolicy.Condition.MetricAbsenceOrBuilderpublic 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`.
.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;getTriggerOrBuilder in interface AlertPolicy.Condition.MetricAbsenceOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AlertPolicy.Condition.MetricAbsence parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition.MetricAbsence parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition.MetricAbsence parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition.MetricAbsence parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition.MetricAbsence parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition.MetricAbsence parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition.MetricAbsence parseFrom(InputStream input) throws IOException
IOExceptionpublic static AlertPolicy.Condition.MetricAbsence parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AlertPolicy.Condition.MetricAbsence parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AlertPolicy.Condition.MetricAbsence parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AlertPolicy.Condition.MetricAbsence parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AlertPolicy.Condition.MetricAbsence parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AlertPolicy.Condition.MetricAbsence.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AlertPolicy.Condition.MetricAbsence.Builder newBuilder()
public static AlertPolicy.Condition.MetricAbsence.Builder newBuilder(AlertPolicy.Condition.MetricAbsence prototype)
public AlertPolicy.Condition.MetricAbsence.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AlertPolicy.Condition.MetricAbsence.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AlertPolicy.Condition.MetricAbsence getDefaultInstance()
public static com.google.protobuf.Parser<AlertPolicy.Condition.MetricAbsence> parser()
public com.google.protobuf.Parser<AlertPolicy.Condition.MetricAbsence> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AlertPolicy.Condition.MetricAbsence getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.