@backtrace/sdk-core
Version:
Backtrace-JavaScript SDK core library
14 lines (13 loc) • 583 B
TypeScript
import { AttributeType } from '../../../model/data/BacktraceData.js';
export declare class MetricsEvent<V extends string | string[] = string | string[]> {
readonly metricGroupName: string;
readonly metricGroupValue: V;
readonly attributes: Record<string, AttributeType>;
readonly id: string;
constructor(metricGroupName: string, metricGroupValue: V, attributes?: Record<string, AttributeType>);
toJSON(): {
[x: string]: number | Record<string, AttributeType> | V;
timestamp: number;
attributes: Record<string, AttributeType>;
};
}