io.k8s.api.autoscaling.v2.ObjectMetricSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s129 Show documentation
Show all versions of bl-k8s129 Show documentation
Programmatic resource management for Kubernetes
The newest version!
package io.k8s.api.autoscaling.v2;
/**
* ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
*/
public class ObjectMetricSource {
public CrossVersionObjectReference describedObject;
public MetricIdentifier metric;
public MetricTarget target;
public ObjectMetricSource describedObject(CrossVersionObjectReference describedObject) {
this.describedObject = describedObject;
return this;
}
public ObjectMetricSource metric(MetricIdentifier metric) {
this.metric = metric;
return this;
}
public ObjectMetricSource target(MetricTarget target) {
this.target = target;
return this;
}
public static ObjectMetricSource objectMetricSource() {
return new ObjectMetricSource();
}
}