feat: add sessions stats endpoint

This commit is contained in:
Carlos Valente
2024-10-20 22:19:33 +02:00
committed by Carlos Valente
parent 71c468d069
commit 82810f1cb1
8 changed files with 71 additions and 3 deletions
@@ -1,11 +1,23 @@
import type { OSCSettings } from '../../definitions/core/OscSettings.type.js';
import type { OntimeRundown } from '../../definitions/core/Rundown.type.js';
import type { Playback } from '../../definitions/runtime/Playback.type.js';
import type { MaybeString } from '../../utils/utils.type.js';
export type NetworkInterface = {
name: string;
address: string;
};
export interface SessionStats {
startedAt: string;
connectedClients: number;
lastConnection: MaybeString;
lastRequest: MaybeString;
projectName: string;
playback: Playback;
timezone: number;
}
export interface GetInfo {
networkInterfaces: NetworkInterface[];
version: string;
+1
View File
@@ -51,6 +51,7 @@ export type {
ProjectFileListResponse,
MessageResponse,
RundownPaginated,
SessionStats,
} from './api/ontime-controller/BackendResponse.type.js';
export type { RundownCached, NormalisedRundown } from './api/rundown-controller/BackendResponse.type.js';