Class PodsMetricSource
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.autoscaling.v2beta2.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 MetricIdentifier metric, @NonNull MetricTarget target)
-
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 MetricIdentifier
getMetric()
@NonNull MetricTarget
getTarget()
int
hashCode()
void
setMetric(@NonNull MetricIdentifier metric)
void
setTarget(@NonNull MetricTarget target)
PodsMetricSource.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
PodsMetricSource
public PodsMetricSource(@NonNull @NonNull MetricIdentifier metric, @NonNull @NonNull MetricTarget target)
-
PodsMetricSource
public PodsMetricSource()
-
-
Method Detail
-
builder
public static PodsMetricSource.Builder builder()
-
toBuilder
public PodsMetricSource.Builder toBuilder()
-
getMetric
@NonNull public @NonNull MetricIdentifier getMetric()
-
getTarget
@NonNull public @NonNull MetricTarget getTarget()
-
setMetric
public void setMetric(@NonNull @NonNull MetricIdentifier metric)
-
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
-
-