diff options
Diffstat (limited to 'src/api/stats.rs')
| -rw-r--r-- | src/api/stats.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api/stats.rs b/src/api/stats.rs index b39e054..bc925ff 100644 --- a/src/api/stats.rs +++ b/src/api/stats.rs @@ -19,6 +19,8 @@ use crate::transport::traffic::PeerTraffic; #[derive(Debug, Serialize)] #[serde(rename_all = "camelCase")] pub(crate) struct StatsResponse { + public_key: String, + alias: Option<String>, uptime_secs: u64, ready: bool, epoch: EpochInfo, @@ -147,6 +149,8 @@ async fn collect(state: &AppState) -> StatsResponse { } StatsResponse { + public_key: state.local_id().to_owned(), + alias: state.alias.clone(), uptime_secs: node.uptime.as_secs(), ready: state.is_ready().await, epoch: state.local_epoch().into(), |
