v1beta2

package
v0.0.0-...-6fd899d Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package v1beta2 is the v1beta2 version of the custom_metrics API.

Index

Constants

View Source
const AllObjects = "*"

AllObjects is a wildcard used to select metrics for all objects matching the given label selector

View Source
const GroupName = "custom.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 = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta2"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_custom_metrics_MetricIdentifier_To_v1beta2_MetricIdentifier

func Convert_custom_metrics_MetricIdentifier_To_v1beta2_MetricIdentifier(in *custommetrics.MetricIdentifier, out *MetricIdentifier, s conversion.Scope) error

Convert_custom_metrics_MetricIdentifier_To_v1beta2_MetricIdentifier is an autogenerated conversion function.

func Convert_custom_metrics_MetricListOptions_To_v1beta2_MetricListOptions

func Convert_custom_metrics_MetricListOptions_To_v1beta2_MetricListOptions(in *custommetrics.MetricListOptions, out *MetricListOptions, s conversion.Scope) error

Convert_custom_metrics_MetricListOptions_To_v1beta2_MetricListOptions is an autogenerated conversion function.

func Convert_custom_metrics_MetricValueList_To_v1beta2_MetricValueList

func Convert_custom_metrics_MetricValueList_To_v1beta2_MetricValueList(in *custommetrics.MetricValueList, out *MetricValueList, s conversion.Scope) error

Convert_custom_metrics_MetricValueList_To_v1beta2_MetricValueList is an autogenerated conversion function.

func Convert_custom_metrics_MetricValue_To_v1beta2_MetricValue

func Convert_custom_metrics_MetricValue_To_v1beta2_MetricValue(in *custommetrics.MetricValue, out *MetricValue, s conversion.Scope) error

Convert_custom_metrics_MetricValue_To_v1beta2_MetricValue is an autogenerated conversion function.

func Convert_v1beta2_MetricIdentifier_To_custom_metrics_MetricIdentifier

func Convert_v1beta2_MetricIdentifier_To_custom_metrics_MetricIdentifier(in *MetricIdentifier, out *custommetrics.MetricIdentifier, s conversion.Scope) error

Convert_v1beta2_MetricIdentifier_To_custom_metrics_MetricIdentifier is an autogenerated conversion function.

func Convert_v1beta2_MetricListOptions_To_custom_metrics_MetricListOptions

func Convert_v1beta2_MetricListOptions_To_custom_metrics_MetricListOptions(in *MetricListOptions, out *custommetrics.MetricListOptions, s conversion.Scope) error

Convert_v1beta2_MetricListOptions_To_custom_metrics_MetricListOptions is an autogenerated conversion function.

func Convert_v1beta2_MetricValueList_To_custom_metrics_MetricValueList

func Convert_v1beta2_MetricValueList_To_custom_metrics_MetricValueList(in *MetricValueList, out *custommetrics.MetricValueList, s conversion.Scope) error

Convert_v1beta2_MetricValueList_To_custom_metrics_MetricValueList is an autogenerated conversion function.

func Convert_v1beta2_MetricValue_To_custom_metrics_MetricValue

func Convert_v1beta2_MetricValue_To_custom_metrics_MetricValue(in *MetricValue, out *custommetrics.MetricValue, s conversion.Scope) error

Convert_v1beta2_MetricValue_To_custom_metrics_MetricValue 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 MetricIdentifier

type MetricIdentifier struct {
	// name is the name of the given metric
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// selector represents the label selector that could be used to select
	// this metric, and will generally just be the selector passed in to
	// the query used to fetch this metric.
	// When left blank, only the metric's Name will be used to gather metrics.
	// +optional
	Selector *metav1.LabelSelector `json:"selector" protobuf:"bytes,2,opt,name=selector"`
}

MetricIdentifier identifies a metric by name and, optionally, selector

func (*MetricIdentifier) DeepCopy

func (in *MetricIdentifier) DeepCopy() *MetricIdentifier

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

func (*MetricIdentifier) DeepCopyInto

func (in *MetricIdentifier) DeepCopyInto(out *MetricIdentifier)

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

func (*MetricIdentifier) Descriptor

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

func (*MetricIdentifier) Marshal

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

func (*MetricIdentifier) MarshalTo

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

func (*MetricIdentifier) MarshalToSizedBuffer

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

func (*MetricIdentifier) ProtoMessage

func (*MetricIdentifier) ProtoMessage()

func (*MetricIdentifier) Reset

func (m *MetricIdentifier) Reset()

func (*MetricIdentifier) Size

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

func (*MetricIdentifier) String

func (this *MetricIdentifier) String() string

func (*MetricIdentifier) Unmarshal

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

func (*MetricIdentifier) XXX_DiscardUnknown

func (m *MetricIdentifier) XXX_DiscardUnknown()

func (*MetricIdentifier) XXX_Marshal

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

func (*MetricIdentifier) XXX_Merge

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

func (*MetricIdentifier) XXX_Size

func (m *MetricIdentifier) XXX_Size() int

func (*MetricIdentifier) XXX_Unmarshal

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

type MetricListOptions

