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 #
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 # | |
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.2-LVYWhR6amAN1tkfM6w5796" 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)))))) |
newMetricsIO :: IO Metrics Source #
extractValues :: forall k. MetricFamily k => Proxy k -> MetricMap k (MetricState k) -> STM ([(k, MetricValue k)], [TVar (MetricState k)]) Source #