Documentation

Overview

    Package v1alpha1 is a generated protocol buffer package.

    It is generated from these files:

    k8s.io/kubernetes/vendor/k8s.io/metrics/pkg/apis/custom_metrics/v1alpha1/generated.proto
    

    It has these top-level messages:

    MetricValue
    MetricValueList
    

    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.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")
        )
        View Source
        var (
        	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
        	AddToScheme   = SchemeBuilder.AddToScheme
        )
        View Source
        var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

          SchemeGroupVersion is group version used to register these objects

          Functions

          func Convert_custom_metrics_MetricValueList_To_v1alpha1_MetricValueList

          func Convert_custom_metrics_MetricValueList_To_v1alpha1_MetricValueList(in *custom_metrics.MetricValueList, out *MetricValueList, s conversion.Scope) error

            Convert_custom_metrics_MetricValueList_To_v1alpha1_MetricValueList is an autogenerated conversion function.

            func Convert_custom_metrics_MetricValue_To_v1alpha1_MetricValue

            func Convert_custom_metrics_MetricValue_To_v1alpha1_MetricValue(in *custom_metrics.MetricValue, out *MetricValue, s conversion.Scope) error

              Convert_custom_metrics_MetricValue_To_v1alpha1_MetricValue is an autogenerated conversion function.

              func Convert_v1alpha1_MetricValueList_To_custom_metrics_MetricValueList

              func Convert_v1alpha1_MetricValueList_To_custom_metrics_MetricValueList(in *MetricValueList, out *custom_metrics.MetricValueList, s conversion.Scope) error

                Convert_v1alpha1_MetricValueList_To_custom_metrics_MetricValueList is an autogenerated conversion function.

                func Convert_v1alpha1_MetricValue_To_custom_metrics_MetricValue

                func Convert_v1alpha1_MetricValue_To_custom_metrics_MetricValue(in *MetricValue, out *custom_metrics.MetricValue, s conversion.Scope) error

                  Convert_v1alpha1_MetricValue_To_custom_metrics_MetricValue is an autogenerated conversion function.

                  func DeepCopy_v1alpha1_MetricValue

                  func DeepCopy_v1alpha1_MetricValue(in interface{}, out interface{}, c *conversion.Cloner) error

                    DeepCopy_v1alpha1_MetricValue is an autogenerated deepcopy function.

                    func DeepCopy_v1alpha1_MetricValueList

                    func DeepCopy_v1alpha1_MetricValueList(in interface{}, out interface{}, c *conversion.Cloner) error

                      DeepCopy_v1alpha1_MetricValueList is an autogenerated deepcopy function.

                      func RegisterConversions

                      func RegisterConversions(scheme *runtime.Scheme) error

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

                        func RegisterDeepCopies

                        func RegisterDeepCopies(scheme *runtime.Scheme) error

                          RegisterDeepCopies adds deep-copy 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 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=windowSeconds"`
                            
                            	// 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) CodecDecodeSelf

                              func (x *MetricValue) CodecDecodeSelf(d *codec1978.Decoder)

                              func (*MetricValue) CodecEncodeSelf

                              func (x *MetricValue) CodecEncodeSelf(e *codec1978.Encoder)

                              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) 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) CodecDecodeSelf

                                func (x *MetricValueList) CodecDecodeSelf(d *codec1978.Decoder)

                                func (*MetricValueList) CodecEncodeSelf

                                func (x *MetricValueList) CodecEncodeSelf(e *codec1978.Encoder)

                                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) 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