struct Flux::Point
- Flux::Point
- Struct
- Value
- Object
Overview
Model for InfluxDB data points.
TODO make this generic over a NamedTuple of the associated fields. Currently
this causes issues elsewhere as you can not have an Array
, Channel
etc of
a generic type.
Defined in:
flux/point.crConstructors
-
.new(measurement, timestamp = nil, tags = nil, **fields : **T) forall T
Creates a new data point that can be serialized for entry to InfluxDB.
Class Method Summary
-
.new!(measurement, timestamp = nil, tags = nil, **fields : **T) forall T
Creates a point from a set of nilable fields, discarding any that are nil.
Instance Method Summary
- #fields : FieldSet
- #measurement : String
-
#tag(**tags : **T) forall T
Append or change tags associated with the point.
-
#tagged?
Checks if any tags are defined for the point.
- #tags
- #timestamp : Time | Nil
- #to_s(io)
Constructor Detail
Creates a new data point that can be serialized for entry to InfluxDB.
Class Method Detail
Creates a point from a set of nilable fields, discarding any that are nil.