MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / get_key

Function get_key

chirpstack/src/storage/metrics.rs:68–75  ·  view source on GitHub ↗
(name: &str, a: Aggregation, dt: NaiveDateTime)

Source from the content-addressed store, hash-verified

66}
67
68fn get_key(name: &str, a: Aggregation, dt: NaiveDateTime) -> String {
69 redis_key(format!(
70 "metrics:{{{}}}:{}:{}",
71 name,
72 a,
73 dt.format("%Y%m%d%H%M")
74 ))
75}
76
77pub async fn save_state(name: &str, state: &str) -> Result<()> {
78 let key = redis_key(format!("metrics:{{{}}}", name));

Callers 2

saveFunction · 0.70
getFunction · 0.70

Calls 1

redis_keyFunction · 0.85

Tested by

no test coverage detected