Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Line time = Line !Key !(Map Key Text) !(Map Key LineField) !(Maybe time)
- measurement :: Lens' (Line time) Key
- tagSet :: Lens' (Line time) (Map Key Text)
- fieldSet :: Lens' (Line time) (Map Key LineField)
- timestamp :: Lens' (Line time) (Maybe time)
- buildLine :: (time -> Int64) -> Line time -> Builder
- buildLines :: Foldable f => (time -> Int64) -> f (Line time) -> Builder
- encodeLine :: (time -> Int64) -> Line time -> ByteString
- encodeLines :: Foldable f => (time -> Int64) -> f (Line time) -> ByteString
Documentation
Placeholder for the Line Protocol
See https://docs.influxdata.com/influxdb/v1.2/write_protocols/line_protocol_tutorial/ for the concrete syntax.
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.
encodeLine :: (time -> Int64) -> Line time -> ByteString Source #
encodeLines :: Foldable f => (time -> Int64) -> f (Line time) -> ByteString Source #