sample
ModuleCanonical samples: immutable, identified observations of one stream, read back with evidence of their completeness (conflicts, gaps, discontinuities, truncation).
Contents
Structs
SampleOne observation of a stream: who measured it (environment, region, project, database, member, generation), its sequence number, the metric, the interval it covers and the value.SampleGapA run of missing sequence numbers, `first..=last`.SampleRangeOne exact range of a stream: the identity fields, a sequence range and the interval it must cover.SampleResultThe samples of a range read under a watermark, with the evidence that decides whether they are complete.SampleWatermarkThe exact membership one snapshot of a range captured: entries `<ingestId>:<id>:<payloadHash>`, and whether more existed.use utopia_usage::Sample;Rust
pub struct SampleOne observation of a stream: who measured it (environment, region, project, database, member, generation), its sequence number, the metric, the interval it covers and the value.
use utopia_usage::SampleGap;Rust
pub struct SampleGapA run of missing sequence numbers, first..=last.
use utopia_usage::SampleRange;Rust
pub struct SampleRangeOne exact range of a stream: the identity fields, a sequence range and the interval it must cover.
use utopia_usage::SampleResult;Rust
pub struct SampleResultThe samples of a range read under a watermark, with the evidence that decides whether they are complete.
use utopia_usage::SampleWatermark;Rust
pub struct SampleWatermarkThe exact membership one snapshot of a range captured: entries
<ingestId>:<id>:<payloadHash>, and whether more existed.