pub fn usage_report(
snapshot: &Value,
granted: &BTreeSet<String>,
filter: Option<&BTreeSet<String>>,
probes: &BTreeMap<String, ProbeOutcome>,
started: DateTime<Utc>,
now: DateTime<Utc>,
identity: bool,
) -> ValueExpand description
Shape the projected snapshot into the usage result. Pure, for tests.
Every detected connection is listed (narrowed only by filter); only the
granted providers were probed. A connection without a reading is still
listed, with the reason: not granted, or no usage source at all.