Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serializer ¶
type Serializer struct { TimestampFormat string `toml:"csv_timestamp_format"` Separator string `toml:"csv_separator"` Header bool `toml:"csv_header"` Prefix bool `toml:"csv_column_prefix"` // contains filtered or unexported fields }
func NewSerializer ¶
func NewSerializer(timestampFormat, separator string, header, prefix bool) (*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)
Click to show internal directories.
Click to hide internal directories.