An metric for tracking events.
Moduleekg-core-0.1.2.0Haskell2010
System.Metrics.Distribution
This module defines a type for tracking statistics about a series of events. An event could be handling of a request and the value associated with the event -- the value you'd pass to add -- could be the amount of time spent serving that request (e.g. in milliseconds). All operations are thread safe.
- 2 types
- 10 values
- Packageekg-core-0.1.2.0
- Exports12
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceDistribution.hsc
Create a new distribution.
Add a value to the distribution.
Add the same value to the distribution N times. Mean and variance are computed according to http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Online_algorithm
Get the current statistical summary for the event being tracked.
Gathered statistics
7 declarationsDistribution statistics
Sample mean
Biased sample variance
Event count
Sum of values
Min value seen
Max value seen