Introduced GPT/AI service, added dashboard widgets, drag and drop, export import.

This commit is contained in:
2025-11-09 23:56:13 +01:00
parent 8e98f5ad7d
commit 7921049f56
36 changed files with 3498 additions and 403 deletions

View File

@@ -59,6 +59,19 @@ export const telemetryApi = {
apiClient.get<PaginatedResponse<Telemetry>>('/telemetry/latest/', { params }),
getMetrics: () => apiClient.get<{ metrics: string[] }>('/telemetry/metrics/'),
analyze: (data: {
device_id: string;
metric?: string;
hours?: number;
limit?: number;
prompt_type?: 'anomaly_detection' | 'trend_summary' | 'custom';
custom_prompt?: string;
}) => apiClient.post<{
analysis: string;
prompt_type: string;
data_points_analyzed: number;
}>('/telemetry/analyze/', data),
};
// Dashboard API