#[non_exhaustive]pub enum MetricKind {
Unspecified,
Gauge,
Delta,
Cumulative,
UnknownValue(UnknownValue),
}Expand description
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].
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using MetricKind::value or MetricKind::name.
Implementations§
Trait Implementations§
Source§impl Clone for MetricKind
impl Clone for MetricKind
Source§fn clone(&self) -> MetricKind
fn clone(&self) -> MetricKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more