Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
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))) |
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)))))) |
class (Monad m, MonadIO m) => MonadMetrics m where Source #
getMetrics :: m Metrics 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 # |
class MetricFamily k where Source #
type MetricValue k Source #
type MetricState k Source #
metricMapTVarOf :: Metrics -> TVar (MetricMap k (MetricState k)) Source #
metricValueToState :: Proxy k -> MetricValue k -> MetricState k Source #
metricStateToValue :: Proxy k -> MetricState k -> MetricValue k Source #
Instances
MetricFamily Gauge Source # | |
Defined in Arbor.Monad.Metric.Type type MetricValue Gauge :: Type Source # type MetricState Gauge :: Type Source # metricMapTVarOf :: Metrics -> TVar (MetricMap Gauge (MetricState Gauge)) Source # metricValueToState :: Proxy Gauge -> MetricValue Gauge -> MetricState Gauge Source # metricStateToValue :: Proxy Gauge -> MetricState Gauge -> MetricValue Gauge Source # | |
MetricFamily Counter Source # | |
Defined in Arbor.Monad.Metric.Type type MetricValue Counter :: Type Source # type MetricState Counter :: Type Source # |
getMetricMapTVar :: (MetricFamily k, MonadMetrics m) => m (TVar (MetricMap k (MetricState k))) Source #
getMetricMap :: (MetricFamily k, MonadMetrics m) => m (MetricMap k (MetricState k)) Source #