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

Method log_event

chirpstack/src/integration/redis.rs:75–86  ·  view source on GitHub ↗
(
        &self,
        _vars: &HashMap<String, String>,
        pl: &integration::LogEvent,
    )

Source from the content-addressed store, hash-verified

73 }
74
75 async fn log_event(
76 &self,
77 _vars: &HashMap<String, String>,
78 pl: &integration::LogEvent,
79 ) -> Result<()> {
80 let dev_info = pl
81 .device_info
82 .as_ref()
83 .ok_or_else(|| anyhow!("device_info is None"))?;
84 let b = pl.encode_to_vec();
85 stream::event::log_event_for_device("log", &dev_info.dev_eui, &b).await
86 }
87
88 async fn status_event(
89 &self,

Callers 1

test_redisFunction · 0.45

Calls 2

log_event_for_deviceFunction · 0.85
as_refMethod · 0.80

Tested by 1

test_redisFunction · 0.36