'use strict' ; import { Config } from '@Base/config' ; import { Stat , updateValueFunction } from '@Monitoring/Stat' ; export class CounterStat extends Stat { constructor ( pName , pCatagory , pUnit , pPullAction ? ) { super ( pName , pCatagory , pUnit , pPullAction ) ; } ; Event ( pCount = 1 ) { this . value += pCount ; this . _histograms . forEach ( ( histo ) => { histo . Event ( pCount ) ; } ) ; } ; async Gather ( ) { await this . DoPullAction ( ) ; return ; } ; Report ( pReturnHistogram = true ) { const report = super . Report ( pReturnHistogram ) ; return report ; } ; }