Class MetricStatus
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.autoscaling.v2beta1.MetricStatus
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class MetricStatus extends java.lang.Object implements com.marcnuri.yakc.model.Model
MetricStatus describes the last-read state of a single metric.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetricStatus.Builder
-
Constructor Summary
Constructors Constructor Description MetricStatus()
MetricStatus(ContainerResourceMetricStatus containerResource, ExternalMetricStatus external, ObjectMetricStatus object, PodsMetricStatus pods, ResourceMetricStatus resource, @NonNull java.lang.String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricStatus.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
ContainerResourceMetricStatus
getContainerResource()
ExternalMetricStatus
getExternal()
ObjectMetricStatus
getObject()
PodsMetricStatus
getPods()
ResourceMetricStatus
getResource()
@NonNull java.lang.String
getType()
type is the type of metric source.int
hashCode()
void
setContainerResource(ContainerResourceMetricStatus containerResource)
void
setExternal(ExternalMetricStatus external)
void
setObject(ObjectMetricStatus object)
void
setPods(PodsMetricStatus pods)
void
setResource(ResourceMetricStatus resource)
void
setType(@NonNull java.lang.String type)
type is the type of metric source.MetricStatus.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
MetricStatus
public MetricStatus(ContainerResourceMetricStatus containerResource, ExternalMetricStatus external, ObjectMetricStatus object, PodsMetricStatus pods, ResourceMetricStatus resource, @NonNull @NonNull java.lang.String type)
-
MetricStatus
public MetricStatus()
-
-
Method Detail
-
builder
public static MetricStatus.Builder builder()
-
toBuilder
public MetricStatus.Builder toBuilder()
-
getContainerResource
public ContainerResourceMetricStatus getContainerResource()
-
getExternal
public ExternalMetricStatus getExternal()
-
getObject
public ObjectMetricStatus getObject()
-
getPods
public PodsMetricStatus getPods()
-
getResource
public ResourceMetricStatus getResource()
-
getType
@NonNull public @NonNull java.lang.String getType()
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
-
setContainerResource
public void setContainerResource(ContainerResourceMetricStatus containerResource)
-
setExternal
public void setExternal(ExternalMetricStatus external)
-
setObject
public void setObject(ObjectMetricStatus object)
-
setPods
public void setPods(PodsMetricStatus pods)
-
setResource
public void setResource(ResourceMetricStatus resource)
-
setType
public void setType(@NonNull @NonNull java.lang.String type)
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
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-