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

Safe HaskellNone
LanguageHaskell2010

Arbor.Monad.Metric.Type

Documentation

data Tag Source #

Constructors

Tag 

Fields

Instances
Eq Tag Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Methods

(==) :: Tag -> Tag -> Bool #

(/=) :: Tag -> Tag -> Bool #

Ord Tag Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Methods

compare :: Tag -> Tag -> Ordering #

(<) :: Tag -> Tag -> Bool #

(<=) :: Tag -> Tag -> Bool #

(>) :: Tag -> Tag -> Bool #

(>=) :: Tag -> Tag -> Bool #

max :: Tag -> Tag -> Tag #

min :: Tag -> Tag -> Tag #

Show Tag Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Methods

showsPrec :: Int -> Tag -> ShowS #

show :: Tag -> String #

showList :: [Tag] -> ShowS #

Generic Tag Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Associated Types

type Rep Tag :: Type -> Type #

Methods

from :: Tag -> Rep Tag x #

to :: Rep Tag x -> Tag #

type Rep Tag Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

type Rep Tag = D1 (MetaData "Tag" "Arbor.Monad.Metric.Type" "arbor-monad-metric-1.2.0-gMD8Th2AjwBF06NKNlMiO" False) (C1 (MetaCons "Tag" PrefixI True) (S1 (MetaSel (Just "name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "value") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data Counter Source #

Constructors

Counter 

Fields

Instances
Eq Counter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Methods

(==) :: Counter -> Counter -> Bool #

(/=) :: Counter -> Counter -> Bool #

Ord Counter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Show Counter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Generic Counter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Associated Types

type Rep Counter :: Type -> Type #

Methods

from :: Counter -> Rep Counter x #

to :: Rep Counter x -> Counter #

MetricFamily Counter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Associated Types

type MetricValue Counter :: Type Source #

type MetricState Counter :: Type Source #

type Rep Counter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

type Rep Counter = D1 (MetaData "Counter" "Arbor.Monad.Metric.Type" "arbor-monad-metric-1.2.0-gMD8Th2AjwBF06NKNlMiO" 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 # 
Instance details

Defined in Arbor.Monad.Metric.Type

type MetricState Counter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

data Gauge Source #

Constructors

Gauge 

Fields

Instances
Eq Gauge Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Methods

(==) :: Gauge -> Gauge -> Bool #

(/=) :: Gauge -> Gauge -> Bool #

Ord Gauge Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Methods

compare :: Gauge -> Gauge -> Ordering #

(<) :: Gauge -> Gauge -> Bool #

(<=) :: Gauge -> Gauge -> Bool #

(>) :: Gauge -> Gauge -> Bool #

(>=) :: Gauge -> Gauge -> Bool #

max :: Gauge -> Gauge -> Gauge #

min :: Gauge -> Gauge -> Gauge #

Show Gauge Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Methods

showsPrec :: Int -> Gauge -> ShowS #

show :: Gauge -> String #

showList :: [Gauge] -> ShowS #

Generic Gauge Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Associated Types

type Rep Gauge :: Type -> Type #

Methods

from :: Gauge -> Rep Gauge x #

to :: Rep Gauge x -> Gauge #

MetricFamily Gauge Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Associated Types

type MetricValue Gauge :: Type Source #

type MetricState Gauge :: Type Source #

type Rep Gauge Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

type Rep Gauge = D1 (MetaData "Gauge" "Arbor.Monad.Metric.Type" "arbor-monad-metric-1.2.0-gMD8Th2AjwBF06NKNlMiO" False) (C1 (MetaCons "Gauge" PrefixI True) (S1 (MetaSel (Just "name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "tags") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Set Tag))))
type MetricValue Gauge Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

type MetricState Gauge Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

data GaugeCounter Source #

Constructors

GaugeCounter 

Fields

Instances
Eq GaugeCounter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Ord GaugeCounter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Show GaugeCounter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Generic GaugeCounter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

Associated Types

type Rep GaugeCounter :: Type -> Type #

MetricFamily GaugeCounter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

type Rep GaugeCounter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

type Rep GaugeCounter = D1 (MetaData "GaugeCounter" "Arbor.Monad.Metric.Type" "arbor-monad-metric-1.2.0-gMD8Th2AjwBF06NKNlMiO" False) (C1 (MetaCons "GaugeCounter" PrefixI True) (S1 (MetaSel (Just "name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "tags") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Set Tag))))
type MetricValue GaugeCounter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

type MetricState GaugeCounter Source # 
Instance details

Defined in Arbor.Monad.Metric.Type

type MetricMap k v = Map k (TVar v) Source #

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

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

class MetricFamily k where Source #

Associated Types

type MetricValue k Source #

type MetricState k Source #