diff options
Diffstat (limited to 'src/api/admin/api.rs')
-rw-r--r-- | src/api/admin/api.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/api/admin/api.rs b/src/api/admin/api.rs index 3f041208..4caae02c 100644 --- a/src/api/admin/api.rs +++ b/src/api/admin/api.rs @@ -79,6 +79,8 @@ admin_endpoints![ // Node operations CreateMetadataSnapshot, + GetNodeStatistics, + GetClusterStatistics, // Worker operations ListWorkers, @@ -96,6 +98,7 @@ admin_endpoints![ local_admin_endpoints![ // Node operations CreateMetadataSnapshot, + GetNodeStatistics, // Background workers ListWorkers, GetWorkerInfo, @@ -640,6 +643,26 @@ pub struct LocalCreateMetadataSnapshotRequest; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct LocalCreateMetadataSnapshotResponse; +// ---- GetNodeStatistics ---- + +#[derive(Debug, Clone, Serialize, Deserialize, Default)] +pub struct LocalGetNodeStatisticsRequest; + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct LocalGetNodeStatisticsResponse { + pub freeform: String, +} + +// ---- GetClusterStatistics ---- + +#[derive(Debug, Clone, Serialize, Deserialize, Default)] +pub struct GetClusterStatisticsRequest; + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct GetClusterStatisticsResponse { + pub freeform: String, +} + // ********************************************** // Worker operations // ********************************************** |