pub struct TelemetryData {
pub metric: String,
pub value: f64,
pub tags: HashMap<String, String>,
pub timestamp: Option<i64>,
}
Expand description
Represents a telemetry data point.
Fields§
§metric: String
The metric name.
value: f64
The metric value.
Optional tags for the metric.
timestamp: Option<i64>
Timestamp in milliseconds since epoch.
Trait Implementations§
Source§impl Clone for TelemetryData
impl Clone for TelemetryData
Source§fn clone(&self) -> TelemetryData
fn clone(&self) -> TelemetryData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TelemetryData
impl Debug for TelemetryData
Source§impl<'de> Deserialize<'de> for TelemetryData
impl<'de> Deserialize<'de> for TelemetryData
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
Auto Trait Implementations§
impl Freeze for TelemetryData
impl RefUnwindSafe for TelemetryData
impl Send for TelemetryData
impl Sync for TelemetryData
impl Unpin for TelemetryData
impl UnwindSafe for TelemetryData
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