Обновил контракт по получению данных для графика.

This commit is contained in:
Первов Артем
2026-06-22 03:19:56 +03:00
parent fe7d051d4a
commit 6ab9cd1c75
7 changed files with 35 additions and 48 deletions

View File

@@ -1,24 +1,13 @@
export type HistoryPoint = {
t: number;
min: number;
avg: number;
max: number;
count: number;
};
export type HistorySeries = {
edge: string;
tag: string;
points: HistoryPoint[];
time: string;
min_value: number;
avg_value: number;
max_value: number;
point_count: number;
};
export type HistoryResponse = {
edge: string;
tag: string;
granulate: string;
series: HistorySeries[];
from: string;
to: string;
rows: HistoryPoint[];
};
export type HistoryRequest = {