-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathv2beta1_metric_status.go
29 lines (22 loc) · 1.71 KB
/
v2beta1_metric_status.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Kubernetes
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: v1.10.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
// MetricStatus describes the last-read state of a single metric.
type V2beta1MetricStatus struct {
// external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
External *V2beta1ExternalMetricStatus `json:"external,omitempty"`
// object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).
Object *V2beta1ObjectMetricStatus `json:"object,omitempty"`
// pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
Pods *V2beta1PodsMetricStatus `json:"pods,omitempty"`
// resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.
Resource *V2beta1ResourceMetricStatus `json:"resource,omitempty"`
// type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.
Type_ string `json:"type"`
}