17 lines
320 B
TypeScript
17 lines
320 B
TypeScript
|
import IMetric from "../interfaces/IMetric";
|
||
|
|
||
|
export default class Gauge implements IMetric {
|
||
|
private name:string;
|
||
|
private value:number;
|
||
|
public readonly helpText:string;
|
||
|
|
||
|
public constructor(name:string) {
|
||
|
this.name = name;
|
||
|
this.value = 0;
|
||
|
this.helpText = "";
|
||
|
}
|
||
|
|
||
|
public get Value() {
|
||
|
return this.value;
|
||
|
}
|
||
|
}
|