Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Effect for handling metrics
Synopsis
- data Counter
- data Gauge
- data Histogram
- data HistogramSample = HistogramSample {}
- data MetricEff m a where
- RegisterCounter :: Text -> [(Text, Text)] -> MetricEff m Counter
- RegisterGauge :: Text -> [(Text, Text)] -> MetricEff m Gauge
- RegisterHistogram :: Text -> [(Text, Text)] -> [Double] -> MetricEff m Histogram
- AddCounter :: Int -> Counter -> MetricEff m Int
- ModifyGauge :: (Double -> Double) -> Gauge -> MetricEff m Double
- ObserveHistogram :: Double -> Histogram -> MetricEff m HistogramSample
- registerCounter :: forall r. Member MetricEff r => Text -> [(Text, Text)] -> Sem r Counter
- registerGauge :: forall r. Member MetricEff r => Text -> [(Text, Text)] -> Sem r Gauge
- registerHistogram :: forall r. Member MetricEff r => Text -> [(Text, Text)] -> [Double] -> Sem r Histogram
- addCounter :: forall r. Member MetricEff r => Int -> Counter -> Sem r Int
- modifyGauge :: forall r. Member MetricEff r => (Double -> Double) -> Gauge -> Sem r Double
- observeHistogram :: forall r. Member MetricEff r => Double -> Histogram -> Sem r HistogramSample
Documentation
data HistogramSample Source #
Instances
data MetricEff m a where Source #
RegisterCounter | Register a |
RegisterGauge | Register a |
RegisterHistogram | Register a |
AddCounter :: Int -> Counter -> MetricEff m Int | |
ModifyGauge :: (Double -> Double) -> Gauge -> MetricEff m Double | |
ObserveHistogram :: Double -> Histogram -> MetricEff m HistogramSample |
registerCounter :: forall r. Member MetricEff r => Text -> [(Text, Text)] -> Sem r Counter Source #
Register a Counter
registerGauge :: forall r. Member MetricEff r => Text -> [(Text, Text)] -> Sem r Gauge Source #
Register a Gauge
registerHistogram :: forall r. Member MetricEff r => Text -> [(Text, Text)] -> [Double] -> Sem r Histogram Source #
Register a Histogram
observeHistogram :: forall r. Member MetricEff r => Double -> Histogram -> Sem r HistogramSample Source #