1 | /** @module count */
|
2 | import { CounterType } from './CounterType';
|
3 | /**
|
4 | * Data object to store measurement for a performance counter.
|
5 | * This object is used by [[CachedCounters]] to store counters.
|
6 | */
|
7 | export declare class Counter {
|
8 | /** The counter unique name */
|
9 | name: string;
|
10 | /** The counter type that defines measurement algorithm */
|
11 | type: CounterType;
|
12 | /** The last recorded value */
|
13 | last: number;
|
14 | /** The total count */
|
15 | count: number;
|
16 | /** The minimum value */
|
17 | min: number;
|
18 | /** The maximum value */
|
19 | max: number;
|
20 | /** The average value */
|
21 | average: number;
|
22 | /** The recorded timestamp */
|
23 | time: Date;
|
24 | /**
|
25 | * Creates a instance of the data obejct
|
26 | *
|
27 | * @param name a counter name.
|
28 | * @param type a counter type.
|
29 | */
|
30 | constructor(name: string, type: CounterType);
|
31 | }
|