v1beta1

package
v0.31.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 16 Imported by: 492

Documentation

Overview

Package v1beta1 is the v1beta1 version of the metrics API.

Index

Constants

View Source
const GroupName = "metrics.k8s.io"

GroupName is the group name use in this package

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// SchemeBuilder points to a list of functions added to Scheme.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme applies all the stored functions to the scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_metrics_ContainerMetrics_To_v1beta1_ContainerMetrics

func Convert_metrics_ContainerMetrics_To_v1beta1_ContainerMetrics(in *metrics.ContainerMetrics, out *ContainerMetrics, s conversion.Scope) error

Convert_metrics_ContainerMetrics_To_v1beta1_ContainerMetrics is an autogenerated conversion function.

func Convert_metrics_NodeMetricsList_To_v1beta1_NodeMetricsList

func Convert_metrics_NodeMetricsList_To_v1beta1_NodeMetricsList(in *metrics.NodeMetricsList, out *NodeMetricsList, s conversion.Scope) error

Convert_metrics_NodeMetricsList_To_v1beta1_NodeMetricsList is an autogenerated conversion function.

func Convert_metrics_NodeMetrics_To_v1beta1_NodeMetrics

func Convert_metrics_NodeMetrics_To_v1beta1_NodeMetrics(in *metrics.NodeMetrics, out *NodeMetrics, s conversion.Scope) error

Convert_metrics_NodeMetrics_To_v1beta1_NodeMetrics is an autogenerated conversion function.

func Convert_metrics_PodMetricsList_To_v1beta1_PodMetricsList

func Convert_metrics_PodMetricsList_To_v1beta1_PodMetricsList(in *metrics.PodMetricsList, out *PodMetricsList, s conversion.Scope) error

Convert_metrics_PodMetricsList_To_v1beta1_PodMetricsList is an autogenerated conversion function.

func Convert_metrics_PodMetrics_To_v1beta1_PodMetrics

func Convert_metrics_PodMetrics_To_v1beta1_PodMetrics(in *metrics.PodMetrics, out *PodMetrics, s conversion.Scope) error

Convert_metrics_PodMetrics_To_v1beta1_PodMetrics is an autogenerated conversion function.

func Convert_v1beta1_ContainerMetrics_To_metrics_ContainerMetrics

func Convert_v1beta1_ContainerMetrics_To_metrics_ContainerMetrics(in *ContainerMetrics, out *metrics.ContainerMetrics, s conversion.Scope) error

Convert_v1beta1_ContainerMetrics_To_metrics_ContainerMetrics is an autogenerated conversion function.

func Convert_v1beta1_NodeMetricsList_To_metrics_NodeMetricsList

func Convert_v1beta1_NodeMetricsList_To_metrics_NodeMetricsList(in *NodeMetricsList, out *metrics.NodeMetricsList, s conversion.Scope) error

Convert_v1beta1_NodeMetricsList_To_metrics_NodeMetricsList is an autogenerated conversion function.

func Convert_v1beta1_NodeMetrics_To_metrics_NodeMetrics

func Convert_v1beta1_NodeMetrics_To_metrics_NodeMetrics(in *NodeMetrics, out *metrics.NodeMetrics, s conversion.Scope) error

Convert_v1beta1_NodeMetrics_To_metrics_NodeMetrics is an autogenerated conversion function.

func Convert_v1beta1_PodMetricsList_To_metrics_PodMetricsList

func Convert_v1beta1_PodMetricsList_To_metrics_PodMetricsList(in *PodMetricsList, out *metrics.PodMetricsList, s conversion.Scope) error

Convert_v1beta1_PodMetricsList_To_metrics_PodMetricsList is an autogenerated conversion function.

func Convert_v1beta1_PodMetrics_To_metrics_PodMetrics

func Convert_v1beta1_PodMetrics_To_metrics_PodMetrics(in *PodMetrics, out *metrics.PodMetrics, s conversion.Scope) error

Convert_v1beta1_PodMetrics_To_metrics_PodMetrics is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion 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 a Group qualified GroupResource

Types

type ContainerMetrics

type ContainerMetrics struct {
	// Container name corresponding to the one from pod.spec.containers.
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// The memory usage is the memory working set.
	Usage v1.ResourceList `` /* 183-byte string literal not displayed */
}

ContainerMetrics sets resource usage metrics of a container.

func (*ContainerMetrics) DeepCopy

func (in *ContainerMetrics) DeepCopy() *ContainerMetrics

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerMetrics.

func (*ContainerMetrics) DeepCopyInto

func (in *ContainerMetrics) DeepCopyInto(out *ContainerMetrics)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ContainerMetrics) Descriptor

func (*ContainerMetrics) Descriptor() ([]byte, []int)

func (*ContainerMetrics) Marshal

func (m *ContainerMetrics) Marshal() (dAtA []byte, err error)

func (*ContainerMetrics) MarshalTo

func (m *ContainerMetrics) MarshalTo(dAtA []byte) (int, error)

func (*ContainerMetrics) MarshalToSizedBuffer added in v0.16.4

