Module

System.Metrics.Meter

Package
purescript-metrics
Repository
abhin4v/purescript-metrics

#Meter Source

data Meter :: Type

A mutable metric which measures the rate at which a set of events occur.

#Summary Source

newtype Summary

Summary of the measurements in the meter. Contains:

  • count: count
  • m1: one minute rate
  • m5: five minute rate
  • m15: fifteen minute rate
  • mean: mean rate

Constructors

Instances

#new Source

new :: forall eff. Eff (ref :: REF | eff) Meter

Create a new meter.

#markN Source

markN :: forall eff. Meter -> Int -> Eff (ref :: REF | eff) Unit

Marks the meter with occurrance of n events.

#mark Source

mark :: forall eff. Meter -> Eff (ref :: REF | eff) Unit

Marks the meter with occurrance of one event.

#fifteenMinuteRate Source

fifteenMinuteRate :: forall eff. Meter -> Eff (ref :: REF | eff) Number

Returns the fifteen minute moving-average rate of the events recorded by the meter.

#fiveMinuteRate Source

fiveMinuteRate :: forall eff. Meter -> Eff (ref :: REF | eff) Number

Returns the five minute moving-average rate of the events recorded by the meter.

#oneMinuteRate Source

oneMinuteRate :: forall eff. Meter -> Eff (ref :: REF | eff) Number

Returns the one minute moving-average rate of the events recorded by the meter.

#meanRate Source

meanRate :: forall eff. Meter -> Eff (ref :: REF | eff) Number

Returns the mean rate of the events recorded by the meter.

#count Source

count :: forall eff. Meter -> Eff (ref :: REF | eff) Int

Returns the count of the events recorded by the meter.

#read Source

read :: forall eff. Meter -> Eff (ref :: REF | eff) Summary

Returns the summary of the measurements in the meter.