export interface Metric { type : string ; } export interface WeightSample { weight : number ; value : number ; } export interface Counting { return getCount ( ) : number | string ; } /**
 * An object which maintains mean and exponentially-weighted rate.
 */ export interface Metered extends Metric , Counting { return getCount ( ) : number ; return getInstantCount ( ) : Map < number , number > ; param startTime return getInstantCount ( startTime ) : Map < number , number > ; return getInstantCountInterval ( ) : number ; return getFifteenMinuteRate ( ) : number ; return getFiveMinuteRate ( ) : number ; return getMeanRate ( ) : number ; return getOneMinuteRate ( ) : number ; } /**
 * An object which samples values.
 */ export interface Sampling { return getSnapshot ( ) : Snapshot ; } export interface Snapshot { param quantile return getValue ( quantile ) ; return getValues ( ) : number [ ] ; return size ( ) : number ; return getMedian ( ) : number ; return get75thPercentile ( ) : number ; return get95thPercentile ( ) : number ; return get98thPercentile ( ) : number ; return get99thPercentile ( ) : number ; return get999thPercentile ( ) : number ; return getMax ( ) : number ; return getMean ( ) : number ; return getMin ( ) : number ; return getStdDev ( ) : number ; }