grafana-cloud-graphite
Version:
NodeJS client for Grafana Cloud Graphite API
14 lines (13 loc) • 458 B
TypeScript
import { MetricSchema, Stats } from "../../types";
export declare class GraphiteStats implements Stats {
readonly name: string;
readonly interval: number;
readonly tags?: Record<string, string> | undefined;
private count;
private values;
constructor(name: string, interval: number, tags?: Record<string, string> | undefined);
get(): MetricSchema[];
clear(): MetricSchema[];
add(value?: number): void;
reset(): void;
}