func (m *ContainerMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContainerMetrics) ProtoMessage

func (*ContainerMetrics) ProtoMessage()

func (*ContainerMetrics) Reset

func (m *ContainerMetrics) Reset()

func (*ContainerMetrics) Size

func (m *ContainerMetrics) Size() (n int)

func (*ContainerMetrics) String

func (this *ContainerMetrics) String() string

func (*ContainerMetrics) Unmarshal

func (m *ContainerMetrics) Unmarshal(dAtA []byte) error

func (*ContainerMetrics) XXX_DiscardUnknown added in v0.16.4

func (m *ContainerMetrics) XXX_DiscardUnknown()

func (*ContainerMetrics) XXX_Marshal added in v0.16.4

func (m *ContainerMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerMetrics) XXX_Merge added in v0.16.4

func (m *ContainerMetrics) XXX_Merge(src proto.Message)

func (*ContainerMetrics) XXX_Size added in v0.16.4

func (m *ContainerMetrics) XXX_Size() int

func (*ContainerMetrics) XXX_Unmarshal added in v0.16.4

func (m *ContainerMetrics) XXX_Unmarshal(b []byte) error

type NodeMetrics

type NodeMetrics struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// The following fields define time interval from which metrics were
	// collected from the interval [Timestamp-Window, Timestamp].
	Timestamp metav1.Time     `json:"timestamp" protobuf:"bytes,2,opt,name=timestamp"`
	Window    metav1.Duration `json:"window" protobuf:"bytes,3,opt,name=window"`

	// The memory usage is the memory working set.
	Usage v1.ResourceList `` /* 183-byte string literal not displayed */
}

NodeMetrics sets resource usage metrics of a node.

func (*NodeMetrics) DeepCopy

func (in *NodeMetrics) DeepCopy() *NodeMetrics

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeMetrics.

func (*NodeMetrics) DeepCopyInto

func (in *NodeMetrics) DeepCopyInto(out *NodeMetrics)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeMetrics) DeepCopyObject

func (in *NodeMetrics) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*NodeMetrics) Descriptor

func (*NodeMetrics) Descriptor() ([]byte, []int)

func (*NodeMetrics) Marshal

func (m *NodeMetrics) Marshal() (dAtA []byte, err error)

func (*NodeMetrics) MarshalTo

func (m *NodeMetrics) MarshalTo(dAtA []byte) (int, error)

func (*NodeMetrics) MarshalToSizedBuffer added in v0.16.4

func (m *NodeMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NodeMetrics) ProtoMessage

func (*NodeMetrics) ProtoMessage()

func (*NodeMetrics) Reset

func (m *NodeMetrics) Reset()

func (*NodeMetrics) Size

func (m *NodeMetrics) Size() (n int)

func (*NodeMetrics) String

func (this *NodeMetrics) String() string

func (*NodeMetrics) Unmarshal

func (m *NodeMetrics) Unmarshal(dAtA []byte) error

func (*NodeMetrics) XXX_DiscardUnknown added in v0.16.4

func (m *NodeMetrics) XXX_DiscardUnknown()

func (*NodeMetrics) XXX_Marshal added in v0.16.4

func (m *NodeMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeMetrics) XXX_Merge added in v0.16.4

func (m *NodeMetrics) XXX_Merge(src proto.Message)

func (*NodeMetrics) XXX_Size added in v0.16.4

func (m *NodeMetrics) XXX_Size() int

func (*NodeMetrics) XXX_Unmarshal added in v0.16.4

func (m *NodeMetrics) XXX_Unmarshal(b []byte) error

type NodeMetricsList

type NodeMetricsList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// List of node metrics.
	Items []NodeMetrics `json:"items" protobuf:"bytes,2,rep,name=items"`
}

NodeMetricsList is a list of NodeMetrics.

func (*NodeMetricsList) DeepCopy

func (in *NodeMetricsList) DeepCopy() *NodeMetricsList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeMetricsList.

func (*NodeMetricsList) DeepCopyInto

func (in *NodeMetricsList) DeepCopyInto(out *NodeMetricsList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeMetricsList) DeepCopyObject

func (in *NodeMetricsList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*NodeMetricsList) Descriptor

func (*NodeMetricsList) Descriptor() ([]byte, []int)

func (*NodeMetricsList) Marshal

func (m *NodeMetricsList) Marshal() (dAtA []byte, err error)

func (*NodeMetricsList) MarshalTo

func (m *NodeMetricsList) MarshalTo(dAtA []byte) (int, error)

func (*NodeMetricsList) MarshalToSizedBuffer added in v0.16.4

func (m *NodeMetricsList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NodeMetricsList) ProtoMessage

func (*NodeMetricsList) ProtoMessage()

func (*NodeMetricsList) Reset

func (m *NodeMetricsList) Reset()

func (*NodeMetricsList) Size

func (m *NodeMetricsList) Size() (n int)

func (*NodeMetricsList) String

func (this *NodeMetricsList) String() string

func (*NodeMetricsList) Unmarshal

func (m *NodeMetricsList) Unmarshal(dAtA []byte) error

