Class ResourceMetricStatus
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.autoscaling.v2beta1.ResourceMetricStatus
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class ResourceMetricStatus extends java.lang.Object implements com.marcnuri.yakc.model.Model
ResourceMetricStatus indicates the current value of 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). 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
ResourceMetricStatus.Builder
-
Constructor Summary
Constructors Constructor Description ResourceMetricStatus()
ResourceMetricStatus(java.lang.Number currentAverageUtilization, @NonNull java.lang.String currentAverageValue, @NonNull java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceMetricStatus.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.Number
getCurrentAverageUtilization()
currentAverageUtilization is the current 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.@NonNull java.lang.String
getCurrentAverageValue()
@NonNull java.lang.String
getName()
name is the name of the resource in question.int
hashCode()
void
setCurrentAverageUtilization(java.lang.Number currentAverageUtilization)
currentAverageUtilization is the current 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
setCurrentAverageValue(@NonNull java.lang.String currentAverageValue)
void
setName(@NonNull java.lang.String name)
name is the name of the resource in question.ResourceMetricStatus.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static ResourceMetricStatus.Builder builder()
-
toBuilder
public ResourceMetricStatus.Builder toBuilder()
-
getCurrentAverageUtilization
public java.lang.Number getCurrentAverageUtilization()
currentAverageUtilization is the current 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. It will only be present if `targetAverageValue` was set in the corresponding metric specification.
-
getCurrentAverageValue
@NonNull public @NonNull java.lang.String getCurrentAverageValue()
-
getName
@NonNull public @NonNull java.lang.String getName()
name is the name of the resource in question.
-
setCurrentAverageUtilization
public void setCurrentAverageUtilization(java.lang.Number currentAverageUtilization)
currentAverageUtilization is the current 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. It will only be present if `targetAverageValue` was set in the corresponding metric specification.
-
setCurrentAverageValue
public void setCurrentAverageValue(@NonNull @NonNull java.lang.String currentAverageValue)
-
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
-
-