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