Class MetricTarget.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.autoscaling.v2beta2.MetricTarget.Builder
-
- Enclosing class:
- MetricTarget
public static class MetricTarget.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricTarget.Builder
averageUtilization(java.lang.Number averageUtilization)
averageUtilization 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.MetricTarget.Builder
averageValue(java.lang.String averageValue)
MetricTarget
build()
java.lang.String
toString()
MetricTarget.Builder
type(@NonNull java.lang.String type)
type represents whether the metric type is Utilization, Value, or AverageValueMetricTarget.Builder
value(java.lang.String value)
-
-
-
Method Detail
-
averageUtilization
public MetricTarget.Builder averageUtilization(java.lang.Number averageUtilization)
averageUtilization 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. Currently only valid for Resource metric source type- Returns:
this
.
-
averageValue
public MetricTarget.Builder averageValue(java.lang.String averageValue)
- Returns:
this
.
-
type
public MetricTarget.Builder type(@NonNull @NonNull java.lang.String type)
type represents whether the metric type is Utilization, Value, or AverageValue- Returns:
this
.
-
value
public MetricTarget.Builder value(java.lang.String value)
- Returns:
this
.
-
build
public MetricTarget build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-