Telegraf.Metric (Telegraf v0.1.0) View Source

Struct represeting a metric in Telegraf. Checkout the telegraf documentation for more details.

Usage

%Telegraf.Metric{
  name: "weather",
  tag_set: %{location: "us-midwest"},
  field_set: %{temperature: 82},
  timestamp: System.os_time()
}

Link to this section Summary

Link to this section Types

Specs

t() :: %Telegraf.Metric{
  field_set: map(),
  name: String.t(),
  tag_set: map(),
  timestamp: integer() | nil
}