Safe Haskell | None |
---|---|
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. MemberWithError MetricEff r => Text -> [(Text, Text)] -> Sem r Counter
- registerGauge :: forall r. MemberWithError MetricEff r => Text -> [(Text, Text)] -> Sem r Gauge
- registerHistogram :: forall r. MemberWithError MetricEff r => Text -> [(Text, Text)] -> [Double] -> Sem r Histogram
- addCounter :: forall r. MemberWithError MetricEff r => Int -> Counter -> Sem r Int
- modifyGauge :: forall r. MemberWithError MetricEff r => (Double -> Double) -> Gauge -> Sem r Double
- observeHistogram :: forall r. MemberWithError 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. MemberWithError MetricEff r => Text -> [(Text, Text)] -> Sem r Counter Source #
registerGauge :: forall r. MemberWithError MetricEff r => Text -> [(Text, Text)] -> Sem r Gauge Source #
registerHistogram :: forall r. MemberWithError MetricEff r => Text -> [(Text, Text)] -> [Double] -> Sem r Histogram Source #
modifyGauge :: forall r. MemberWithError MetricEff r => (Double -> Double) -> Gauge -> Sem r Double Source #
observeHistogram :: forall r. MemberWithError MetricEff r => Double -> Histogram -> Sem r HistogramSample Source #