Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class (Monad m, MonadIO m) => MonadMetrics m Source #
Instances
MonadMetrics m => MonadMetrics (MaybeT m) Source # | |
Defined in Arbor.Monad.Metric.Type getMetrics :: MaybeT m Metrics Source # | |
MonadMetrics m => MonadMetrics (ResourceT m) Source # | |
Defined in Arbor.Monad.Metric.Type getMetrics :: ResourceT m Metrics Source # | |
MonadMetrics m => MonadMetrics (IdentityT m) Source # | |
Defined in Arbor.Monad.Metric.Type getMetrics :: IdentityT m Metrics Source # | |
MonadMetrics m => MonadMetrics (ExceptT e m) Source # | |
Defined in Arbor.Monad.Metric.Type getMetrics :: ExceptT e m Metrics Source # | |
MonadMetrics m => MonadMetrics (StateT s m) Source # | |
Defined in Arbor.Monad.Metric.Type getMetrics :: StateT s m Metrics Source # | |
MonadMetrics m => MonadMetrics (ReaderT e m) Source # | |
Defined in Arbor.Monad.Metric.Type getMetrics :: ReaderT e m Metrics Source # |
getMetrics :: MonadMetrics m => m Metrics Source #
newMetricsIO :: IO Metrics Source #
extractValues :: forall k. MetricFamily k => Proxy k -> MetricMap k (MetricState k) -> STM ([(k, MetricValue k)], [TVar (MetricState k)]) Source #
metric :: Ord k => Semigroup (MetricState k) => MetricFamily k => MonadMetrics m => k -> MetricValue k -> m () Source #
Instances
Eq Counter Source # | |
Ord Counter Source # | |
Show Counter Source # | |
Generic Counter Source # | |
MetricFamily Counter Source # | |
Defined in Arbor.Monad.Metric.Type type MetricValue Counter :: Type Source # type MetricState Counter :: Type Source # | |
type Rep Counter Source # | |
Defined in Arbor.Monad.Metric.Type type Rep Counter = D1 (MetaData "Counter" "Arbor.Monad.Metric.Type" "arbor-monad-metric-1.1.0-J7GpovoJq64CnFbA56PYkJ" False) (C1 (MetaCons "Counter" PrefixI True) (S1 (MetaSel (Just "name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "tags") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Set Tag)))) | |
type MetricValue Counter Source # | |
Defined in Arbor.Monad.Metric.Type | |
type MetricState Counter Source # | |
Defined in Arbor.Monad.Metric.Type |
Instances
Instances
Generic Metrics Source # | |
type Rep Metrics Source # | |
Defined in Arbor.Monad.Metric.Type type Rep Metrics = D1 (MetaData "Metrics" "Arbor.Monad.Metric.Type" "arbor-monad-metric-1.1.0-J7GpovoJq64CnFbA56PYkJ" 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)))))) |
Instances
Eq Tag Source # | |
Ord Tag Source # | |
Show Tag Source # | |
Generic Tag Source # | |
type Rep Tag Source # | |
Defined in Arbor.Monad.Metric.Type type Rep Tag = D1 (MetaData "Tag" "Arbor.Monad.Metric.Type" "arbor-monad-metric-1.1.0-J7GpovoJq64CnFbA56PYkJ" False) (C1 (MetaCons "Tag" PrefixI True) (S1 (MetaSel (Just "name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "value") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) |