| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.InfluxDB.Ping
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 #
Send a ping to InfluxDB.
It may throw an InfluxException.
Ping parameters
data PingParams #
The full set of parameters for the ping API
Following lenses are available to access its fields:
Instances
| HasManager PingParams # |
|
Defined in Database.InfluxDB.Ping Methods manager :: Lens' PingParams (Either ManagerSettings Manager) # | |
| HasServer PingParams # |
|
Defined in Database.InfluxDB.Ping Methods server :: Lens' PingParams Server # | |
Smart constructor for PingParams
Default parameters:
manager :: HasManager a => Lens' a (Either ManagerSettings Manager) #
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) #
The number of seconds to wait before returning a response
>>>pingParams ^. timeoutNothing>>>let p = pingParams & timeout ?~ 1
Pong
roundtripTime :: Lens' Pong TimeSpec #
Round-trip time of the ping
influxdbVersion :: Lens' Pong ByteString #
Version string returned by InfluxDB