Documentation ¶
Index ¶
Constants ¶
View Source
const ( Carbon2FormatFieldSeparate = format("field_separate") Carbon2FormatMetricIncludesField = format("metric_includes_field") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serializer ¶ added in v1.16.0
type Serializer struct {
// contains filtered or unexported fields
}
func NewSerializer ¶
func NewSerializer(metricsFormat string) (*Serializer, error)
func (*Serializer) IsMetricsFormatUnset ¶ added in v1.16.0
func (s *Serializer) IsMetricsFormatUnset() bool
func (*Serializer) Serialize ¶ added in v1.16.0
func (s *Serializer) Serialize(metric telegraf.Metric) ([]byte, error)
func (*Serializer) SerializeBatch ¶ added in v1.16.0
func (s *Serializer) SerializeBatch(metrics []telegraf.Metric) ([]byte, error)
func (*Serializer) SetMetricsFormat ¶ added in v1.16.0
func (s *Serializer) SetMetricsFormat(f format)
Click to show internal directories.
Click to hide internal directories.