1 import { ServerStats } from '@shared/models'
2 import { HttpStatusCode } from '../../core-utils/miscs/http-error-codes'
3 import { AbstractCommand, OverrideCommandOptions } from '../shared'
5 export class StatsCommand extends AbstractCommand {
7 get (options: OverrideCommandOptions & {
8 useCache?: boolean // default false
10 const { useCache = false } = options
11 const path = '/api/v1/server/stats'
14 t: useCache ? undefined : new Date().getTime()
17 return this.getRequestBody<ServerStats>({
23 defaultExpectedStatus: HttpStatusCode.OK_200