pub struct ObservedMetric {
pub data: MetricsData,
pub timestamp_ns: i64,
}Expand description
One observed metric, tagged with the pipeline-clock timestamp it was seen at.
The collected record the MetricsLogObserver keeps for inspection/export.
Fields§
§data: MetricsDataThe metric payload (TTFB / processing / usage / turn).
timestamp_ns: i64Pipeline-clock timestamp (ns) the Frame::Metrics was observed at.
Trait Implementations§
Source§impl Clone for ObservedMetric
impl Clone for ObservedMetric
Source§impl Debug for ObservedMetric
impl Debug for ObservedMetric
Source§impl PartialEq for ObservedMetric
impl PartialEq for ObservedMetric
impl StructuralPartialEq for ObservedMetric
Auto Trait Implementations§
impl Freeze for ObservedMetric
impl RefUnwindSafe for ObservedMetric
impl Send for ObservedMetric
impl Sync for ObservedMetric
impl Unpin for ObservedMetric
impl UnsafeUnpin for ObservedMetric
impl UnwindSafe for ObservedMetric
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