Struct gapi_grpc::google::monitoring::dashboard::v1::Scorecard[][src]

pub struct Scorecard {
    pub time_series_query: Option<TimeSeriesQuery>,
    pub thresholds: Vec<Threshold>,
    pub data_view: Option<DataView>,
}

A widget showing the latest value of a metric, and how this value relates to one or more thresholds.

Fields

time_series_query: Option<TimeSeriesQuery>

Required. Fields for querying time series data from the Stackdriver metrics API.

thresholds: Vec<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.

data_view: Option<DataView>

Defines the optional additional chart shown on the scorecard. If neither is included - then a default scorecard is shown.

Trait Implementations

impl Clone for Scorecard[src]

impl Debug for Scorecard[src]

impl Default for Scorecard[src]

impl Message for Scorecard[src]

impl PartialEq<Scorecard> for Scorecard[src]

impl StructuralPartialEq for Scorecard[src]

Auto Trait Implementations

impl RefUnwindSafe for Scorecard

impl Send for Scorecard

impl Sync for Scorecard

impl Unpin for Scorecard

impl UnwindSafe for Scorecard

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]