decord/source/7553_addToMetricsAggregator.js
2026-08-08 06:10:11 +00:00

42 lines
1.6 KiB
JavaScript

// Module ID: 7553
// Function ID: 7554
// Name: addToMetricsAggregator
// Dependencies: [7550, 7554]
// Module 7553 (addToMetricsAggregator)
const require = arg1;
const dependencyMap = arg6;
arg5.metricsDefault = {
increment(arg0) {
let num = arg1;
if (arg1 === undefined) {
num = 1;
}
const metrics = require(7550) /* addToMetricsAggregator */.metrics;
metrics.increment(require(7554) /* MetricsAggregator */.MetricsAggregator, arg0, num, arg2);
},
distribution(arg0, arg1, arg2) {
const metrics = require(7550) /* addToMetricsAggregator */.metrics;
metrics.distribution(require(7554) /* MetricsAggregator */.MetricsAggregator, arg0, arg1, arg2);
},
set(arg0, arg1, arg2) {
const metrics = require(7550) /* addToMetricsAggregator */.metrics;
const result = metrics.set(require(7554) /* MetricsAggregator */.MetricsAggregator, arg0, arg1, arg2);
},
gauge(arg0, arg1, arg2) {
const metrics = require(7550) /* addToMetricsAggregator */.metrics;
metrics.gauge(require(7554) /* MetricsAggregator */.MetricsAggregator, arg0, arg1, arg2);
},
timing(arg0, arg1) {
let str = arg2;
if (arg2 === undefined) {
str = "second";
}
const metrics = require(7550) /* addToMetricsAggregator */.metrics;
return metrics.timing(require(7554) /* MetricsAggregator */.MetricsAggregator, arg0, arg1, str, arg3);
},
getMetricsAggregatorForClient(arg0) {
const metrics = require(7550) /* addToMetricsAggregator */.metrics;
return metrics.getMetricsAggregatorForClient(arg0, require(7554) /* MetricsAggregator */.MetricsAggregator);
}
};