influxdb-1.2.2.3: Haskell client library for InfluxDB

Safe HaskellNone
LanguageHaskell2010

Database.InfluxDB.Line

Synopsis

Documentation

data Line time Source #

Placeholder for the Line Protocol

See https://docs.influxdata.com/influxdb/v1.2/write_protocols/line_protocol_tutorial/ for the concrete syntax.

Constructors

Line !Key !(Map Key Text) !(Map Key LineField) !(Maybe time) 

measurement :: Lens' (Line time) Key Source #

Name of the measurement that you want to write your data to.

tagSet :: Lens' (Line time) (Map Key Text) Source #

Tag(s) that you want to include with your data point. Tags are optional in the Line Protocol, so you can set it empty.

fieldSet :: Lens' (Line time) (Map Key LineField) Source #

Field(s) for your data point. Every data point requires at least one field in the Line Protocol, so it shouldn't be empty.

timestamp :: Lens' (Line time) (Maybe time) Source #

Timestamp for your data point. You can put whatever type of timestamp that is an instance of the Timestamp class.

buildLine :: (time -> Int64) -> Line time -> Builder Source #

buildLines :: Foldable f => (time -> Int64) -> f (Line time) -> Builder Source #

encodeLine :: (time -> Int64) -> Line time -> ByteString Source #

encodeLines :: Foldable f => (time -> Int64) -> f (Line time) -> ByteString Source #