serialization

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeString

func NormalizeString(str string, max int) (normalizedString string, err error)

NormalizeString replaces all non-alphanumerical characters to underscore

func SerializeHistogramMetrics added in v0.24.0

func SerializeHistogramMetrics(name string, data pdata.HistogramDataPointSlice, tags []string) []string

SerializeHistogramMetrics serializes a slice of double histogram datapoints to a Dynatrace gauge.

IMPORTANT: Min and max are required by Dynatrace but not provided by histogram so they are assumed to be the average.

func SerializeNumberDataPoints added in v0.31.0

func SerializeNumberDataPoints(name string, data pdata.NumberDataPointSlice, tags []string) []string

SerializeNumberDataPoints serializes a slice of number datapoints to a Dynatrace gauge.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL