Class PodsMetricSource
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.autoscaling.v2beta1.PodsMetricSource
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class PodsMetricSource extends java.lang.Object implements com.marcnuri.yakc.model.Model
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PodsMetricSource.Builder
-
Constructor Summary
Constructors Constructor Description PodsMetricSource()
PodsMetricSource(@NonNull java.lang.String metricName, LabelSelector selector, @NonNull java.lang.String targetAverageValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PodsMetricSource.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.String
getMetricName()
metricName is the name of the metric in questionLabelSelector
getSelector()
@NonNull java.lang.String
getTargetAverageValue()
int
hashCode()
void
setMetricName(@NonNull java.lang.String metricName)
metricName is the name of the metric in questionvoid
setSelector(LabelSelector selector)
void
setTargetAverageValue(@NonNull java.lang.String targetAverageValue)
PodsMetricSource.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
PodsMetricSource
public PodsMetricSource(@NonNull @NonNull java.lang.String metricName, LabelSelector selector, @NonNull @NonNull java.lang.String targetAverageValue)
-
PodsMetricSource
public PodsMetricSource()
-
-
Method Detail
-
builder
public static PodsMetricSource.Builder builder()
-
toBuilder
public PodsMetricSource.Builder toBuilder()
-
getMetricName
@NonNull public @NonNull java.lang.String getMetricName()
metricName is the name of the metric in question
-
getSelector
public LabelSelector getSelector()
-
getTargetAverageValue
@NonNull public @NonNull java.lang.String getTargetAverageValue()
-
setMetricName
public void setMetricName(@NonNull @NonNull java.lang.String metricName)
metricName is the name of the metric in question
-
setSelector
public void setSelector(LabelSelector selector)
-
setTargetAverageValue
public void setTargetAverageValue(@NonNull @NonNull 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
-
-