Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serializer ¶
type Serializer struct {
Template string `toml:"template"`
BatchTemplate string `toml:"batch_template"`
Log telegraf.Logger `toml:"-"`
// contains filtered or unexported fields
}
func (*Serializer) Init ¶
func (s *Serializer) Init() 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.