pub struct Bucket {Show 13 fields
pub id: String,
pub version: u64,
pub day: String,
pub node: String,
pub engineer: String,
pub counts: BTreeMap<String, u64>,
pub usd: f64,
pub usd_by: BTreeMap<String, f64>,
pub dur_ms: u64,
pub lessons: BTreeMap<String, BTreeMap<String, u64>>,
pub usd_mode: BTreeMap<String, f64>,
pub channels: BTreeMap<String, u64>,
pub why: BTreeMap<String, u64>,
}Expand description
One node’s counts for one engineer on one UTC day: a line of stats.jsonl.
Fields§
§id: String§version: u64§day: String§node: String§engineer: String§counts: BTreeMap<String, u64>Events per kind; <kind>_n sums their n (questions asked, lessons shown).
usd: f64§usd_by: BTreeMap<String, f64>Cost per kind (turn-end checks, other model calls, imports).
dur_ms: u64§lessons: BTreeMap<String, BTreeMap<String, u64>>Events per kind for each lesson they named.
usd_mode: BTreeMap<String, f64>The conscience’s model cost (check and live_check) per mode: async for detached checks
(0.7.7 on), live for live mode’s events before 0.7.6, hook for every other (an event without a
mode: a stop’s own check). A split of part of usd, so never stacked with usd_by.
channels: BTreeMap<String, u64>Events per <kind>@<channel> for events that name a channel (block@stop, changed@live).
why: BTreeMap<String, u64>Events per <kind>:<why> (why a turn end passed free, why a check was dropped, failed checks,
a detached check’s asks) and the turn-end checks’ time (check_ms, check_timed), from 0.7.9.
Apart from counts, so a bucket an older borg published compares equal on its side (its same
ignores this field) and two versions on one store do not republish every day by turns.