metrics

package
v3.1.0-beta2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerID

type ContainerID string

ContainerID is some type of unique id for containers

type DatapointCache

type DatapointCache struct {
	// contains filtered or unexported fields
}

DatapointCache holds an up to date copy of datapoints pertaining to the cluster. It is updated whenever the HandleChange method is called with new K8s resources.

func NewDatapointCache

func NewDatapointCache() *DatapointCache

NewDatapointCache creates a new clean cache

func (*DatapointCache) AllDatapoints

func (dc *DatapointCache) AllDatapoints() []*datapoint.Datapoint

AllDatapoints returns all of the cached datapoints.

func (*DatapointCache) AllDimProperties

func (dc *DatapointCache) AllDimProperties() []*atypes.DimProperties

AllDimProperties returns any dimension properties pertaining to the cluster

func (*DatapointCache) HandleChange

func (dc *DatapointCache) HandleChange(oldObj, newObj runtime.Object)

HandleChange updates the datapoint cache when called with the old and new resources. Delete only includes the old, and adds only includes the new.

Jump to

Keyboard shortcuts

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