Documentation ¶
Overview ¶
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:
MetricValue MetricValueList
Index ¶
- Constants
- Variables
- func Convert_custom_metrics_MetricValueList_To_v1beta1_MetricValueList(in *custom_metrics.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_MetricValueList_To_custom_metrics_MetricValueList(in *MetricValueList, out *custom_metrics.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(scheme *runtime.Scheme) error
- func RegisterDeepCopies(scheme *runtime.Scheme) errordeprecated
- func Resource(resource string) schema.GroupResource
- 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 = runtime.NewSchemeBuilder(addKnownTypes) 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_MetricValueList_To_v1beta1_MetricValueList ¶
func Convert_custom_metrics_MetricValueList_To_v1beta1_MetricValueList(in *custom_metrics.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
Convert_custom_metrics_MetricValue_To_v1beta1_MetricValue is an autogenerated conversion function.
func Convert_v1beta1_MetricValueList_To_custom_metrics_MetricValueList ¶
func Convert_v1beta1_MetricValueList_To_custom_metrics_MetricValueList(in *MetricValueList, out *custom_metrics.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
Convert_v1beta1_MetricValue_To_custom_metrics_MetricValue is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDeepCopies
deprecated
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
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"` }
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"` }
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