pandora-metrics
Version:
## Overview
29 lines (28 loc) • 840 B
TypeScript
import { Metric, BaseGauge as AbstractGauge } from '../common/index';
import { Proxiable } from './domain';
export declare class Counter implements Metric, Proxiable {
type: string;
proxyMethod: string[];
inc(n: any): void;
dec(n: any): void;
}
export declare abstract class Gauge<T> implements AbstractGauge<T>, Proxiable {
type: string;
proxyMethod: any[];
abstract getValue(): T;
}
export declare class Timer implements Metric, Proxiable {
type: string;
proxyMethod: string[];
update(duration: number, unit: any): void;
}
export declare class Histogram implements Metric, Proxiable {
type: string;
proxyMethod: string[];
update(value: number): void;
}
export declare class Meter implements Metric, Proxiable {
type: string;
proxyMethod: string[];
mark(n?: number): void;
}