Copyright | (c) Matt Parsons 2017 Taylor Fausak 2016 |
---|---|
License | MIT |
Maintainer | parsonsmatt@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
This is an internal module. Depend upon it at your own risk -- breaking changes in here will not be reflected in the major API version.
Synopsis
- data Metrics = Metrics {}
- metricsCounters :: Lens' Metrics (IORef (HashMap Text Counter))
- metricsGauges :: Lens' Metrics (IORef (HashMap Text Gauge))
- metricsDistributions :: Lens' Metrics (IORef (HashMap Text Distribution))
- metricsLabels :: Lens' Metrics (IORef (HashMap Text Label))
- metricsStore :: Lens' Metrics Store
- data Resolution
- diffTime :: Resolution -> TimeSpec -> TimeSpec -> Double
- convertTimeSpecTo :: Resolution -> TimeSpec -> Double
- nsToUs :: Double -> Double
- nsToMs :: Double -> Double
- nsToS :: Double -> Double
- sToMin :: Double -> Double
- sToHour :: Double -> Double
- sToDay :: Double -> Double
- sToNs :: Double -> Double
- sToUs :: Double -> Double
- sToMs :: Double -> Double
Documentation
A container for metrics used by the MonadMetrics
class.
- Since v0.1.0.0
Instances
Monad m => MonadMetrics (ReaderT Metrics m) Source # | |
Defined in Control.Monad.Metrics |
metricsDistributions :: Lens' Metrics (IORef (HashMap Text Distribution)) Source #
A lens into the Distribution
s provided by the Metrics
.
- Since v0.1.0.0
data Resolution Source #
A type representing the resolution of time to use for the timed
metric.
- Since v0.1.0.0
Instances
convertTimeSpecTo :: Resolution -> TimeSpec -> Double Source #