arbor-monad-metric-0.0.4: Core metric library for publishing metrics.

Safe HaskellNone
LanguageHaskell2010

Arbor.Monad.Metric

Documentation

class (Monad m, MonadIO m) => MonadMetrics m Source #

Minimal complete definition

getMetrics

Instances
MonadMetrics m => MonadMetrics (MaybeT m) Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

MonadMetrics m => MonadMetrics (ResourceT m) Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

MonadMetrics m => MonadMetrics (IdentityT m) Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

MonadMetrics m => MonadMetrics (ExceptT e m) Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

MonadMetrics m => MonadMetrics (StateT s m) Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

MonadMetrics m => MonadMetrics (ReaderT e m) Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

metric :: Ord k => Semigroup (MetricState k) => MetricFamily k => MonadMetrics m => k -> MetricValue k -> m () Source #

newtype Gauge Source #

Constructors

Gauge 

Fields

data Metrics Source #

Instances
Generic Metrics Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Associated Types

type Rep Metrics :: Type -> Type #

Methods

from :: Metrics -> Rep Metrics x #

to :: Rep Metrics x -> Metrics #

type Rep Metrics Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

type Rep Metrics = D1 (MetaData "Metrics" "Arbor.Monad.Metric.Type" "arbor-monad-metric-0.0.4-FAiY1pVIsRKKLfnTjpzq4P" False) (C1 (MetaCons "Metrics" PrefixI True) (S1 (MetaSel (Just "counters") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (TVar (MetricMap Counter (MetricState Counter)))) :*: S1 (MetaSel (Just "gauges") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (TVar (MetricMap Gauge (MetricState Gauge))))))

extractValues :: forall k. MetricFamily k => Proxy k -> MetricMap k (MetricState k) -> STM ([(k, MetricValue k)], [TVar (MetricState k)]) Source #