metric

package
v4.2.501+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerTime         influxdb.Tag = "time"
	ContainerPodNamespace influxdb.Tag = "pod_namespace"
	ContainerPodName      influxdb.Tag = "pod_name"
	ContainerName         influxdb.Tag = "name"
	ContainerRateRange    influxdb.Tag = "rate_range"

	ContainerValue influxdb.Field = "value"
)
View Source
const (
	NodeTime influxdb.Tag = "time"
	NodeName influxdb.Tag = "name"

	NodeValue influxdb.Field = "value"
)

Variables

View Source
var (
	NodeTags    = []influxdb.Tag{NodeName}
	NodeFields  = []influxdb.Field{NodeValue}
	NodeColumns = []string{string(NodeName), string(NodeValue)}
)

Functions

This section is empty.

Types

type ContainerEntity

type ContainerEntity struct {
	Time      time.Time
	Namespace *string
	PodName   *string
	Name      *string
	RateRange *string

	Value *float64
}

func NewContainerEntityFromMap

func NewContainerEntityFromMap(data map[string]string) ContainerEntity

type NodeEntity

type NodeEntity struct {
	Time time.Time
	Name *string

	Value *float64
}

func NewNodeEntityFromMap

func NewNodeEntityFromMap(data map[string]string) NodeEntity

Jump to

Keyboard shortcuts

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