cli_v2: implement Get{Node,Cluster}Statistics

This commit is contained in:
Alex Auvolat
2025-02-05 15:06:10 +01:00
parent 9f468b4439
commit 406b6da163
8 changed files with 259 additions and 229 deletions
+23
View File
@@ -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
// **********************************************