| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 1 48 48 48 | import {Tags} from '../../util';
export type Metric = {
name: string;
tags: Tags;
}
export type Value<T> = Metric & {
value: T;
}
export class ReadOnlyValue<T> implements Value<T> {
readonly tags: Tags;
constructor(
readonly name: string,
readonly value: T,
tags: Tags = {}
) {
this.tags = tags;
}
}
|