metrics: k8s.io/metrics/pkg/apis/metrics/v1beta1 Index | Files

package v1beta1

import "k8s.io/metrics/pkg/apis/metrics/v1beta1"

Package v1beta1 is the v1beta1 version of the metrics API.

Index

Package Files

doc.go generated.pb.go register.go types.go zz_generated.conversion.go zz_generated.deepcopy.go

Constants

const GroupName = "metrics.k8s.io"

GroupName is the group name use in this package

Variables

var (
    ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
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
)
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

func Convert_metrics_ContainerMetrics_To_v1beta1_ContainerMetrics Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type ContainerMetrics Uses

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 `json:"usage" protobuf:"bytes,2,rep,name=usage,casttype=k8s.io/api/core/v1.ResourceList,castkey=k8s.io/api/core/v1.ResourceName,castvalue=k8s.io/apimachinery/pkg/api/resource.Quantity"`
}

ContainerMetrics sets resource usage metrics of a container.

func (*ContainerMetrics) DeepCopy Uses

func (in *ContainerMetrics) DeepCopy() *ContainerMetrics

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

func (*ContainerMetrics) DeepCopyInto Uses

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 Uses

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

func (*ContainerMetrics) Marshal Uses

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

func (*ContainerMetrics) MarshalTo Uses

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

func (*ContainerMetrics) MarshalToSizedBuffer Uses

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

func (*ContainerMetrics) ProtoMessage Uses

func (*ContainerMetrics) ProtoMessage()

func (*ContainerMetrics) Reset Uses

func (m *ContainerMetrics) Reset()

func (*ContainerMetrics) Size Uses

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

func (*ContainerMetrics) String Uses

func (this *ContainerMetrics) String() string

func (*ContainerMetrics) Unmarshal Uses

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

func (*ContainerMetrics) XXX_DiscardUnknown Uses

func (m *ContainerMetrics) XXX_DiscardUnknown()

func (*ContainerMetrics) XXX_Marshal Uses

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

func (*ContainerMetrics) XXX_Merge Uses

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

func (*ContainerMetrics) XXX_Size Uses

func (m *ContainerMetrics) XXX_Size() int

func (*ContainerMetrics) XXX_Unmarshal Uses

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

type NodeMetrics Uses

type NodeMetrics struct {
    metav1.TypeMeta   `json:",inline"`
    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 `json:"usage" protobuf:"bytes,4,rep,name=usage,casttype=k8s.io/api/core/v1.ResourceList,castkey=k8s.io/api/core/v1.ResourceName,castvalue=k8s.io/apimachinery/pkg/api/resource.Quantity"`
}

NodeMetrics sets resource usage metrics of a node.

func (*NodeMetrics) DeepCopy Uses

func (in *NodeMetrics) DeepCopy() *NodeMetrics

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

func (*NodeMetrics) DeepCopyInto Uses

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 Uses

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

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

func (*NodeMetrics) Descriptor Uses

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

func (*NodeMetrics) Marshal Uses

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

func (*NodeMetrics) MarshalTo Uses

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

func (*NodeMetrics) MarshalToSizedBuffer Uses

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

func (*NodeMetrics) ProtoMessage Uses

func (*NodeMetrics) ProtoMessage()

func (*NodeMetrics) Reset Uses

func (m *NodeMetrics) Reset()

func (*NodeMetrics) Size Uses

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

func (*NodeMetrics) String Uses

func (this *NodeMetrics) String() string

func (*NodeMetrics) Unmarshal Uses

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

func (*NodeMetrics) XXX_DiscardUnknown Uses

func (m *NodeMetrics) XXX_DiscardUnknown()

func (*NodeMetrics) XXX_Marshal Uses

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

func (*NodeMetrics) XXX_Merge Uses

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

func (*NodeMetrics) XXX_Size Uses

func (m *NodeMetrics) XXX_Size() int

func (*NodeMetrics) XXX_Unmarshal Uses

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

type NodeMetricsList Uses

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 Uses

func (in *NodeMetricsList) DeepCopy() *NodeMetricsList

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

