blob: d22b4833dbecc5e0451a0231232036c7ef253bcb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { HttpStatusCode, PlaybackMetricCreate } from '@shared/models'
import { AbstractCommand, OverrideCommandOptions } from '../shared'
export class MetricsCommand extends AbstractCommand {
addPlaybackMetric (options: OverrideCommandOptions & { metrics: PlaybackMetricCreate }) {
const path = '/api/v1/metrics/playback'
return this.postBodyRequest({
...options,
path,
fields: options.metrics,
implicitToken: false,
defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
})
}
}
|