Trait metrix::PutsSnapshot
[−]
[src]
pub trait PutsSnapshot { fn put_snapshot(&self, into: &mut Snapshot, descriptive: bool); }
Implementors are able to writ thier snapshot into the given snapshot.
Guidelines for writing snapshots:
A
PutsSnapshot
that has a name should create a new sub snapshot and add its values thereA
PutsSnapshot
that does not have a name should add its values directly to the given snapshotWhen
descriptive
is set totrue
PutsSnapshot
should put itstitle
anddescription
into the sameSnapshot
it put its values(exception: instruments) thereby not overwriting already existing descriptions so that the more general top level ones survive.When
descriptive
is set totrue
on an instrument the instrument should put its description into the snapshot it got passed therby adding the suffixes "_title" and "_description" to its name.
Required Methods
fn put_snapshot(&self, into: &mut Snapshot, descriptive: bool)
Puts the current snapshot values into the given Snapshot
thereby
following the guidelines of PutsSnapshot
.
Implementors
impl PutsSnapshot for Counter
impl PutsSnapshot for Gauge
impl PutsSnapshot for Meter
impl PutsSnapshot for Histogram
impl<L> PutsSnapshot for Panel<L>
impl<L> PutsSnapshot for TelemetryProcessor<L> where
L: Clone + Eq + Send + 'static,impl PutsSnapshot for ProcessorMount
impl PutsSnapshot for TelemetryDriver
impl<L> PutsSnapshot for Cockpit<L> where
L: Clone + Eq + Send + 'static,