nestjs-hot-shots
Version:
Hot-shots Module for Nest.js Framework
16 lines (15 loc) • 785 B
TypeScript
import { StatsD } from 'hot-shots';
import { CounterCollector, GaugeCollector, HistogramCollector, TimingCollector, UpDownCounterCollector } from './collectors';
import { CollectorOptions } from './interfaces';
export declare class MetricsService {
private readonly statsd;
private readonly logger;
private readonly cache;
constructor(statsd: StatsD);
getCounter(name: string, options?: CollectorOptions): CounterCollector;
getGauge(name: string, options?: CollectorOptions): GaugeCollector;
getHistogram(name: string, options?: CollectorOptions): HistogramCollector;
getTiming(name: string, options?: CollectorOptions): TimingCollector;
getUpDownCounter(name: string, options?: CollectorOptions): UpDownCounterCollector;
private getOrCreate;
}