-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathv2beta1_external_metric_source.go
26 lines (20 loc) · 1.13 KB
/
v2beta1_external_metric_source.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
/*
* 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
// ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one \"target\" type should be set.
type V2beta1ExternalMetricSource struct {
// metricName is the name of the metric in question.
MetricName string `json:"metricName"`
// metricSelector is used to identify a specific time series within a given metric.
MetricSelector *V1LabelSelector `json:"metricSelector,omitempty"`
// targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue.
TargetAverageValue string `json:"targetAverageValue,omitempty"`
// targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue.
TargetValue string `json:"targetValue,omitempty"`
}