type MetricListOptions struct {
	metav1.TypeMeta `json:",inline"`

	// A selector to restrict the list of returned objects by their labels.
	// Defaults to everything.
	// +optional
	LabelSelector string `json:"labelSelector,omitempty" protobuf:"bytes,1,opt,name=labelSelector"`

	// A selector to restrict the list of returned metrics by their labels
	// +optional
	MetricLabelSelector string `json:"metricLabelSelector,omitempty" protobuf:"bytes,2,opt,name=metricLabelSelector"`
}

MetricListOptions is used to select metrics by their label selectors

func (*MetricListOptions) DeepCopy

func (in *MetricListOptions) DeepCopy() *MetricListOptions

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

func (*MetricListOptions) DeepCopyInto

func (in *MetricListOptions) DeepCopyInto(out *MetricListOptions)

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

func (*MetricListOptions) DeepCopyObject

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

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

func (*MetricListOptions) Descriptor

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

func (*MetricListOptions) Marshal

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

func (*MetricListOptions) MarshalTo

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

func (*MetricListOptions) MarshalToSizedBuffer

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

func (*MetricListOptions) ProtoMessage

func (*MetricListOptions) ProtoMessage()

func (*MetricListOptions) Reset

func (m *MetricListOptions) Reset()

func (*MetricListOptions) Size

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

func (*MetricListOptions) String

func (this *MetricListOptions) String() string

func (*MetricListOptions) Unmarshal

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

func (*MetricListOptions) XXX_DiscardUnknown

func (m *MetricListOptions) XXX_DiscardUnknown()

func (*MetricListOptions) XXX_Marshal

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

func (*MetricListOptions) XXX_Merge

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

func (*MetricListOptions) XXX_Size

func (m *MetricListOptions) XXX_Size() int

func (*MetricListOptions) XXX_Unmarshal

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

type MetricValue

type MetricValue struct {
	metav1.TypeMeta `json:",inline"`

	// a reference to the described object
	DescribedObject v1.ObjectReference `json:"describedObject" protobuf:"bytes,1,name=describedObject"`

	Metric MetricIdentifier `json:"metric" protobuf:"bytes,2,name=metric"`

	// indicates the time at which the metrics were produced
	Timestamp metav1.Time `json:"timestamp" protobuf:"bytes,3,name=timestamp"`

	// indicates the window ([Timestamp-Window, Timestamp]) from
	// which these metrics were calculated, when returning rate
	// metrics calculated from cumulative metrics (or zero for
	// non-calculated instantaneous metrics).
	WindowSeconds *int64 `json:"windowSeconds,omitempty" protobuf:"bytes,4,opt,name=windowSeconds"`

	// the value of the metric for this
	Value resource.Quantity `json:"value" protobuf:"bytes,5,name=value"`
}

MetricValue is the metric value for some object

func (*MetricValue) DeepCopy

func (in *MetricValue) DeepCopy() *MetricValue

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

func (*MetricValue) DeepCopyInto

func (in *MetricValue) DeepCopyInto(out *MetricValue)

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

func (*MetricValue) DeepCopyObject

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

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

func (*MetricValue) Descriptor

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

func (*MetricValue) Marshal

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

func (*MetricValue) MarshalTo

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

func (*MetricValue) MarshalToSizedBuffer

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

func (*MetricValue) ProtoMessage

func (*MetricValue) ProtoMessage()

func (*MetricValue) Reset

func (m *MetricValue) Reset()

func (*MetricValue) Size

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

func (*MetricValue) String

func (this *MetricValue) String() string

func (*MetricValue) Unmarshal

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

func (*MetricValue) XXX_DiscardUnknown

func (m *MetricValue) XXX_DiscardUnknown()

func (*MetricValue) XXX_Marshal

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

func (*MetricValue) XXX_Merge

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

func (*MetricValue) XXX_Size

func (m *MetricValue) XXX_Size() int

func (*MetricValue) XXX_Unmarshal

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

type MetricValueList

type MetricValueList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// the value of the metric across the described objects
	Items []MetricValue `json:"items" protobuf:"bytes,2,rep,name=items"`
}

MetricValueList is a list of values for a given metric for some set of objects

func (*MetricValueList) DeepCopy

func (in *MetricValueList) DeepCopy() *MetricValueList

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

func (*MetricValueList) DeepCopyInto

func (in *MetricValueList) DeepCopyInto(out *MetricValueList)

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

func (*MetricValueList) DeepCopyObject

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

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

func (*MetricValueList) Descriptor

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

func (*MetricValueList) Marshal

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

func (*MetricValueList) MarshalTo

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

func (*MetricValueList) MarshalToSizedBuffer

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

func (*MetricValueList) ProtoMessage

func (*MetricValueList) ProtoMessage()

func (*MetricValueList) Reset

func (m *MetricValueList) Reset()

func (*MetricValueList) Size

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

func (*MetricValueList) String

func (this *MetricValueList) String() string

func (*MetricValueList) Unmarshal

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

func (*MetricValueList) XXX_DiscardUnknown

func (m *MetricValueList) XXX_DiscardUnknown()

func (*MetricValueList) XXX_Marshal

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

func (*MetricValueList) XXX_Merge

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

func (*MetricValueList) XXX_Size

func (m *MetricValueList) XXX_Size() int

func (*MetricValueList) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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