Safe Haskell | None |
---|---|
Language | Haskell2010 |
- module Network.Monitoring.Riemann.Types
- module Data.Int
- data Client
- makeClient :: Hostname -> Port -> IO Client
- sendEvent :: MonadIO m => Client -> Event -> m ()
- sendEvent' :: Client -> Event -> EitherT IOException IO ()
Documentation
module Data.Int
makeClient :: Hostname -> Port -> IO Client Source
Attempts to bind a UDP client at the passed Hostname
and
Port
. Failures are silently ignored---failure in monitoring
should not cause an application failure...
sendEvent :: MonadIO m => Client -> Event -> m () Source
Attempts to forward an event to a client. Fails silently.
sendEvent' :: Client -> Event -> EitherT IOException IO () Source
Attempts to forward an event to a client. If it fails, it'll
return an IOException
in the Either
.