![JAR search and dependency download from the Maven repository](/logo.png)
io.k8s.api.autoscaling.v2.MetricStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s130 Show documentation
Show all versions of bl-k8s130 Show documentation
Programmatic resource management for Kubernetes
package io.k8s.api.autoscaling.v2;
import java.lang.String;
/**
* MetricStatus describes the last-read state of a single metric.
*/
public class MetricStatus {
public ContainerResourceMetricStatus containerResource;
public ExternalMetricStatus external;
public ObjectMetricStatus object;
public PodsMetricStatus pods;
public ResourceMetricStatus resource;
public String type;
public MetricStatus containerResource(ContainerResourceMetricStatus containerResource) {
this.containerResource = containerResource;
return this;
}
public MetricStatus external(ExternalMetricStatus external) {
this.external = external;
return this;
}
public MetricStatus object(ObjectMetricStatus object) {
this.object = object;
return this;
}
public MetricStatus pods(PodsMetricStatus pods) {
this.pods = pods;
return this;
}
public MetricStatus resource(ResourceMetricStatus resource) {
this.resource = resource;
return this;
}
/**
* type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
*/
public MetricStatus type(String type) {
this.type = type;
return this;
}
public static MetricStatus metricStatus() {
return new MetricStatus();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy