View Source Zexbox.Metrics.Series (Zexbox v0.4.0)
This module defines a simple struct to write metrics to InfluxDB. the attributes are:
- measurement - The name of the measurement
- fields - The fields of the measurement, these are the values you want to aggregate on
- tags - The tags of the measurement, these are usually identifiers for the values but you can't aggregate on them
- timestamp - The timestamp of the measurement, it is optional, if it's missing in the struct, InfluxDB will use the current time
Summary
Types
@type t() :: %Zexbox.Metrics.Series{ fields: map(), measurement: String.t(), tags: map(), timestamp: DateTime.t() | nil }