Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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
- data User = User {
- userName :: Text
- userIsAdmin :: Bool
- newtype Admin = Admin {}
- newtype Ping = Ping {
- pingStatus :: Text
- type Interface = Text
- data ShardSpace = ShardSpace {}
- data ServerPool
- serverRetryPolicy :: ServerPool -> RetryPolicy
- serverRetrySettings :: ServerPool -> RetryPolicy
- newServerPool :: Server -> [Server] -> IO (IORef ServerPool)
- newServerPoolWithRetryPolicy :: RetryPolicy -> Server -> [Server] -> IO (IORef ServerPool)
- newServerPoolWithRetrySettings :: RetryPolicy -> 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 Column Source
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 | |
|
User
User | |
|
Administrator
Ping | |
|
Server pool
data ServerPool Source
Non-empty set of server locations. The active server will always be used until any HTTP communications fail.
Generic ServerPool | |
Typeable * ServerPool | |
type Rep ServerPool |
serverRetrySettings :: ServerPool -> RetryPolicy Source
Deprecated: Use serverRetryPolicy instead
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.
newServerPoolWithRetryPolicy :: RetryPolicy -> Server -> [Server] -> IO (IORef ServerPool) Source
newServerPoolWithRetrySettings :: RetryPolicy -> Server -> [Server] -> IO (IORef ServerPool) Source
Deprecated: Use newServerPoolWithRetryPolicy instead
activeServer :: IORef ServerPool -> IO Server Source
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 a Source
seriesDecodeError :: String -> IO a Source