Files
AIRegulation-DocAnalysis/frontend/src/api/status.ts
T

16 lines
496 B
TypeScript
Raw Normal View History

import { fetchAPI, type SystemConfig, type SystemStats } from './index';
2026-05-14 15:07:34 +08:00
export async function getSystemStats(): Promise<SystemStats> {
return fetchAPI<SystemStats>('/status/stats');
}
export async function getSystemConfig(): Promise<SystemConfig> {
return fetchAPI<SystemConfig>('/status/config');
}
export async function getMilvusHealth(): Promise<{ connected: boolean; collections: string[] }> {
return fetchAPI('/status/milvus/health');
}
export type { SystemConfig, SystemStats };