Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type HttpMethodLabel = Text
- type HttpStatusCode = Text
- type HttpRequestCounter = Vector (HttpMethodLabel, HttpStatusCode) Counter
- countHttpRequest :: MonadMonitor m => Method -> Status -> HttpRequestCounter -> m ()
- data IcepeakMetrics = IcepeakMetrics {}
- createAndRegisterIcepeakMetrics :: IO IcepeakMetrics
- notifyRequest :: Method -> Status -> IcepeakMetrics -> IO ()
- setDataSize :: (MonadMonitor m, Real a) => a -> IcepeakMetrics -> m ()
- setJournalSize :: (MonadMonitor m, Real a) => a -> IcepeakMetrics -> m ()
- incrementDataWritten :: (MonadMonitor m, Real a) => a -> IcepeakMetrics -> m Bool
- incrementJournalWritten :: (MonadMonitor m, Real a) => a -> IcepeakMetrics -> m Bool
- incrementSubscribers :: MonadMonitor m => IcepeakMetrics -> m ()
- decrementSubscribers :: MonadMonitor m => IcepeakMetrics -> m ()
Documentation
type HttpMethodLabel = Text Source #
type HttpStatusCode = Text Source #
countHttpRequest :: MonadMonitor m => Method -> Status -> HttpRequestCounter -> m () Source #
data IcepeakMetrics Source #
notifyRequest :: Method -> Status -> IcepeakMetrics -> IO () Source #
setDataSize :: (MonadMonitor m, Real a) => a -> IcepeakMetrics -> m () Source #
setJournalSize :: (MonadMonitor m, Real a) => a -> IcepeakMetrics -> m () Source #
incrementDataWritten :: (MonadMonitor m, Real a) => a -> IcepeakMetrics -> m Bool Source #
Increment the total data written to disk by the given number of bytes. Returns True, when it actually increased the counter and otherwise False.
incrementJournalWritten :: (MonadMonitor m, Real a) => a -> IcepeakMetrics -> m Bool Source #
Increment the data written to the journal by the given number of bytes. Returns True, when it actually increased the counter and otherwise False.
incrementSubscribers :: MonadMonitor m => IcepeakMetrics -> m () Source #
decrementSubscribers :: MonadMonitor m => IcepeakMetrics -> m () Source #