Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormatConfig ¶
type FormatConfig struct { MetricSortOrder MetricSortOrder StringHandling StringHandling }
type MetricSortOrder ¶
type MetricSortOrder int
MetricSortOrder controls if the output is sorted.
const ( NoSortMetrics MetricSortOrder = iota SortMetrics )
type Serializer ¶
type Serializer struct {
// contains filtered or unexported fields
}
func NewSerializer ¶
func NewSerializer(config FormatConfig) (*Serializer, error)
func (*Serializer) Serialize ¶
func (s *Serializer) Serialize(metric telegraf.Metric) ([]byte, error)
func (*Serializer) SerializeBatch ¶
func (s *Serializer) SerializeBatch(metrics []telegraf.Metric) ([]byte, error)
type StringHandling ¶
type StringHandling int
StringHandling defines how to process string fields.
const ( DiscardStrings StringHandling = iota StringAsLabel )
Click to show internal directories.
Click to hide internal directories.