metrics

package
v1.8.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: Apache-2.0, Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "metrics"

GroupName is the group name use in this package

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func DeepCopy_metrics_ContainerMetrics

func DeepCopy_metrics_ContainerMetrics(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_metrics_ContainerMetrics is an autogenerated deepcopy function.

func DeepCopy_metrics_NodeMetrics

func DeepCopy_metrics_NodeMetrics(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_metrics_NodeMetrics is an autogenerated deepcopy function.

func DeepCopy_metrics_NodeMetricsList

func DeepCopy_metrics_NodeMetricsList(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_metrics_NodeMetricsList is an autogenerated deepcopy function.

func DeepCopy_metrics_PodMetrics

func DeepCopy_metrics_PodMetrics(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_metrics_PodMetrics is an autogenerated deepcopy function.

func DeepCopy_metrics_PodMetricsList

func DeepCopy_metrics_PodMetricsList(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_metrics_PodMetricsList is an autogenerated deepcopy function.

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func RegisterDeepCopies

func RegisterDeepCopies(scheme *runtime.Scheme) error

RegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns back a Group qualified GroupResource

Types

type ContainerMetrics

type ContainerMetrics struct {
	// Container name corresponding to the one from pod.spec.containers.
	Name string
	// The memory usage is the memory working set.
	Usage ResourceList
}

resource usage metrics of a container.

func (*ContainerMetrics) CodecDecodeSelf

func (x *ContainerMetrics) CodecDecodeSelf(d *codec1978.Decoder)

func (*ContainerMetrics) CodecEncodeSelf

func (x *ContainerMetrics) CodecEncodeSelf(e *codec1978.Encoder)

type NodeMetrics

type NodeMetrics struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	// The following fields define time interval from which metrics were
	// collected from the interval [Timestamp-Window, Timestamp].
	Timestamp metav1.Time
	Window    metav1.Duration

	// The memory usage is the memory working set.
	Usage ResourceList
}

resource usage metrics of a node.

func (*NodeMetrics) CodecDecodeSelf

func (x *NodeMetrics) CodecDecodeSelf(d *codec1978.Decoder)

func (*NodeMetrics) CodecEncodeSelf

func (x *NodeMetrics) CodecEncodeSelf(e *codec1978.Encoder)

type NodeMetricsList

type NodeMetricsList struct {
	metav1.TypeMeta
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
	metav1.ListMeta

	// List of node metrics.
	Items []NodeMetrics
}

NodeMetricsList is a list of NodeMetrics.

func (*NodeMetricsList) CodecDecodeSelf

func (x *NodeMetricsList) CodecDecodeSelf(d *codec1978.Decoder)

func (*NodeMetricsList) CodecEncodeSelf

func (x *NodeMetricsList) CodecEncodeSelf(e *codec1978.Encoder)

type PodMetrics

type PodMetrics struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	// The following fields define time interval from which metrics were
	// collected from the interval [Timestamp-Window, Timestamp].
	Timestamp metav1.Time
	Window    metav1.Duration

	// Metrics for all containers are collected within the same time window.
	Containers []ContainerMetrics
}

resource usage metrics of a pod.

func (*PodMetrics) CodecDecodeSelf

func (x *PodMetrics) CodecDecodeSelf(d *codec1978.Decoder)

func (*PodMetrics) CodecEncodeSelf

func (x *PodMetrics) CodecEncodeSelf(e *codec1978.Encoder)

type PodMetricsList

type PodMetricsList struct {
	metav1.TypeMeta
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
	metav1.ListMeta

	// List of pod metrics.
	Items []PodMetrics
}

PodMetricsList is a list of PodMetrics.

func (*PodMetricsList) CodecDecodeSelf

func (x *PodMetricsList) CodecDecodeSelf(d *codec1978.Decoder)

func (*PodMetricsList) CodecEncodeSelf

func (x *PodMetricsList) CodecEncodeSelf(e *codec1978.Encoder)

type ResourceList

type ResourceList map[ResourceName]resource.Quantity

ResourceList is a set of (resource name, quantity) pairs.

func (*ResourceList) CodecDecodeSelf

func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder)

func (ResourceList) CodecEncodeSelf

func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder)

type ResourceName

type ResourceName string

ResourceName is the name identifying various resources in a ResourceList.

func (*ResourceName) CodecDecodeSelf

func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder)

func (ResourceName) CodecEncodeSelf

func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder)

Directories

Path Synopsis
Package install installs the experimental API group, making it available as an option to all of the API encoding/decoding machinery.
Package install installs the experimental API group, making it available as an option to all of the API encoding/decoding machinery.
Package v1alpha1 is a generated protocol buffer package.
Package v1alpha1 is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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