`GET /api/plugins/hermes-lcm/timeline`
(
State(state): State<DashboardState>,
JsonQuery(params): JsonQuery<TimelineParams>,
)
| 204 | |
| 205 | /// `GET /api/plugins/hermes-lcm/timeline` |
| 206 | pub(crate) async fn timeline( |
| 207 | State(state): State<DashboardState>, |
| 208 | JsonQuery(params): JsonQuery<TimelineParams>, |
| 209 | ) -> LcmResult { |
| 210 | let limit = coerce_limit(params.limit, 400, 2000); |
| 211 | let by_hour = params.bucket.eq_ignore_ascii_case("hour"); |
| 212 | let payload = lcm_service::timeline_payload(&state, by_hour, ¶ms.session_id, limit).await?; |
| 213 | Ok(ok(payload)) |
| 214 | } |
| 215 | |
| 216 | #[derive(Deserialize)] |
| 217 | pub(crate) struct CompressionParams { |
nothing calls this directly
no test coverage detected