hriemann-0.3.3.3: A Riemann Client for Haskell

Safe HaskellNone
LanguageHaskell2010

Network.Monitoring.Riemann.TCP

Synopsis

Documentation

sendEvents :: TCPConnection -> Seq Event -> IO () Source #

Send a list of Riemann events

Host and Time will be added if they do not exist on the Event

sendMsg :: TCPConnection -> Msg -> IO (Either Msg Msg) Source #

Attempts to send a message and return the response.

If the connection is down, this function will trigger one reconnection attempt. If that succeeds the message will be sent. If it fails, the message is dropped and will need to be resent by you.

type TCPConnection = TVar ClientInfo Source #

type Port = Int Source #