node-universe
Version:
基于 Nodejs 环境的一款微服务框架,原理来自于宇宙中的恒星,行星,卫星等系统。
16 lines (15 loc) • 614 B
TypeScript
import { MetricReporterOptions } from '../../../typings/metric';
import MetricRegistry from '../registry';
import BaseReporter from './base';
export default class CSVReporter extends BaseReporter {
lastChanges: Set<any>;
timer: NodeJS.Timer | null;
folder: string;
constructor(options: MetricReporterOptions);
init(registry: MetricRegistry): void;
labelsToStr(labels: object): string;
getFilename(metric: any, item: any): any;
writeRow(filename: string, headers: string[], fields: string[]): void;
flush(): void;
metricChanged(metric: any, value: any, labels: any): void;
}