func (*NodeMetricsList) XXX_DiscardUnknown added in v0.16.4

func (m *NodeMetricsList) XXX_DiscardUnknown()

func (*NodeMetricsList) XXX_Marshal added in v0.16.4

func (m *NodeMetricsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeMetricsList) XXX_Merge added in v0.16.4

func (m *NodeMetricsList) XXX_Merge(src proto.Message)

func (*NodeMetricsList) XXX_Size added in v0.16.4

func (m *NodeMetricsList) XXX_Size() int

func (*NodeMetricsList) XXX_Unmarshal added in v0.16.4

func (m *NodeMetricsList) XXX_Unmarshal(b []byte) error

type PodMetrics

type PodMetrics struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// The following fields define time interval from which metrics were
	// collected from the interval [Timestamp-Window, Timestamp].
	Timestamp metav1.Time     `json:"timestamp" protobuf:"bytes,2,opt,name=timestamp"`
	Window    metav1.Duration `json:"window" protobuf:"bytes,3,opt,name=window"`

	// Metrics for all containers are collected within the same time window.
	// +listType=atomic
	Containers []ContainerMetrics `json:"containers" protobuf:"bytes,4,rep,name=containers"`
}

PodMetrics sets resource usage metrics of a pod.

func (*PodMetrics) DeepCopy

func (in *PodMetrics) DeepCopy() *PodMetrics

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodMetrics.

func (*PodMetrics) DeepCopyInto

func (in *PodMetrics) DeepCopyInto(out *PodMetrics)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodMetrics) DeepCopyObject

func (in *PodMetrics) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PodMetrics) Descriptor

func (*PodMetrics) Descriptor() ([]byte, []int)

func (*PodMetrics) Marshal

func (m *PodMetrics) Marshal() (dAtA []byte, err error)

func (*PodMetrics) MarshalTo

func (m *PodMetrics) MarshalTo(dAtA []byte) (int, error)

func (*PodMetrics) MarshalToSizedBuffer added in v0.16.4

func (m *PodMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PodMetrics) ProtoMessage

func (*PodMetrics) ProtoMessage()

func (*PodMetrics) Reset

func (m *PodMetrics) Reset()

func (*PodMetrics) Size

func (m *PodMetrics) Size() (n int)

func (*PodMetrics) String

func (this *PodMetrics) String() string

func (*PodMetrics) Unmarshal

func (m *PodMetrics) Unmarshal(dAtA []byte) error

func (*PodMetrics) XXX_DiscardUnknown added in v0.16.4

func (m *PodMetrics) XXX_DiscardUnknown()

func (*PodMetrics) XXX_Marshal added in v0.16.4

func (m *PodMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodMetrics) XXX_Merge added in v0.16.4

func (m *PodMetrics) XXX_Merge(src proto.Message)

func (*PodMetrics) XXX_Size added in v0.16.4

func (m *PodMetrics) XXX_Size() int

func (*PodMetrics) XXX_Unmarshal added in v0.16.4

func (m *PodMetrics) XXX_Unmarshal(b []byte) error

type PodMetricsList

type PodMetricsList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// List of pod metrics.
	Items []PodMetrics `json:"items" protobuf:"bytes,2,rep,name=items"`
}

PodMetricsList is a list of PodMetrics.

func (*PodMetricsList) DeepCopy

func (in *PodMetricsList) DeepCopy() *PodMetricsList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodMetricsList.

func (*PodMetricsList) DeepCopyInto

func (in *PodMetricsList) DeepCopyInto(out *PodMetricsList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodMetricsList) DeepCopyObject

func (in *PodMetricsList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PodMetricsList) Descriptor

func (*PodMetricsList) Descriptor() ([]byte, []int)

func (*PodMetricsList) Marshal

func (m *PodMetricsList) Marshal() (dAtA []byte, err error)

func (*PodMetricsList) MarshalTo

func (m *PodMetricsList) MarshalTo(dAtA []byte) (int, error)

func (*PodMetricsList) MarshalToSizedBuffer added in v0.16.4

func (m *PodMetricsList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PodMetricsList) ProtoMessage

func (*PodMetricsList) ProtoMessage()

func (*PodMetricsList) Reset

func (m *PodMetricsList) Reset()

func (*PodMetricsList) Size

func (m *PodMetricsList) Size() (n int)

func (*PodMetricsList) String

func (this *PodMetricsList) String() string

func (*PodMetricsList) Unmarshal

func (m *PodMetricsList) Unmarshal(dAtA []byte) error

func (*PodMetricsList) XXX_DiscardUnknown added in v0.16.4

func (m *PodMetricsList) XXX_DiscardUnknown()

func (*PodMetricsList) XXX_Marshal added in v0.16.4

func (m *PodMetricsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodMetricsList) XXX_Merge added in v0.16.4

func (m *PodMetricsList) XXX_Merge(src proto.Message)

func (*PodMetricsList) XXX_Size added in v0.16.4

func (m *PodMetricsList) XXX_Size() int

func (*PodMetricsList) XXX_Unmarshal added in v0.16.4

func (m *PodMetricsList) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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