node-universe
Version:
基于 Nodejs 环境的一款微服务框架,原理来自于宇宙中的恒星,行星,卫星等系统。
16 lines (15 loc) • 609 B
TypeScript
import { MetricsReporterOptions } from '../../../typings/metric';
import BaseReporter from './base';
import MetricRegistry from '../registry';
import { GenericObject } from '../../../typings';
import BaseMetric from '../type/base';
export default class ConsoleReporter extends BaseReporter {
lastChanges: Set<string>;
timer: NodeJS.Timer | null;
constructor(options: MetricsReporterOptions);
init(registry: MetricRegistry): void;
private labelToStr;
print(): void;
private log;
metricChanged(metric: BaseMetric, value: any, labels?: GenericObject, timestamp?: number): void;
}