pub enum MetricDataV1 {
Gauge {
value: MetricNumberV1,
},
Sum {
value: MetricNumberV1,
temporality: MetricTemporalityV1,
monotonic: bool,
},
ExplicitHistogram {
temporality: MetricTemporalityV1,
count: u64,
sum: Option<MetricNumberV1>,
bounds_f64_bits: Vec<u64>,
bucket_counts: Vec<u64>,
},
ExponentialHistogram {
temporality: MetricTemporalityV1,
count: u64,
sum: Option<MetricNumberV1>,
scale: i32,
zero_count: u64,
positive: MetricExponentialBucketsV1,
negative: MetricExponentialBucketsV1,
},
}Variants§
Gauge
Fields
§
value: MetricNumberV1Sum
ExplicitHistogram
ExponentialHistogram
Fields
§
temporality: MetricTemporalityV1§
sum: Option<MetricNumberV1>§
positive: MetricExponentialBucketsV1§
negative: MetricExponentialBucketsV1Implementations§
Source§impl MetricDataV1
impl MetricDataV1
pub const fn kind(&self) -> MetricPointKindV1
pub const fn temporality(&self) -> Option<MetricTemporalityV1>
pub const fn monotonic(&self) -> Option<bool>
Trait Implementations§
Source§impl Clone for MetricDataV1
impl Clone for MetricDataV1
Source§impl Debug for MetricDataV1
impl Debug for MetricDataV1
Source§impl<'de> Deserialize<'de> for MetricDataV1
impl<'de> Deserialize<'de> for MetricDataV1
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MetricDataV1
Source§impl PartialEq for MetricDataV1
impl PartialEq for MetricDataV1
Source§impl Serialize for MetricDataV1
impl Serialize for MetricDataV1
impl StructuralPartialEq for MetricDataV1
Auto Trait Implementations§
impl Freeze for MetricDataV1
impl RefUnwindSafe for MetricDataV1
impl Send for MetricDataV1
impl Sync for MetricDataV1
impl Unpin for MetricDataV1
impl UnsafeUnpin for MetricDataV1
impl UnwindSafe for MetricDataV1
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
Mutably borrows from an owned value. Read more