- 3.55.0 (latest)
- 3.54.0
- 3.53.0
- 3.52.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.6
- 3.3.6
- 3.2.10
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AlertPolicy.Condition.MetricAbsence.BuilderImplements
AlertPolicy.Condition.MetricAbsenceOrBuilderStatic 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 |
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 |
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 |
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 |
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 |
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 |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
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 |
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 |
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 |
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 |
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 |