@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
29 lines (28 loc) • 1.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const BaseAPI_1 = require("../../../common/BaseAPI");
const Mapper_1 = require("../../../common/Mapper");
const AnalyticsAvgConcurrentViewersResponse_1 = require("../../../models/AnalyticsAvgConcurrentViewersResponse");
/**
* AvgConcurrentviewersApi - object-oriented interface
* @export
* @class AvgConcurrentviewersApi
* @extends {BaseAPI}
*/
class AvgConcurrentviewersApi extends BaseAPI_1.BaseAPI {
constructor(configuration) {
super(configuration);
}
/**
* @summary Get metrics data
* @param {AnalyticsMetricsQueryRequest} analyticsMetricsQueryRequest Analytics metrics query object
* @throws {BitmovinError}
* @memberof AvgConcurrentviewersApi
*/
create(analyticsMetricsQueryRequest) {
return this.restClient.post('/analytics/metrics/avg-concurrentviewers', {}, analyticsMetricsQueryRequest).then((response) => {
return (0, Mapper_1.map)(response, AnalyticsAvgConcurrentViewersResponse_1.default);
});
}
}
exports.default = AvgConcurrentviewersApi;