Package org.cdk8s.plus24
Interface MetricOptions
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
MetricObjectOptions
- All Known Implementing Classes:
MetricObjectOptions.Jsii$Proxy
,MetricOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.75.0 (build 63bb957)", date="2023-02-20T02:42:01.890Z") @Stability(Stable) public interface MetricOptions extends software.amazon.jsii.JsiiSerializable
Base options for a Metric.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MetricOptions.Builder
A builder forMetricOptions
static class
MetricOptions.Jsii$Proxy
An implementation forMetricOptions
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static MetricOptions.Builder
builder()
default LabelSelector
getLabelSelector()
A selector to find a metric by label.String
getName()
The name of the metric to scale on.MetricTarget
getTarget()
The target metric value that will trigger scaling.
-
-
-
Method Detail
-
getName
@Stability(Stable) @NotNull String getName()
The name of the metric to scale on.
-
getTarget
@Stability(Stable) @NotNull MetricTarget getTarget()
The target metric value that will trigger scaling.
-
getLabelSelector
@Stability(Stable) @Nullable default LabelSelector getLabelSelector()
A selector to find a metric by label.When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
Default: - Just the metric 'name' will be used to gather metrics.
-
builder
@Stability(Stable) static MetricOptions.Builder builder()
- Returns:
- a
MetricOptions.Builder
ofMetricOptions
-
-