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 Cloud 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
MetricThreshold() |
| Modifier and Type | Method and Description |
|---|---|
MetricThreshold |
clone() |
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
resources).
|
String |
getComparison()
The comparison to apply between the time series (indicated by filter and aggregation) and the
threshold (indicated by threshold_value).
|
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.
|
String |
getDenominatorFilter()
A filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies a time series
that should be used as the denominator of a ratio that will be compared with the threshold.
|
String |
getDuration()
Required.
|
String |
getEvaluationMissingData()
A condition control that determines how metric-threshold conditions are evaluated when data
stops arriving.
|
String |
getFilter()
Required.
|
ForecastOptions |
getForecastOptions()
When this field is present, the MetricThreshold condition forecasts whether the time series is
predicted to violate the threshold within the forecast_horizon.
|
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(String fieldName,
Object value) |
MetricThreshold |
setAggregations(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
resources).
|
MetricThreshold |
setComparison(String comparison)
The comparison to apply between the time series (indicated by filter and aggregation) and the
threshold (indicated by threshold_value).
|
MetricThreshold |
setDenominatorAggregations(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.
|
MetricThreshold |
setDenominatorFilter(String denominatorFilter)
A filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies a time series
that should be used as the denominator of a ratio that will be compared with the threshold.
|
MetricThreshold |
setDuration(String duration)
Required.
|
MetricThreshold |
setEvaluationMissingData(String evaluationMissingData)
A condition control that determines how metric-threshold conditions are evaluated when data
stops arriving.
|
MetricThreshold |
setFilter(String filter)
Required.
|
MetricThreshold |
setForecastOptions(ForecastOptions forecastOptions)
When this field is present, the MetricThreshold condition forecasts whether the time series is
predicted to violate the threshold within the forecast_horizon.
|
MetricThreshold |
setThresholdValue(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, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<Aggregation> getAggregations()
null for nonepublic MetricThreshold setAggregations(List<Aggregation> aggregations)
aggregations - aggregations or null for nonepublic String getComparison()
null for nonepublic MetricThreshold setComparison(String comparison)
comparison - comparison or null for nonepublic List<Aggregation> getDenominatorAggregations()
null for nonepublic MetricThreshold setDenominatorAggregations(List<Aggregation> denominatorAggregations)
denominatorAggregations - denominatorAggregations or null for nonepublic String getDenominatorFilter()
null for nonepublic MetricThreshold setDenominatorFilter(String denominatorFilter)
denominatorFilter - denominatorFilter or null for nonepublic String getDuration()
null for nonepublic MetricThreshold setDuration(String duration)
duration - duration or null for nonepublic String getEvaluationMissingData()
null for nonepublic MetricThreshold setEvaluationMissingData(String evaluationMissingData)
evaluationMissingData - evaluationMissingData or null for nonepublic String getFilter()
null for nonepublic MetricThreshold setFilter(String filter)
filter - filter or null for nonepublic ForecastOptions getForecastOptions()
null for nonepublic MetricThreshold setForecastOptions(ForecastOptions forecastOptions)
forecastOptions - forecastOptions or null for nonepublic Double getThresholdValue()
null for nonepublic MetricThreshold setThresholdValue(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(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic MetricThreshold clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.