@allspark-js/core
Version:
Core library to create js applications.
19 lines (18 loc) • 349 B
TypeScript
type TLabel = {
[labelName: string]: string;
};
export type TRtaIncArgs = {
metric: string;
value?: number;
labels?: TLabel;
};
export type TRtaRecordArgs = {
metric: string;
value: number;
labels?: TLabel;
};
export interface IRta {
inc(args: TRtaIncArgs): void;
record(args: TRtaRecordArgs): void;
}
export {};