Files
go/kubernetes/client/v2beta1_external_metric_source.go
Haowei Cai 6181687d2e Generated API change for kubernetes 1.10
Settings:
    export KUBERNETES_BRANCH="release-1.10"
    export CLIENT_VERSION="0.1.0a1"
    export PACKAGE_NAME="client"
2018-03-21 14:15:19 -07:00

27 lines
1.1 KiB
Go

/*
* 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"`
}