Documentation ¶
Overview ¶
Package v1beta1 is the v1beta1 version of the custom_metrics API.
Package v1beta1 is a generated protocol buffer package. It is generated from these files: k8s.io/kubernetes/vendor/k8s.io/metrics/pkg/apis/custom_metrics/v1beta1/generated.proto It has these top-level messages: MetricListOptions MetricValue MetricValueList
Index ¶
- Constants
- Variables
- func Convert_custom_metrics_MetricListOptions_To_v1beta1_MetricListOptions(in *custommetrics.MetricListOptions, out *MetricListOptions, ...) error
- func Convert_custom_metrics_MetricValueList_To_v1beta1_MetricValueList(in *custommetrics.MetricValueList, out *MetricValueList, s conversion.Scope) error
- func Convert_custom_metrics_MetricValue_To_v1beta1_MetricValue(in *custom_metrics.MetricValue, out *MetricValue, s conversion.Scope) error
- func Convert_v1beta1_MetricListOptions_To_custom_metrics_MetricListOptions(in *MetricListOptions, out *custommetrics.MetricListOptions, ...) error
- func Convert_v1beta1_MetricValueList_To_custom_metrics_MetricValueList(in *MetricValueList, out *custommetrics.MetricValueList, s conversion.Scope) error
- func Convert_v1beta1_MetricValue_To_custom_metrics_MetricValue(in *MetricValue, out *custom_metrics.MetricValue, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type MetricListOptions
- func (in *MetricListOptions) DeepCopy() *MetricListOptions
- func (in *MetricListOptions) DeepCopyInto(out *MetricListOptions)
- func (in *MetricListOptions) DeepCopyObject() runtime.Object
- func (*MetricListOptions) Descriptor() ([]byte, []int)
- func (m *MetricListOptions) Marshal() (dAtA []byte, err error)
- func (m *MetricListOptions) MarshalTo(dAtA []byte) (int, error)
- func (*MetricListOptions) ProtoMessage()
- func (m *MetricListOptions) Reset()
- func (m *MetricListOptions) Size() (n int)
- func (this *MetricListOptions) String() string
- func (m *MetricListOptions) Unmarshal(dAtA []byte) error
- type MetricValue
- func (in *MetricValue) DeepCopy() *MetricValue
- func (in *MetricValue) DeepCopyInto(out *MetricValue)
- func (in *MetricValue) DeepCopyObject() runtime.Object
- func (*MetricValue) Descriptor() ([]byte, []int)
- func (m *MetricValue) Marshal() (dAtA []byte, err error)
- func (m *MetricValue) MarshalTo(dAtA []byte) (int, error)
- func (*MetricValue) ProtoMessage()
- func (m *MetricValue) Reset()
- func (m *MetricValue) Size() (n int)
- func (this *MetricValue) String() string
- func (m *MetricValue) Unmarshal(dAtA []byte) error
- type MetricValueList
- func (in *MetricValueList) DeepCopy() *MetricValueList
- func (in *MetricValueList) DeepCopyInto(out *MetricValueList)
- func (in *MetricValueList) DeepCopyObject() runtime.Object
- func (*MetricValueList) Descriptor() ([]byte, []int)
- func (m *MetricValueList) Marshal() (dAtA []byte, err error)
- func (m *MetricValueList) MarshalTo(dAtA []byte) (int, error)
- func (*MetricValueList) ProtoMessage()
- func (m *MetricValueList) Reset()
- func (m *MetricValueList) Size() (n int)
- func (this *MetricValueList) String() string
- func (m *MetricValueList) Unmarshal(dAtA []byte) error
Constants ¶
const AllObjects = "*"
AllObjects is a wildcard used to select metrics for all objects matching the given label selector
const GroupName = "custom.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") )
var ( // SchemeBuilder points to a list of functions added to Scheme. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addConversionFuncs) // AddToScheme applies all the stored functions to the scheme. AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_custom_metrics_MetricListOptions_To_v1beta1_MetricListOptions ¶
func Convert_custom_metrics_MetricListOptions_To_v1beta1_MetricListOptions(in *custommetrics.MetricListOptions, out *MetricListOptions, s conversion.Scope) error
Convert_custom_metrics_MetricListOptions_To_v1beta1_MetricListOptions is an autogenerated conversion function.
func Convert_custom_metrics_MetricValueList_To_v1beta1_MetricValueList ¶
func Convert_custom_metrics_MetricValueList_To_v1beta1_MetricValueList(in *custommetrics.MetricValueList, out *MetricValueList, s conversion.Scope) error
Convert_custom_metrics_MetricValueList_To_v1beta1_MetricValueList is an autogenerated conversion function.
func Convert_custom_metrics_MetricValue_To_v1beta1_MetricValue ¶
func Convert_custom_metrics_MetricValue_To_v1beta1_MetricValue(in *custom_metrics.MetricValue, out *MetricValue, s conversion.Scope) error
func Convert_v1beta1_MetricListOptions_To_custom_metrics_MetricListOptions ¶
func Convert_v1beta1_MetricListOptions_To_custom_metrics_MetricListOptions(in *MetricListOptions, out *custommetrics.MetricListOptions, s conversion.Scope) error
Convert_v1beta1_MetricListOptions_To_custom_metrics_MetricListOptions is an autogenerated conversion function.
func Convert_v1beta1_MetricValueList_To_custom_metrics_MetricValueList ¶
func Convert_v1beta1_MetricValueList_To_custom_metrics_MetricValueList(in *MetricValueList, out *custommetrics.MetricValueList, s conversion.Scope) error
Convert_v1beta1_MetricValueList_To_custom_metrics_MetricValueList is an autogenerated conversion function.
func Convert_v1beta1_MetricValue_To_custom_metrics_MetricValue ¶
func Convert_v1beta1_MetricValue_To_custom_metrics_MetricValue(in *MetricValue, out *custom_metrics.MetricValue, s conversion.Scope) error
func RegisterConversions ¶
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 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) 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
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"` // the name of the metric MetricName string `json:"metricName" protobuf:"bytes,2,name=metricName"` // 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:"window,omitempty" protobuf:"bytes,4,opt,name=window"` // the value of the metric for this Value resource.Quantity `json:"value" protobuf:"bytes,5,name=value"` // 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,6,opt,name=selector"` }
MetricValue is a 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) 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
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) 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