Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data InfluxRqType
- class ToLine a where
- class IsDb a where
- newtype InfluxQuery = InfluxQuery ByteString
- data InfluxDBConfig = InfluxDBConfig {}
- class HasInfluxDBConfig c where
- data InfluxDbError
- class AsInfluxDbError r where
- type CanInflux m e = (AsInfluxDbError e, MonadError e m, MonadIO m)
- basicInfluxOpts :: IsDb a => Options -> InfluxDBConfig -> a -> Options
- rqWinCode :: InfluxRqType -> Int
Documentation
data InfluxRqType Source #
Used to differentiate what action we were trying to perform on the InfluxDB when an error occurred.
Create an input line to be inserted into the InfluxDB. This is super loose right now and provides no protection. If you do not comply with the specifications for the InfluxDB LineProtocol then you're going to get errors. Work in progress to make this a bit nicer and more helpful so the compiler can prevent you from messing it up. :)
toLine :: a -> ByteString Source #
newtype InfluxQuery Source #
data InfluxDBConfig Source #
InfluxDBConfig | |
|
class HasInfluxDBConfig c where Source #
influxDBConfig :: Lens' c InfluxDBConfig Source #
idbHost :: Lens' c ByteString Source #
idbPass :: Lens' c ByteString Source #
idbPort :: Lens' c Int Source #
idbUser :: Lens' c ByteString Source #
data InfluxDbError Source #
class AsInfluxDbError r where Source #
type CanInflux m e = (AsInfluxDbError e, MonadError e m, MonadIO m) Source #
basicInfluxOpts :: IsDb a => Options -> InfluxDBConfig -> a -> Options Source #
rqWinCode :: InfluxRqType -> Int Source #