fix: correct operational statistics and form interactions

This commit is contained in:
hectorzhao
2026-09-09 23:15:42 +08:00
parent 6d63eb5452
commit 5bcdbb2a03
33 changed files with 2920 additions and 829 deletions
@@ -7,6 +7,24 @@ import type {
} from '../types';
export const adminInfrastructureMonitoringApi = {
getInfrastructureAlertHistory: (from?: string, to?: string, page = 1) =>
request<{
items: Array<{
id: string;
name: string;
severity: string;
service: string;
instance: string;
startedAt: string;
firstObservedAt: string;
lastObservedAt: string;
}>;
total: number;
page: number;
pageSize: number;
startDate: string;
endDate: string;
}>(withQuery('/admin/infrastructure-monitoring/alert-history', { from, to, page })),
getInfrastructureMonitoringOverview: (range: InfrastructureMonitoringRange) =>
request<InfrastructureMonitoringOverview>(withQuery('/admin/infrastructure-monitoring/overview', { range })),
getInfrastructureMonitoringNotificationSummary: (signal?: AbortSignal) =>