A widget showing the latest value of a metric, and how this value relates to one or more thresholds.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#gauge_view
def gauge_view() -> ::Google::Cloud::Monitoring::Dashboard::V1::Scorecard::GaugeView
- (::Google::Cloud::Monitoring::Dashboard::V1::Scorecard::GaugeView) — Will cause the scorecard to show a gauge chart.
#gauge_view=
def gauge_view=(value) -> ::Google::Cloud::Monitoring::Dashboard::V1::Scorecard::GaugeView
- value (::Google::Cloud::Monitoring::Dashboard::V1::Scorecard::GaugeView) — Will cause the scorecard to show a gauge chart.
- (::Google::Cloud::Monitoring::Dashboard::V1::Scorecard::GaugeView) — Will cause the scorecard to show a gauge chart.
#spark_chart_view
def spark_chart_view() -> ::Google::Cloud::Monitoring::Dashboard::V1::Scorecard::SparkChartView
- (::Google::Cloud::Monitoring::Dashboard::V1::Scorecard::SparkChartView) — Will cause the scorecard to show a spark chart.
#spark_chart_view=
def spark_chart_view=(value) -> ::Google::Cloud::Monitoring::Dashboard::V1::Scorecard::SparkChartView
- value (::Google::Cloud::Monitoring::Dashboard::V1::Scorecard::SparkChartView) — Will cause the scorecard to show a spark chart.
- (::Google::Cloud::Monitoring::Dashboard::V1::Scorecard::SparkChartView) — Will cause the scorecard to show a spark chart.
#thresholds
def thresholds() -> ::Array<::Google::Cloud::Monitoring::Dashboard::V1::Threshold>
-
(::Array<::Google::Cloud::Monitoring::Dashboard::V1::Threshold>) — 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.
#thresholds=
def thresholds=(value) -> ::Array<::Google::Cloud::Monitoring::Dashboard::V1::Threshold>
-
value (::Array<::Google::Cloud::Monitoring::Dashboard::V1::Threshold>) — 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.
-
(::Array<::Google::Cloud::Monitoring::Dashboard::V1::Threshold>) — 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.
#time_series_query
def time_series_query() -> ::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesQuery
- (::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesQuery) — Required. Fields for querying time series data from the Stackdriver metrics API.
#time_series_query=
def time_series_query=(value) -> ::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesQuery
- value (::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesQuery) — Required. Fields for querying time series data from the Stackdriver metrics API.
- (::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesQuery) — Required. Fields for querying time series data from the Stackdriver metrics API.