1 import { HttpStatusCode, ServerStats } from '@shared/models'
2 import { AbstractCommand, OverrideCommandOptions } from '../shared'
4 export class StatsCommand extends AbstractCommand {
6 get (options: OverrideCommandOptions & {
7 useCache?: boolean // default false
9 const { useCache = false } = options
10 const path = '/api/v1/server/stats'
13 t: useCache ? undefined : new Date().getTime()
16 return this.getRequestBody<ServerStats>({
22 defaultExpectedStatus: HttpStatusCode.OK_200