atomr-dashboard 0.3.1

Live web UI over a running atomr system — REST + WebSocket + embedded React SPA, Prometheus / OTLP exporters.
1
2
3
4
5
6
7
8
9
10
11
12
//! Streams snapshot.

use axum::extract::State;
use axum::Json;

use atomr_telemetry::dto::StreamsSnapshot;

use crate::AppState;

pub async fn get_streams(State(state): State<AppState>) -> Json<StreamsSnapshot> {
    Json(state.telemetry.streams.snapshot())
}