Enum gapi_grpc::google::api::metric_descriptor::MetricKind[][src]

#[repr(i32)]pub enum MetricKind {
    Unspecified,
    Gauge,
    Delta,
    Cumulative,
}

The kind of measurement. It describes how the data is reported. For information on setting the start time and end time based on the MetricKind, see [TimeInterval][google.monitoring.v3.TimeInterval].

Variants

Unspecified

Do not use this default value.

Gauge

An instantaneous measurement of a value.

Delta

The change in a value during a time interval.

Cumulative

A value accumulated over a time interval. Cumulative measurements in a time series should have the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points.

Implementations

impl MetricKind[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of MetricKind.

pub fn from_i32(value: i32) -> Option<MetricKind>[src]

Converts an i32 to a MetricKind, or None if value is not a valid variant.

Trait Implementations

impl Clone for MetricKind[src]

impl Copy for MetricKind[src]

impl Debug for MetricKind[src]

impl Default for MetricKind[src]

impl Eq for MetricKind[src]

impl From<MetricKind> for i32[src]

impl Hash for MetricKind[src]

impl Ord for MetricKind[src]

impl PartialEq<MetricKind> for MetricKind[src]

impl PartialOrd<MetricKind> for MetricKind[src]

impl StructuralEq for MetricKind[src]

impl StructuralPartialEq for MetricKind[src]

Auto Trait Implementations

impl RefUnwindSafe for MetricKind

impl Send for MetricKind

impl Sync for MetricKind

impl Unpin for MetricKind

impl UnwindSafe for MetricKind

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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]