pub struct TrailingDemandCount {
pub model: String,
pub window_label: String,
pub service_tier: Option<String>,
pub outcome: String,
pub count: i64,
}Expand description
Outcome of DaemonStorage::archive_batch. Skips are NORMAL sweeper
flow, not errors: candidates are selected outside the move transaction,
so by the time the batch row is locked the world may have moved on (a
retry un-froze it, another sweeper archived it, a partition is missing).
Callers log/alert per variant; only SkippedNoPartition warrants an
alert (partitions-ahead runway failed), the rest are informational.
One cell of demand: requests of one model and service tier counted in
one window for one outcome. Returned by
Storage::get_completed_request_counts_by_model_and_window (trailing
windows, outcomes "completed" / "failed") and
Storage::get_pending_request_counts_by_model_window_and_tier
(deadline windows, outcome "pending").
Fields§
§model: String§window_label: StringThe caller’s window label, echoed back for key matching.
service_tier: Option<String>None is the batch tier (service_tier IS NULL).
outcome: String"pending", "completed", or "failed".
count: i64Trait Implementations§
Source§impl Clone for TrailingDemandCount
impl Clone for TrailingDemandCount
Source§fn clone(&self) -> TrailingDemandCount
fn clone(&self) -> TrailingDemandCount
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more