Code coverage report for core/src/apm/local/metric.ts

Statements: 100% (4 / 4)      Branches: 0% (0 / 1)      Functions: 100% (1 / 1)      Lines: 100% (4 / 4)      Ignored: none     

All files » core/src/apm/local/ » metric.ts
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;
  }
}