Struct readings_probe::Probe [−][src]
pub struct Probe(_);
Expand description
The interface to reading probe.
Implementations
Creates a probe logging its data to Write implementation (usually a file).
Register an i64 used-defined metric.
Must be called prior to the first call to log_event
or spawn_heartbeat
.
The result is shared AtomicI64 that can be used by client code to share communicate updates with the probe.
TODO: type-enforce this using the Builder pattern
Spawn a thread that will record all vitals at every “interval”.
Log an individual event with a label and the current values of metrics.
Recover a pre-registered used-defined metrics from the probe.
The result is shared AtomicI64 that can be used by client code to share communicate updates with the probe.
It is more efficient for the client code to keep the shared AtomicI64 somewhere handy than calling this at every update. Nevertheless, it allows for intermediate code to just have to propagate the probe without worrying about the various metrics that the underlying code may need.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Probe
impl UnwindSafe for Probe
Blanket Implementations
Mutably borrows from an owned value. Read more