Package org.cdk8s.plus24.k8s
Interface ObjectMetricSourceV2Beta1
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ObjectMetricSourceV2Beta1.Jsii$Proxy
@Generated(value="jsii-pacmak/1.80.0 (build bce6a1d)", date="2023-05-05T16:22:34.191Z") @Stability(Stable) public interface ObjectMetricSourceV2Beta1 extends software.amazon.jsii.JsiiSerializable
ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ObjectMetricSourceV2Beta1.Builder
A builder forObjectMetricSourceV2Beta1
static class
ObjectMetricSourceV2Beta1.Jsii$Proxy
An implementation forObjectMetricSourceV2Beta1
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ObjectMetricSourceV2Beta1.Builder
builder()
default Quantity
getAverageValue()
averageValue is the target value of the average of the metric across all relevant pods (as a quantity).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.CrossVersionObjectReferenceV2Beta1
getTarget()
target is the described Kubernetes object.Quantity
getTargetValue()
targetValue is the target value of the metric (as a quantity).
-
-
-
Method Detail
-
getMetricName
@Stability(Stable) @NotNull String getMetricName()
metricName is the name of the metric in question.
-
getTarget
@Stability(Stable) @NotNull CrossVersionObjectReferenceV2Beta1 getTarget()
target is the described Kubernetes object.
-
getTargetValue
@Stability(Stable) @NotNull Quantity getTargetValue()
targetValue is the target value of the metric (as a quantity).
-
getAverageValue
@Stability(Stable) @Nullable default Quantity getAverageValue()
averageValue 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 ObjectMetricSourceV2Beta1.Builder builder()
- Returns:
- a
ObjectMetricSourceV2Beta1.Builder
ofObjectMetricSourceV2Beta1
-
-