MetricThreshold class Null safety

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).
read / write
comparison String?
The comparison to apply between the time series (indicated by filter and aggregation) and the threshold (indicated by threshold_value).
read / write
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.
read / write
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.
read / write
duration String?
The amount of time that a time series must violate the threshold to be considered failing.
read / write
evaluationMissingData String?
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving. Possible string values are:
read / write
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).
read / write
forecastOptions ForecastOptions?
When this field is present, the MetricThreshold condition forecasts whether the time series is predicted to violate the threshold within the forecast_horizion.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
thresholdValue double?
A value against which to compare the time series.
read / write
trigger Trigger?
The number/percent of time series for which the comparison must hold in order for the condition to trigger.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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