convert

package
v0.0.0-...-8d5bda4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DimensionsToAttributes

func DimensionsToAttributes(in map[string]*policy.Value) map[string]interface{}

DimensionsToAttributes returns an appropriate set of New Relic attributes from the passed Istio telemetry dimensions.

func ValueToAttribute

func ValueToAttribute(in *policy.Value) interface{}

ValueToAttribute returns metric attribute values as types the telemetry-sdk handles:

timestamps and durations       -> milliseconds as float64
string, bool, all number types -> unchanged
everything else                -> string

func ValueToFloat64

func ValueToFloat64(in *policy.Value) (float64, error)

ValueToFloat64 returns a metric value as a float64.

Types

This section is empty.

Jump to

Keyboard shortcuts

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