Implement proper storage metrics (P0-009)\n\n- Add dedicated storage_metrics table\n- Create StorageMetricReport models with proper field names\n- Add ReportStorageMetrics to agent client\n- Update storage scanner to use new method\n- Implement server-side handlers and queries\n- Register new routes and update UI\n- Remove legacy Scan() method\n- Follow ETHOS principles: honest naming, clean architecture

This commit is contained in:
Fimeg
2025-12-17 16:38:36 -05:00
parent f7c8d23c5d
commit 0fff047cb5
43 changed files with 3641 additions and 248 deletions

View File

@@ -862,4 +862,18 @@ export const securityApi = {
},
};
// Storage Metrics API
export const storageMetricsApi = {
// Report storage metrics (agent only)
async reportStorageMetrics(agentID: string, data: any): Promise<void> {
await api.post(`/agents/${agentID}/storage-metrics`, data);
},
// Get storage metrics for an agent
async getStorageMetrics(agentID: string): Promise<any> {
const response = await api.get(`/agents/${agentID}/storage-metrics`);
return response.data;
},
};
export default api;