MetricThreshold class

A condition type that compares a collection of time series against a threshold.

Constructors

MetricThreshold({List<Aggregation>? aggregations, String? comparison, List<Aggregation>? denominatorAggregations, String? denominatorFilter, String? duration, String? evaluationMissingData, String? filter, ForecastOptions? forecastOptions, double? thresholdValue, Trigger? trigger})
MetricThreshold.fromJson(Map json_)

Properties

aggregations List<Aggregation>?
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).
getter/setter pair
comparison String?
The comparison to apply between the time series (indicated by filter and aggregation) and the threshold (indicated by threshold_value).
getter/setter pair
denominatorAggregations List<Aggregation>?
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.
getter/setter pair
denominatorFilter String?
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.
getter/setter pair
duration String?
The amount of time that a time series must violate the threshold to be considered failing.
getter/setter pair
evaluationMissingData String?
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.
getter/setter pair
filter String?
A filter (https://cloud.google.com/monitoring/api/v3/filters) 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 (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that call is useful to verify the time series that will be retrieved / processed).
getter/setter pair
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.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thresholdValue double?
A value against which to compare the time series.
getter/setter pair
trigger Trigger?
The number/percent of time series for which the comparison must hold in order for the condition to trigger.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited