Class AlertPolicy.Condition.MetricAbsence.Builder (3.46.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
Type Description
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
Name Description
value Aggregation
Returns
Type Description
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
Name Description
builderForValue Aggregation.Builder
Returns
Type Description
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
Name Description
index int
value Aggregation
Returns
Type Description
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
Name Description
index int
builderForValue Aggregation.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.monitoring.v3.Aggregation>
Returns
Type Description
AlertPolicy.Condition.MetricAbsence.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AlertPolicy.Condition.MetricAbsence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlertPolicy.Condition.MetricAbsence.Builder
Overrides

build()

public AlertPolicy.Condition.MetricAbsence build()
Returns
Type Description
AlertPolicy.Condition.MetricAbsence

buildPartial()

public AlertPolicy.Condition.MetricAbsence buildPartial()
Returns
Type Description
AlertPolicy.Condition.MetricAbsence

clear()

public AlertPolicy.Condition.MetricAbsence.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
AlertPolicy.Condition.MetricAbsence.Builder

clearField(Descriptors.FieldDescriptor field)

public AlertPolicy.Condition.MetricAbsence.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
AlertPolicy.Condition.MetricAbsence.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AlertPolicy.Condition.MetricAbsence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
AlertPolicy.Condition.MetricAbsence.Builder

clone()

public AlertPolicy.Condition.MetricAbsence.Builder clone()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.monitoring.v3.AggregationOrBuilder>

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
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.

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

Returns
Type Description
boolean

Whether the trigger field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Duration
Returns
Type Description
AlertPolicy.Condition.MetricAbsence.Builder

mergeFrom(AlertPolicy.Condition.MetricAbsence other)

public AlertPolicy.Condition.MetricAbsence.Builder mergeFrom(AlertPolicy.Condition.MetricAbsence other)
Parameter
Name Description
other AlertPolicy.Condition.MetricAbsence
Returns
Type Description
AlertPolicy.Condition.MetricAbsence.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AlertPolicy.Condition.MetricAbsence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlertPolicy.Condition.MetricAbsence.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AlertPolicy.Condition.MetricAbsence.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value AlertPolicy.Condition.Trigger
Returns
Type Description
AlertPolicy.Condition.MetricAbsence.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlertPolicy.Condition.MetricAbsence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
value Aggregation
Returns
Type Description
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
Name Description
index int
builderForValue Aggregation.Builder
Returns
Type Description
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
Name Description
value Duration
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
AlertPolicy.Condition.MetricAbsence.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AlertPolicy.Condition.MetricAbsence.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The filter to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for filter to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value AlertPolicy.Condition.Trigger
Returns
Type Description
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
Name Description
builderForValue AlertPolicy.Condition.Trigger.Builder
Returns
Type Description
AlertPolicy.Condition.MetricAbsence.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AlertPolicy.Condition.MetricAbsence.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AlertPolicy.Condition.MetricAbsence.Builder
Overrides