UNPKG

pandora-metrics

Version:
53 lines 1.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Constants_1 = require("../Constants"); class BucketSnapshot { constructor(count = 0, value = 0) { this.count = count; this.value = value; } getValue(quantile) { return Constants_1.Constants.NOT_AVAILABLE; } getValues() { return []; } size() { return this.count; } getMedian() { return Constants_1.Constants.NOT_AVAILABLE; } get75thPercentile() { return Constants_1.Constants.NOT_AVAILABLE; } get95thPercentile() { return Constants_1.Constants.NOT_AVAILABLE; } get98thPercentile() { return Constants_1.Constants.NOT_AVAILABLE; } get99thPercentile() { return Constants_1.Constants.NOT_AVAILABLE; } get999thPercentile() { return Constants_1.Constants.NOT_AVAILABLE; } getMax() { return Constants_1.Constants.NOT_AVAILABLE; } getMean() { if (this.count === 0) { return 0; } return this.value / this.count; } getMin() { return Constants_1.Constants.NOT_AVAILABLE; } getStdDev() { return Constants_1.Constants.NOT_AVAILABLE; } } exports.BucketSnapshot = BucketSnapshot; //# sourceMappingURL=BucketSnapshot.js.map