19 lines
592 B
TypeScript
19 lines
592 B
TypeScript
|
|
import { fetchAPI, type SystemStats, type SystemConfig } from './index';
|
||
|
|
|
||
|
|
// Get system statistics
|
||
|
|
export async function getSystemStats(): Promise<SystemStats> {
|
||
|
|
return fetchAPI<SystemStats>('/status/stats');
|
||
|
|
}
|
||
|
|
|
||
|
|
// Get system configuration
|
||
|
|
export async function getSystemConfig(): Promise<SystemConfig> {
|
||
|
|
return fetchAPI<SystemConfig>('/status/config');
|
||
|
|
}
|
||
|
|
|
||
|
|
// Get Milvus health status
|
||
|
|
export async function getMilvusHealth(): Promise<{ connected: boolean; collections: string[] }> {
|
||
|
|
return fetchAPI('/status/milvus/health');
|
||
|
|
}
|
||
|
|
|
||
|
|
// Export types
|
||
|
|
export type { SystemStats, SystemConfig };
|