UNPKG

pandora-metrics

Version:
58 lines 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("../common/index"); class Counter { constructor() { this.type = index_1.MetricType.COUNTER; this.proxyMethod = ['inc', 'desc']; } inc(n) { } dec(n) { } } exports.Counter = Counter; class Gauge { constructor() { this.type = index_1.MetricType.GAUGE; this.proxyMethod = []; } } exports.Gauge = Gauge; class Timer { constructor() { this.type = index_1.MetricType.TIMER; this.proxyMethod = ['update']; } update(duration, unit) { } } exports.Timer = Timer; class Histogram { constructor() { this.type = index_1.MetricType.HISTOGRAM; this.proxyMethod = ['update']; } update(value) { } } exports.Histogram = Histogram; class Meter { constructor() { this.type = index_1.MetricType.METER; this.proxyMethod = ['mark']; } mark(n) { } } exports.Meter = Meter; class FastCompass { constructor() { this.type = index_1.MetricType.FASTCOMPASS; this.proxyMethod = ['record']; } record(duration, subCategory) { } } exports.FastCompass = FastCompass; //# sourceMappingURL=MetricsProxy.js.map