| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.InfluxDB.Write.UDP
Contents
Synopsis
- 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 () #
writeByteString :: WriteParams -> ByteString -> IO () #
Write a raw ByteString
Writer parameters
data WriteParams #
The full set of parameters for the UDP writer.
Instances
| HasPrecision WriteRequest WriteParams # | 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. |
Defined in Database.InfluxDB.Write.UDP Methods | |
writeParams :: Socket -> SockAddr -> WriteParams #
socket :: Lens' WriteParams Socket #
Open UDP socket
sockAddr :: Lens' WriteParams SockAddr #
UDP endopoint of the database
precision :: HasPrecision ty a => Lens' a (Precision ty) #
Time precision parameter.