yandex-cloud-monitoring-metrics
Version:
A library for sending metrics to yandex cloud monitoring
20 lines (19 loc) • 432 B
TypeScript
export declare enum YandexMetricType {
DGAUGE = "DGAUGE",
GAUGE = "GAUGE",
COUNTER = "COUNTER",
RATE = "RATE"
}
export interface IYandexMetric {
name: string;
labels: Record<string, string>;
type: YandexMetricType;
value: number;
}
export interface IYandexMetricRequest {
metrics: IYandexMetric[];
}
export interface IYandexMetricResponse {
writtenMetricsCount: number;
error?: string;
}