Class ContainerResourceMetricStatus
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricStatus
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class ContainerResourceMetricStatus extends java.lang.Object implements com.marcnuri.yakc.model.Model
ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContainerResourceMetricStatus.Builder
-
Constructor Summary
Constructors Constructor Description ContainerResourceMetricStatus()
ContainerResourceMetricStatus(@NonNull java.lang.String container, @NonNull MetricValueStatus current, @NonNull java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContainerResourceMetricStatus.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.String
getContainer()
Container is the name of the container in the pods of the scaling target@NonNull MetricValueStatus
getCurrent()
@NonNull java.lang.String
getName()
Name is the name of the resource in question.int
hashCode()
void
setContainer(@NonNull java.lang.String container)
Container is the name of the container in the pods of the scaling targetvoid
setCurrent(@NonNull MetricValueStatus current)
void
setName(@NonNull java.lang.String name)
Name is the name of the resource in question.ContainerResourceMetricStatus.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ContainerResourceMetricStatus
public ContainerResourceMetricStatus(@NonNull @NonNull java.lang.String container, @NonNull @NonNull MetricValueStatus current, @NonNull @NonNull java.lang.String name)
-
ContainerResourceMetricStatus
public ContainerResourceMetricStatus()
-
-
Method Detail
-
builder
public static ContainerResourceMetricStatus.Builder builder()
-
toBuilder
public ContainerResourceMetricStatus.Builder toBuilder()
-
getContainer
@NonNull public @NonNull java.lang.String getContainer()
Container is the name of the container in the pods of the scaling target
-
getCurrent
@NonNull public @NonNull MetricValueStatus getCurrent()
-
getName
@NonNull public @NonNull java.lang.String getName()
Name is the name of the resource in question.
-
setContainer
public void setContainer(@NonNull @NonNull java.lang.String container)
Container is the name of the container in the pods of the scaling target
-
setCurrent
public void setCurrent(@NonNull @NonNull MetricValueStatus current)
-
setName
public void setName(@NonNull @NonNull java.lang.String name)
Name is the name of the resource in question.
-
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
-
-