Class ResourceMetricSource
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.autoscaling.v2.ResourceMetricSource
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class ResourceMetricSource extends java.lang.Object implements com.marcnuri.yakc.model.Model
ResourceMetricSource 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
ResourceMetricSource.Builder
-
Constructor Summary
Constructors Constructor Description ResourceMetricSource()
ResourceMetricSource(@NonNull java.lang.String name, @NonNull MetricTarget target)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceMetricSource.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.String
getName()
name is the name of the resource in question.@NonNull MetricTarget
getTarget()
int
hashCode()
void
setName(@NonNull java.lang.String name)
name is the name of the resource in question.void
setTarget(@NonNull MetricTarget target)
ResourceMetricSource.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ResourceMetricSource
public ResourceMetricSource(@NonNull @NonNull java.lang.String name, @NonNull @NonNull MetricTarget target)
-
ResourceMetricSource
public ResourceMetricSource()
-
-
Method Detail
-
builder
public static ResourceMetricSource.Builder builder()
-
toBuilder
public ResourceMetricSource.Builder toBuilder()
-
getName
@NonNull public @NonNull java.lang.String getName()
name is the name of the resource in question.
-
getTarget
@NonNull public @NonNull MetricTarget getTarget()
-
setName
public void setName(@NonNull @NonNull java.lang.String name)
name is the name of the resource in question.
-
setTarget
public void setTarget(@NonNull @NonNull MetricTarget target)
-
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
-
-