UNPKG

@mts-pjsc/bretrics

Version:
18 lines (17 loc) 772 B
import { Metric } from "web-vitals"; import type { IMetric } from "./interfaces/IMetric"; export declare class Bretrics { apiPath: string; labels: Record<string, number | string>; sendWebVitalsMetrics(): this; setup(config: Partial<this>): this; sendMetrics(metric: Record<string, number>): this; useDefaultMonitoring(): this; useDefaultLabels(): this; setLabels(labels: Record<string, number | string>): this; protected sendWebVitals(webVitalsMetric: Metric): void; protected sendToMicroservice(metrics: Record<string, IMetric | number>): void; protected prepareData(metrics: Record<string, IMetric | number>): Record<string, IMetric | number>; protected getDeviceType(): string; } export declare const bretrics: Bretrics;