Files
TeleWave/frontend/src/features/admin/diagnostics/api.ts
T
Leonid Pershin bed6d4fcfc
ci / build-backend (push) Successful in 1m18s
ci / build-frontend (push) Successful in 38s
ci / tests (push) Successful in 1m21s
ci / sonar (push) Successful in 3m46s
Add diagnostics endpoints and types for improved system monitoring
Implemented new diagnostics endpoints in the API and added corresponding route configurations in the frontend. Introduced types for diagnostics data, including host, forwarding, and system diagnostics, to enhance monitoring capabilities. Updated localization files to support diagnostics UI elements in both English and Russian, ensuring a comprehensive user experience.
2026-08-02 13:49:48 +03:00

8 lines
365 B
TypeScript

import { apiRequest } from '@/shared/api/client'
import type { DiagnosticsDto } from '@/shared/api/types'
/** Снимок диагностики: форвардинг, БД, хранилище, ffmpeg. Пересчитывается на каждый запрос. */
export function getDiagnostics() {
return apiRequest<DiagnosticsDto>('/admin/diagnostics')
}