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:
@@ -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;
|
||||
Reference in New Issue
Block a user