types

package
v0.0.0-...-9b60763 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValueTypeCPU  = "cpu"
	ValueTypeSize = "size"

	ValueTypeCPUFormat  = "%5s"
	ValueTypeSizeFormat = "%8s"
)
View Source
const (
	InstanceLabel = model.LabelName("instance")
)
View Source
const (
	SampleInterval = "10s"
)

Variables

View Source
var (
	ConfigCheckInterval = 30 * time.Second
	PollInterval        = 5 * time.Second
	GRPCServiceTimeout  = 10 * time.Second
)

Functions

This section is empty.

Types

type ClusterMetric

type ClusterMetric struct {
	InstanceMetrics map[string]*InstanceMetric
}

ClusterMetric use the instance name as the key

type InstanceMetric

type InstanceMetric struct {
	// DeviceMetrics use the device name as the key
	DeviceMetrics map[string]int64
	Total         int64
	Average       int64

	// Value stores the metric value if there is no associated device
	Value int64
}

Jump to

Keyboard shortcuts

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