Safe Haskell | None |
---|---|
Language | Haskell2010 |
- write :: Timestamp time => WriteParams -> Line time -> IO ()
- writeBatch :: (Timestamp time, Foldable f) => WriteParams -> f (Line time) -> IO ()
- writeByteString :: WriteParams -> ByteString -> IO ()
- data WriteParams
- writeParams :: Socket -> SockAddr -> WriteParams
- socket :: Lens' WriteParams Socket
- sockAddr :: Lens' WriteParams SockAddr
- precision :: HasPrecision ty a => Lens' a (Precision ty)
Writers
writeBatch :: (Timestamp time, Foldable f) => WriteParams -> f (Line time) -> IO () Source #
writeByteString :: WriteParams -> ByteString -> IO () Source #
Write a raw ByteString
Writer parameters
data WriteParams Source #
The full set of parameters for the UDP writer.
HasPrecision WriteRequest WriteParams Source # | Timestamp precision. In the UDP API, all timestamps are sent in nanosecond but you can specify lower precision. The writer just rounds timestamps to the specified precision. |
writeParams :: Socket -> SockAddr -> WriteParams Source #