Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
Eq Counter Source # | |
Ord Counter Source # | |
Show Counter Source # | |
MetricFamily Counter Source # | |
Defined in Arbor.Monad.Metric.Type type MetricValue Counter :: Type Source # type MetricState Counter :: Type Source # | |
type MetricValue Counter Source # | |
Defined in Arbor.Monad.Metric.Type | |
type MetricState Counter Source # | |
Defined in Arbor.Monad.Metric.Type |
Instances
Eq Gauge Source # | |
Ord Gauge Source # | |
Show Gauge Source # | |
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 # | |
type MetricValue Gauge Source # | |
Defined in Arbor.Monad.Metric.Type | |
type MetricState Gauge Source # | |
Defined in Arbor.Monad.Metric.Type |
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-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)))))) |
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 #