public final class MetricThreshold
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Stackdriver Monitoring API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
MetricThreshold() |
| Modifier and Type | Method and Description |
|---|---|
MetricThreshold |
clone() |
java.util.List<Aggregation> |
getAggregations()
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
resrouces).
|
java.lang.String |
getComparison()
The comparison to apply between the time series (indicated by filter and aggregation) and the
threshold (indicated by threshold_value).
|
java.util.List<Aggregation> |
getDenominatorAggregations()
Specifies the alignment of data points in individual time series selected by denominatorFilter
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).When computing ratios, the aggregations and
denominator_aggregations fields must use the same alignment period and produce time series that
have the same periodicity and labels.This field is similar to the one in the
MetricService.ListTimeSeries request.
|
java.lang.String |
getDenominatorFilter()
A filter that identifies a time series that should be used as the denominator of a ratio that
will be compared with the threshold.
|
java.lang.String |
getDuration()
The amount of time that a time series must violate the threshold to be considered failing.
|
java.lang.String |
getFilter()
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 MetricService.ListTimeSeries request (that call is
useful to verify the time series that will be retrieved / processed) and must specify the
metric type and optionally may contain restrictions on resource type, resource labels, and
metric labels.
|
java.lang.Double |
getThresholdValue()
A value against which to compare the time series.
|
Trigger |
getTrigger()
The number/percent of time series for which the comparison must hold in order for the condition
to trigger.
|
MetricThreshold |
set(java.lang.String fieldName,
java.lang.Object value) |
MetricThreshold |
setAggregations(java.util.List<Aggregation> aggregations)
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
resrouces).
|
MetricThreshold |
setComparison(java.lang.String comparison)
The comparison to apply between the time series (indicated by filter and aggregation) and the
threshold (indicated by threshold_value).
|
MetricThreshold |
setDenominatorAggregations(java.util.List<Aggregation> denominatorAggregations)
Specifies the alignment of data points in individual time series selected by denominatorFilter
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).When computing ratios, the aggregations and
denominator_aggregations fields must use the same alignment period and produce time series that
have the same periodicity and labels.This field is similar to the one in the
MetricService.ListTimeSeries request.
|
MetricThreshold |
setDenominatorFilter(java.lang.String denominatorFilter)
A filter that identifies a time series that should be used as the denominator of a ratio that
will be compared with the threshold.
|
MetricThreshold |
setDuration(java.lang.String duration)
The amount of time that a time series must violate the threshold to be considered failing.
|
MetricThreshold |
setFilter(java.lang.String filter)
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 MetricService.ListTimeSeries request (that call is
useful to verify the time series that will be retrieved / processed) and must specify the
metric type and optionally may contain restrictions on resource type, resource labels, and
metric labels.
|
MetricThreshold |
setThresholdValue(java.lang.Double thresholdValue)
A value against which to compare the time series.
|
MetricThreshold |
setTrigger(Trigger trigger)
The number/percent of time series for which the comparison must hold in order for the condition
to trigger.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.util.List<Aggregation> getAggregations()
null for nonepublic MetricThreshold setAggregations(java.util.List<Aggregation> aggregations)
aggregations - aggregations or null for nonepublic java.lang.String getComparison()
null for nonepublic MetricThreshold setComparison(java.lang.String comparison)
comparison - comparison or null for nonepublic java.util.List<Aggregation> getDenominatorAggregations()
null for nonepublic MetricThreshold setDenominatorAggregations(java.util.List<Aggregation> denominatorAggregations)
denominatorAggregations - denominatorAggregations or null for nonepublic java.lang.String getDenominatorFilter()
null for nonepublic MetricThreshold setDenominatorFilter(java.lang.String denominatorFilter)
denominatorFilter - denominatorFilter or null for nonepublic java.lang.String getDuration()
null for nonepublic MetricThreshold setDuration(java.lang.String duration)
duration - duration or null for nonepublic java.lang.String getFilter()
null for nonepublic MetricThreshold setFilter(java.lang.String filter)
filter - filter or null for nonepublic java.lang.Double getThresholdValue()
null for nonepublic MetricThreshold setThresholdValue(java.lang.Double thresholdValue)
thresholdValue - thresholdValue or null for nonepublic Trigger getTrigger()
null for nonepublic MetricThreshold setTrigger(Trigger trigger)
trigger - trigger or null for nonepublic MetricThreshold set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic MetricThreshold clone()
clone in class com.google.api.client.json.GenericJson