Safe Haskell | None |
---|---|
Language | Haskell2010 |
- write :: Timestamp time => WriteParams -> Line time -> IO ()
- writeBatch :: (Timestamp time, Traversable f) => WriteParams -> f (Line time) -> IO ()
- writeByteString :: WriteParams -> ByteString -> IO ()
- data WriteParams
- writeParams :: Database -> WriteParams
- server :: HasServer a => Lens' a Server
- database :: HasDatabase a => Lens' a Database
- retentionPolicy :: Lens' WriteParams (Maybe Key)
- precision :: HasPrecision ty a => Lens' a (Precision ty)
- manager :: HasManager a => Lens' a (Either ManagerSettings Manager)
Writers
writeBatch :: (Timestamp time, Traversable 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 HTTP writer.
HasCredentials WriteParams Source # | |
HasManager WriteParams Source # |
|
HasDatabase WriteParams Source # |
|
HasServer WriteParams Source # |
|
HasPrecision WriteRequest WriteParams Source # |
|
writeParams :: Database -> WriteParams Source #
Smart constructor for WriteParams
Default parameters:
retentionPolicy :: Lens' WriteParams (Maybe Key) Source #
Target retention policy for the write.
InfluxDB writes to the default
retention policy if this parameter is set
to Nothing
.
>>>
let p = writeParams "foo"
>>>
let p' = p & retentionPolicy .~ Just "two_hours"
>>>
p' ^. retentionPolicy
Just "two_hours"
manager :: HasManager a => Lens' a (Either ManagerSettings Manager) Source #
HTTP manager settings or a manager itself.
If it's set to ManagerSettings
, the library will create a Manager
from
the settings for you.