mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 21:03:29 +00:00
feat: add sessions stats endpoint
This commit is contained in:
committed by
Carlos Valente
parent
71c468d069
commit
82810f1cb1
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user