func (*NodeMetricsList) DeepCopyInto Uses

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 Uses

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

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

func (*NodeMetricsList) Descriptor Uses

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

func (*NodeMetricsList) Marshal Uses

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

func (*NodeMetricsList) MarshalTo Uses

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

func (*NodeMetricsList) MarshalToSizedBuffer Uses

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

func (*NodeMetricsList) ProtoMessage Uses

func (*NodeMetricsList) ProtoMessage()

func (*NodeMetricsList) Reset Uses

func (m *NodeMetricsList) Reset()

func (*NodeMetricsList) Size Uses

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

func (*NodeMetricsList) String Uses

func (this *NodeMetricsList) String() string

func (*NodeMetricsList) Unmarshal Uses

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

func (*NodeMetricsList) XXX_DiscardUnknown Uses

func (m *NodeMetricsList) XXX_DiscardUnknown()

func (*NodeMetricsList) XXX_Marshal Uses

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

func (*NodeMetricsList) XXX_Merge Uses

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

func (*NodeMetricsList) XXX_Size Uses

func (m *NodeMetricsList) XXX_Size() int

func (*NodeMetricsList) XXX_Unmarshal Uses

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

type PodMetrics Uses

type PodMetrics struct {
    metav1.TypeMeta   `json:",inline"`
    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.
    Containers []ContainerMetrics `json:"containers" protobuf:"bytes,4,rep,name=containers"`
}

PodMetrics sets resource usage metrics of a pod.

func (*PodMetrics) DeepCopy Uses

func (in *PodMetrics) DeepCopy() *PodMetrics

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

func (*PodMetrics) DeepCopyInto Uses

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 Uses

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

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

func (*PodMetrics) Descriptor Uses

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

func (*PodMetrics) Marshal Uses

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

func (*PodMetrics) MarshalTo Uses

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

func (*PodMetrics) MarshalToSizedBuffer Uses

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

func (*PodMetrics) ProtoMessage Uses

func (*PodMetrics) ProtoMessage()

func (*PodMetrics) Reset Uses

func (m *PodMetrics) Reset()

func (*PodMetrics) Size Uses

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

func (*PodMetrics) String Uses

func (this *PodMetrics) String() string

func (*PodMetrics) Unmarshal Uses

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

func (*PodMetrics) XXX_DiscardUnknown Uses

func (m *PodMetrics) XXX_DiscardUnknown()

func (*PodMetrics) XXX_Marshal Uses

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

func (*PodMetrics) XXX_Merge Uses

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

func (*PodMetrics) XXX_Size Uses

func (m *PodMetrics) XXX_Size() int

func (*PodMetrics) XXX_Unmarshal Uses

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

type PodMetricsList Uses

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 Uses

func (in *PodMetricsList) DeepCopy() *PodMetricsList

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

func (*PodMetricsList) DeepCopyInto Uses

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 Uses

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

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

func (*PodMetricsList) Descriptor Uses

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

func (*PodMetricsList) Marshal Uses

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

func (*PodMetricsList) MarshalTo Uses

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

func (*PodMetricsList) MarshalToSizedBuffer Uses

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

func (*PodMetricsList) ProtoMessage Uses

func (*PodMetricsList) ProtoMessage()

func (*PodMetricsList) Reset Uses

func (m *PodMetricsList) Reset()

func (*PodMetricsList) Size Uses

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

func (*PodMetricsList) String Uses

func (this *PodMetricsList) String() string

func (*PodMetricsList) Unmarshal Uses

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

func (*PodMetricsList) XXX_DiscardUnknown Uses

func (m *PodMetricsList) XXX_DiscardUnknown()

func (*PodMetricsList) XXX_Marshal Uses

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

func (*PodMetricsList) XXX_Merge Uses

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

func (*PodMetricsList) XXX_Size Uses

func (m *PodMetricsList) XXX_Size() int

func (*PodMetricsList) XXX_Unmarshal Uses

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

Package v1beta1 imports 16 packages (graph) and is imported by 46 packages. Updated 2020-01-19. Refresh now. Tools for package owners.