ScorecardResponse class
A widget showing the latest value of a metric, and how this value relates to one or more thresholds.
Constructors
-
ScorecardResponse({required Input<
Map< blankView, required Input<String, dynamic> >GaugeViewResponse> gaugeView, required Input<SparkChartViewResponse> sparkChartView, required Input<List< thresholds, required Input<ThresholdResponse> >TimeSeriesQueryResponse> timeSeriesQuery}) -
Creates a new ScorecardResponse.
blankViewWill cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.gaugeViewWill cause the scorecard to show a gauge chart.sparkChartViewWill cause the scorecard to show a spark chart.thresholdsThe thresholds used to determine the state of the scorecard given the time series' current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: 'DANGER', trigger: 'ABOVE', }, { value: 70, category: 'WARNING', trigger: 'ABOVE', }, { value: 10, category: 'DANGER', trigger: 'BELOW', }, { value: 20, category: 'WARNING', trigger: 'BELOW', } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.timeSeriesQueryFields for querying time series data from the Stackdriver metrics API.const -
ScorecardResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
blankView
→ Input<
Map< String, dynamic> > -
Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
final
-
gaugeView
→ Input<
GaugeViewResponse> -
Will cause the scorecard to show a gauge chart.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sparkChartView
→ Input<
SparkChartViewResponse> -
Will cause the scorecard to show a spark chart.
final
-
thresholds
→ Input<
List< ThresholdResponse> > -
The thresholds used to determine the state of the scorecard given the time series' current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: 'DANGER', trigger: 'ABOVE', }, { value: 70, category: 'WARNING', trigger: 'ABOVE', }, { value: 10, category: 'DANGER', trigger: 'BELOW', }, { value: 20, category: 'WARNING', trigger: 'BELOW', } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
final
-
timeSeriesQuery
→ Input<
TimeSeriesQueryResponse> -
Fields for querying time series data from the Stackdriver metrics API.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited