pandora-metrics
Version:
## Overview
28 lines • 888 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const MetricType_1 = require("../MetricType");
/**
* <pre>
* A gauge metric is an instantaneous reading of a particular value. To instrument a queue's depth,
* for example:
*
* final Queue<String> queue = new ConcurrentLinkedQueue<String>();
* final BaseGauge<Integer> queueDepth = new BaseGauge<Integer>() {
* public Integer getValue() {
* return queue.size();
* }
* };
*
* 一种实时数据的度量,反映的是瞬态的数据,不具有累加性。
* 具体的实现由具体定义,例如,获取当前jvm的活跃线程数
* </pre>
*
* @param <T> the type of the metric's value
*/
class BaseGauge {
constructor() {
this.type = MetricType_1.MetricType.GAUGE;
}
}
exports.BaseGauge = BaseGauge;
//# sourceMappingURL=Gauge.js.map
;