Package org.cdk8s.plus24.k8s
Interface PodsMetricSourceV2Beta1
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PodsMetricSourceV2Beta1.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-07-08T00:25:14.626Z") @Stability(Stable) public interface PodsMetricSourceV2Beta1 extends software.amazon.jsii.JsiiSerializable
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 Interface Description static class
PodsMetricSourceV2Beta1.Builder
A builder forPodsMetricSourceV2Beta1
static class
PodsMetricSourceV2Beta1.Jsii$Proxy
An implementation forPodsMetricSourceV2Beta1
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static PodsMetricSourceV2Beta1.Builder
builder()
String
getMetricName()
metricName is the name of the metric in question.default LabelSelector
getSelector()
selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.Quantity
getTargetAverageValue()
targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity).
-
-
-
Method Detail
-
getMetricName
@Stability(Stable) @NotNull String getMetricName()
metricName is the name of the metric in question.
-
getTargetAverageValue
@Stability(Stable) @NotNull Quantity getTargetAverageValue()
targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity).
-
getSelector
@Stability(Stable) @Nullable default LabelSelector getSelector()
selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.
-
builder
@Stability(Stable) static PodsMetricSourceV2Beta1.Builder builder()
- Returns:
- a
PodsMetricSourceV2Beta1.Builder
ofPodsMetricSourceV2Beta1
-
-