pub struct MetricValue {
pub bool_value: Option<bool>,
pub distribution_value: Option<Distribution>,
pub double_value: Option<f64>,
pub end_time: Option<DateTime<Utc>>,
pub int64_value: Option<i64>,
pub labels: Option<HashMap<String, String>>,
pub money_value: Option<Money>,
pub start_time: Option<DateTime<Utc>>,
pub string_value: Option<String>,
}
Expand description
Represents a single metric value.
This type is not used in any activity, and only used as part of another schema.
Fields§
§bool_value: Option<bool>
A boolean value.
distribution_value: Option<Distribution>
A distribution value.
double_value: Option<f64>
A double precision floating point value.
end_time: Option<DateTime<Utc>>
The end of the time period over which this metric value’s measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.
int64_value: Option<i64>
A signed 64-bit integer value.
labels: Option<HashMap<String, String>>
The labels describing the metric value. See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.
money_value: Option<Money>
A money value.
start_time: Option<DateTime<Utc>>
The start of the time period over which this metric value’s measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.
string_value: Option<String>
A text string value.
Trait Implementations§
Source§impl Clone for MetricValue
impl Clone for MetricValue
Source§fn clone(&self) -> MetricValue
fn clone(&self) -> MetricValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MetricValue
impl Debug for MetricValue
Source§impl Default for MetricValue
impl Default for MetricValue
Source§fn default() -> MetricValue
fn default() -> MetricValue
Source§impl<'de> Deserialize<'de> for MetricValue
impl<'de> Deserialize<'de> for MetricValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for MetricValue
impl Serialize for MetricValue
impl Part for MetricValue
Auto Trait Implementations§
impl Freeze for MetricValue
impl RefUnwindSafe for MetricValue
impl Send for MetricValue
impl Sync for MetricValue
impl Unpin for MetricValue
impl UnwindSafe for MetricValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more