Class AlertPolicy.Condition.MetricAbsence.Builder (3.42.0)

public static final class AlertPolicy.Condition.MetricAbsence.Builder extends GeneratedMessageV3.Builder<AlertPolicy.Condition.MetricAbsence.Builder> 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAggregations(Aggregation value)

public AlertPolicy.Condition.MetricAbsence.Builder addAggregations(Aggregation value)

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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Parameter
NameDescription
valueAggregation
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

addAggregations(Aggregation.Builder builderForValue)

public AlertPolicy.Condition.MetricAbsence.Builder addAggregations(Aggregation.Builder builderForValue)

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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Parameter
NameDescription
builderForValueAggregation.Builder
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

addAggregations(int index, Aggregation value)

public AlertPolicy.Condition.MetricAbsence.Builder addAggregations(int index, Aggregation value)

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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Parameters
NameDescription
indexint
valueAggregation
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

addAggregations(int index, Aggregation.Builder builderForValue)

public AlertPolicy.Condition.MetricAbsence.Builder addAggregations(int index, Aggregation.Builder builderForValue)

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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Parameters
NameDescription
indexint
builderForValueAggregation.Builder
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

addAggregationsBuilder()

public Aggregation.Builder addAggregationsBuilder()

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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Returns
TypeDescription
Aggregation.Builder

addAggregationsBuilder(int index)

public Aggregation.Builder addAggregationsBuilder(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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Aggregation.Builder

addAllAggregations(Iterable<? extends Aggregation> values)

public AlertPolicy.Condition.MetricAbsence.Builder addAllAggregations(Iterable<? extends Aggregation> values)

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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.monitoring.v3.Aggregation>
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AlertPolicy.Condition.MetricAbsence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder
Overrides

build()

public AlertPolicy.Condition.MetricAbsence build()
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence

buildPartial()

public AlertPolicy.Condition.MetricAbsence buildPartial()
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence

clear()

public AlertPolicy.Condition.MetricAbsence.Builder clear()
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder
Overrides

clearAggregations()

public AlertPolicy.Condition.MetricAbsence.Builder clearAggregations()

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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

clearDuration()

public AlertPolicy.Condition.MetricAbsence.Builder clearDuration()

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;

Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

clearField(Descriptors.FieldDescriptor field)

public AlertPolicy.Condition.MetricAbsence.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder
Overrides

clearFilter()

public AlertPolicy.Condition.MetricAbsence.Builder clearFilter()

Required. A filter 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 (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];

Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AlertPolicy.Condition.MetricAbsence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder
Overrides

clearTrigger()

public AlertPolicy.Condition.MetricAbsence.Builder 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.

.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;

Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

clone()

public AlertPolicy.Condition.MetricAbsence.Builder clone()
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder
Overrides

getAggregations(int index)

public 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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Aggregation

getAggregationsBuilder(int index)

public Aggregation.Builder getAggregationsBuilder(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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Aggregation.Builder

getAggregationsBuilderList()

public List<Aggregation.Builder> getAggregationsBuilderList()

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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Returns
TypeDescription
List<Builder>

getAggregationsCount()

public 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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Returns
TypeDescription
int

getAggregationsList()

public 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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Returns
TypeDescription
List<Aggregation>

getAggregationsOrBuilder(int index)

public 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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
AggregationOrBuilder

getAggregationsOrBuilderList()

public 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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Returns
TypeDescription
List<? extends com.google.monitoring.v3.AggregationOrBuilder>

getDefaultInstanceForType()

public AlertPolicy.Condition.MetricAbsence getDefaultInstanceForType()
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDuration()

public 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;

Returns
TypeDescription
Duration

The duration.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

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;

Returns
TypeDescription
Builder

getDurationOrBuilder()

public 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;

Returns
TypeDescription
DurationOrBuilder

getFilter()

public String getFilter()

Required. A filter 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 (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];

Returns
TypeDescription
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Required. A filter 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 (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];

Returns
TypeDescription
ByteString

The bytes for filter.

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.

.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;

Returns
TypeDescription
AlertPolicy.Condition.Trigger

The trigger.

getTriggerBuilder()

public AlertPolicy.Condition.Trigger.Builder 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.

.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;

Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder

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.

.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;

Returns
TypeDescription
AlertPolicy.Condition.TriggerOrBuilder

hasDuration()

public 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;

Returns
TypeDescription
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.

.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;

Returns
TypeDescription
boolean

Whether the trigger field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDuration(Duration value)

public AlertPolicy.Condition.MetricAbsence.Builder mergeDuration(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

mergeFrom(AlertPolicy.Condition.MetricAbsence other)

public AlertPolicy.Condition.MetricAbsence.Builder mergeFrom(AlertPolicy.Condition.MetricAbsence other)
Parameter
NameDescription
otherAlertPolicy.Condition.MetricAbsence
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AlertPolicy.Condition.MetricAbsence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AlertPolicy.Condition.MetricAbsence.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder
Overrides

mergeTrigger(AlertPolicy.Condition.Trigger value)

public AlertPolicy.Condition.MetricAbsence.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.

.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;

Parameter
NameDescription
valueAlertPolicy.Condition.Trigger
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlertPolicy.Condition.MetricAbsence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder
Overrides

removeAggregations(int index)

public AlertPolicy.Condition.MetricAbsence.Builder removeAggregations(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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

setAggregations(int index, Aggregation value)

public AlertPolicy.Condition.MetricAbsence.Builder setAggregations(int index, Aggregation value)

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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Parameters
NameDescription
indexint
valueAggregation
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

setAggregations(int index, Aggregation.Builder builderForValue)

public AlertPolicy.Condition.MetricAbsence.Builder setAggregations(int index, Aggregation.Builder builderForValue)

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. It is advisable to use the ListTimeSeries method when debugging this field.

repeated .google.monitoring.v3.Aggregation aggregations = 5;

Parameters
NameDescription
indexint
builderForValueAggregation.Builder
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

setDuration(Duration value)

public AlertPolicy.Condition.MetricAbsence.Builder setDuration(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

setDuration(Duration.Builder builderForValue)

public AlertPolicy.Condition.MetricAbsence.Builder setDuration(Duration.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AlertPolicy.Condition.MetricAbsence.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder
Overrides

setFilter(String value)

public AlertPolicy.Condition.MetricAbsence.Builder setFilter(String value)

Required. A filter 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 (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];

Parameter
NameDescription
valueString

The filter to set.

Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public AlertPolicy.Condition.MetricAbsence.Builder setFilterBytes(ByteString value)

Required. A filter 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 (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];

Parameter
NameDescription
valueByteString

The bytes for filter to set.

Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AlertPolicy.Condition.MetricAbsence.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder
Overrides

setTrigger(AlertPolicy.Condition.Trigger value)

public AlertPolicy.Condition.MetricAbsence.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.

.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;

Parameter
NameDescription
valueAlertPolicy.Condition.Trigger
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

setTrigger(AlertPolicy.Condition.Trigger.Builder builderForValue)

public AlertPolicy.Condition.MetricAbsence.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.

.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;

Parameter
NameDescription
builderForValueAlertPolicy.Condition.Trigger.Builder
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AlertPolicy.Condition.MetricAbsence.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlertPolicy.Condition.MetricAbsence.Builder
Overrides