yandex-cloud-monitoring-metrics
Version:
A library for sending metrics to yandex cloud monitoring
15 lines (14 loc) • 692 B
TypeScript
import { IYandexMetricRequest, IYandexMetricResponse } from './types';
export interface IYandexCloudMonitoringMetricsLogger {
writeMetrics(metrics: IYandexMetricRequest): Promise<IYandexMetricResponse>;
}
export declare class YandexCloudMonitoringMetricsLogger implements IYandexCloudMonitoringMetricsLogger {
private readonly serviceAccountId;
private readonly folderId;
private readonly session;
private iamToken;
constructor(serviceAccountId: string, accessKeyId: string, privateKey: string, folderId: string);
private refreshToken;
private getFailedToRefreshTokenResponse;
writeMetrics(metrics: IYandexMetricRequest): Promise<IYandexMetricResponse>;
}