Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- ping :: PingParams -> IO Pong
- data PingParams
- pingParams :: PingParams
- server :: HasServer a => Lens' a Server
- manager :: HasManager a => Lens' a (Either ManagerSettings Manager)
- timeout :: Lens' PingParams (Maybe NominalDiffTime)
- data Pong
- roundtripTime :: Lens' Pong TimeSpec
- influxdbVersion :: Lens' Pong ByteString
Ping interface
ping :: PingParams -> IO Pong Source #
Send a ping to InfluxDB.
It may throw an InfluxException
.
Ping parameters
data PingParams Source #
The full set of parameters for the ping API
Instances
HasManager PingParams Source # |
|
Defined in Database.InfluxDB.Ping | |
HasServer PingParams Source # |
|
Defined in Database.InfluxDB.Ping |
pingParams :: PingParams Source #
Smart constructor for PingParams
Default parameters:
server :: HasServer a => Lens' a Server Source #
InfluxDB server address and port that to interact with.
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.
timeout :: Lens' PingParams (Maybe NominalDiffTime) Source #
The number of seconds to wait before returning a response
>>>
pingParams ^. timeout
Nothing>>>
let p = pingParams & timeout ?~ 1
Pong
influxdbVersion :: Lens' Pong ByteString Source #
Version string returned by InfluxDB