feat: dashboard
ci-front / build (push) Successful in 2m18s

This commit is contained in:
nikita
2026-04-05 07:17:33 +03:00
parent 337e5891f3
commit 17d4770de6
6 changed files with 529 additions and 1 deletions
@@ -13,6 +13,7 @@ import type {
RegistrationRequest,
DeployAgentsRequest,
DeployResponse,
SystemMetrics,
} from "../types/agent.types";
class AgentApiService {
@@ -162,6 +163,13 @@ class AgentApiService {
);
return response.data;
}
async getSystemMetrics(): Promise<SystemMetrics[]> {
const response = await apiClient.get<SystemMetrics[]>(
`${this.basePath}/system-metrics`,
);
return Array.isArray(response.data) ? response.data : [];
}
}
export const agentApiService = new AgentApiService();