pub struct SensorReport {
pub id: SensorId,
pub key: String,
pub perturbation: Perturbation,
pub last_cost_ns: u64,
pub sampling_latency_ns: u64,
pub sample_age_ns: u64,
pub samples: u32,
pub errors: u32,
pub confidence: f64,
pub availability: Availability,
pub inactive: bool,
}Expand description
What one observation pass cost and produced, per sensor.
Published inside the snapshot: the mirror describing its own act of looking.
Fields§
§id: SensorId§key: String§perturbation: Perturbation§last_cost_ns: u64Wall time this sensor took on the most recent pass. The observation cost.
sampling_latency_ns: u64How long between asking and the value being available, where that differs from the cost. Zero when they are the same.
sample_age_ns: u64Age of the underlying value at publication time. Non-zero for sensors whose source updates more slowly than the mirror ticks.
samples: u32Cells it filled on the most recent pass.
errors: u32Reads that failed on the most recent pass.
confidence: f64Confidence in this pass, 0.0 ..= 1.0. Falls when reads fail.
availability: AvailabilityWhy this sensor’s cells are empty, when they are.
inactive: boolTrue when the sensor could not bind at all, so its columns will be unobserved for this whole epoch.
Implementations§
Source§impl SensorReport
impl SensorReport
Sourcepub fn pending(
id: SensorId,
key: impl Into<String>,
perturbation: Perturbation,
) -> SensorReport
pub fn pending( id: SensorId, key: impl Into<String>, perturbation: Perturbation, ) -> SensorReport
A report for a sensor that bound and has not yet run.
A report for a sensor that could not bind, and why.
Trait Implementations§
Source§impl Clone for SensorReport
impl Clone for SensorReport
Source§fn clone(&self) -> SensorReport
fn clone(&self) -> SensorReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more