Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.InfluxDB.Simple.Classy.Types
- 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 -> Precision -> Options
- rqWinCode :: InfluxRqType -> Int
- module Database.InfluxDB.Simple.Classy.Types.Precision
- module Database.InfluxDB.Simple.Classy.Types.InfluxTimeStamp
Documentation
data InfluxRqType Source #
Used to differentiate what action we were trying to perform on the InfluxDB when an error occurred.
Instances
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. :)
Minimal complete definition
Methods
toLine :: a -> ByteString Source #
data InfluxDBConfig Source #
Constructors
InfluxDBConfig | |
Fields
|
Instances
class HasInfluxDBConfig c where Source #
Minimal complete definition
Methods
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 #
Instances
data InfluxDbError Source #
Constructors
CommsOrInfluxError ByteString | |
ParseError ByteString | |
UnknownError InfluxRqType SomeException |
Instances
class AsInfluxDbError r where Source #
Methods
_InfluxDbError :: Prism' r InfluxDbError Source #
_CommsOrInfluxError :: Prism' r ByteString Source #
_ParseError :: Prism' r ByteString Source #
_UnknownError :: Prism' r (InfluxRqType, SomeException) Source #
Instances
type CanInflux m e = (AsInfluxDbError e, MonadError e m, MonadIO m) Source #
basicInfluxOpts :: IsDb a => Options -> InfluxDBConfig -> a -> Precision -> Options Source #
rqWinCode :: InfluxRqType -> Int Source #