Safe Haskell | None |
---|
- data Series = Series {
- seriesName :: !Text
- seriesData :: !SeriesData
- seriesColumns :: Series -> Vector Column
- seriesPoints :: Series -> [Vector Value]
- data SeriesData = SeriesData {}
- type Column = Text
- data Value
- data Credentials = Credentials {
- credsUser :: !Text
- credsPassword :: !Text
- data Server = Server {
- serverHost :: !Text
- serverPort :: !Int
- serverSsl :: !Bool
- newtype Database = Database {
- databaseName :: Text
- newtype ScheduledDelete = ScheduledDelete {}
- data User = User {
- userName :: Text
- userIsAdmin :: Bool
- newtype Admin = Admin {}
- newtype Ping = Ping {
- pingStatus :: Text
- type Interface = Text
- data ServerPool
- serverRetrySettings :: ServerPool -> RetrySettings
- newServerPool :: Server -> [Server] -> IO (IORef ServerPool)
- newServerPoolWithRetrySettings :: RetrySettings -> Server -> [Server] -> IO (IORef ServerPool)
- activeServer :: IORef ServerPool -> IO Server
- failover :: IORef ServerPool -> IO ()
- data InfluxException
- jsonDecodeError :: String -> IO a
- seriesDecodeError :: String -> IO a
Series, columns and data points
A series consists of name, columns and points. The columns and points are
expressed in a separate type SeriesData
.
Series | |
|
seriesColumns :: Series -> Vector ColumnSource
Convenient accessor for columns.
seriesPoints :: Series -> [Vector Value]Source
Convenient accessor for points.
data SeriesData Source
SeriesData
consists of columns and points.
An InfluxDB value represented as a Haskell value.
Data types for HTTP API
Server location.
Server | |
|
Server pool
data ServerPool Source
Non-empty set of server locations. The active server will always be used until any HTTP communications fail.
newServerPool :: Server -> [Server] -> IO (IORef ServerPool)Source
Create a non-empty server pool. You must specify at least one server location to create a pool.
newServerPoolWithRetrySettings :: RetrySettings -> Server -> [Server] -> IO (IORef ServerPool)Source
activeServer :: IORef ServerPool -> IO ServerSource
Get a server from the pool.
failover :: IORef ServerPool -> IO ()Source
Move the current server to the backup pool and pick one of the backup server as the new active server. Currently the scheduler works in round-robin fashion.
Exceptions
data InfluxException Source
jsonDecodeError :: String -> IO aSource
seriesDecodeError :: String -> IO aSource