Class ContainerResourceMetricSource
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.autoscaling.v2beta1.ContainerResourceMetricSource
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class ContainerResourceMetricSource extends java.lang.Object implements com.marcnuri.yakc.model.Model
ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. 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. Only one "target" type should be set.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContainerResourceMetricSource.Builder
-
Constructor Summary
Constructors Constructor Description ContainerResourceMetricSource()
ContainerResourceMetricSource(@NonNull java.lang.String container, @NonNull java.lang.String name, java.lang.Number targetAverageUtilization, java.lang.String targetAverageValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContainerResourceMetricSource.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 java.lang.String
getName()
name is the name of the resource in question.java.lang.Number
getTargetAverageUtilization()
targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.java.lang.String
getTargetAverageValue()
int
hashCode()
void
setContainer(@NonNull java.lang.String container)
container is the name of the container in the pods of the scaling targetvoid
setName(@NonNull java.lang.String name)
name is the name of the resource in question.void
setTargetAverageUtilization(java.lang.Number targetAverageUtilization)
targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.void
setTargetAverageValue(java.lang.String targetAverageValue)
ContainerResourceMetricSource.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ContainerResourceMetricSource
public ContainerResourceMetricSource(@NonNull @NonNull java.lang.String container, @NonNull @NonNull java.lang.String name, java.lang.Number targetAverageUtilization, java.lang.String targetAverageValue)
-
ContainerResourceMetricSource
public ContainerResourceMetricSource()
-
-
Method Detail
-
builder
public static ContainerResourceMetricSource.Builder builder()
-
toBuilder
public ContainerResourceMetricSource.Builder toBuilder()
-
getContainer
@NonNull public @NonNull java.lang.String getContainer()
container is the name of the container in the pods of the scaling target
-
getName
@NonNull public @NonNull java.lang.String getName()
name is the name of the resource in question.
-
getTargetAverageUtilization
public java.lang.Number getTargetAverageUtilization()
targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.
-
getTargetAverageValue
public java.lang.String getTargetAverageValue()
-
setContainer
public void setContainer(@NonNull @NonNull java.lang.String container)
container is the name of the container in the pods of the scaling target
-
setName
public void setName(@NonNull @NonNull java.lang.String name)
name is the name of the resource in question.
-
setTargetAverageUtilization
public void setTargetAverageUtilization(java.lang.Number targetAverageUtilization)
targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.
-
setTargetAverageValue
public void setTargetAverageValue(java.lang.String targetAverageValue)
-
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
-
-