Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package,register +groupName=custom.metrics.k8s.io
Index ¶
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 ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func RegisterDeepCopies
deprecated
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns back a Group qualified GroupResource
Types ¶
type MetricValue ¶
type MetricValue struct { metav1.TypeMeta `json:",inline"` // a reference to the described object DescribedObject ObjectReference `json:"describedObject"` // the name of the metric MetricName string `json:"metricName"` // indicates the time at which the metrics were produced Timestamp metav1.Time `json:"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"` // the value of the metric for this Value resource.Quantity `json:"value"` }
a metric value for some object
func (*MetricValue) DeepCopy ¶ added in v1.8.0
func (in *MetricValue) DeepCopy() *MetricValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricValue.
func (*MetricValue) DeepCopyInto ¶ added in v1.8.0
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 ¶ added in v1.8.0
func (in *MetricValue) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetricValueList ¶
type MetricValueList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // the value of the metric across the described objects Items []MetricValue `json:"items"` }
a list of values for a given metric for some set of objects
func (*MetricValueList) DeepCopy ¶ added in v1.8.0
func (in *MetricValueList) DeepCopy() *MetricValueList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricValueList.
func (*MetricValueList) DeepCopyInto ¶ added in v1.8.0
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 ¶ added in v1.8.0
func (in *MetricValueList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ObjectReference ¶
type ObjectReference struct { Kind string Namespace string Name string UID types.UID APIVersion string ResourceVersion string FieldPath string }
ObjectReference contains enough information to let you inspect or modify the referred object.
func (*ObjectReference) DeepCopy ¶ added in v1.8.0
func (in *ObjectReference) DeepCopy() *ObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
func (*ObjectReference) DeepCopyInto ¶ added in v1.8.0
func (in *ObjectReference) DeepCopyInto(out *ObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Directories ¶
Path | Synopsis |
---|---|
Package install installs the experimental API group, making it available as an option to all of the API encoding/decoding machinery.
|
Package install installs the experimental API group, making it available as an option to all of the API encoding/decoding machinery. |
Package v1beta1 is a generated protocol buffer package.
|
Package v1beta1 is a generated protocol buffer package. |