1 import { HttpStatusCode, PlaybackMetricCreate } from '@shared/models'
2 import { AbstractCommand, OverrideCommandOptions } from '../shared'
4 export class MetricsCommand extends AbstractCommand {
6 addPlaybackMetric (options: OverrideCommandOptions & { metrics: PlaybackMetricCreate }) {
7 const path = '/api/v1/metrics/playback'
9 return this.postBodyRequest({
13 fields: options.metrics,
15 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204