Package org.cdk8s.plus25
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.88.0 (build eaabd08)", date="2023-09-11T06:17:58.359Z") @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 classMetricOptions.BuilderA builder forMetricOptionsstatic classMetricOptions.Jsii$ProxyAn implementation forMetricOptions
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static MetricOptions.Builderbuilder()default LabelSelectorgetLabelSelector()A selector to find a metric by label.StringgetName()The name of the metric to scale on.MetricTargetgetTarget()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.BuilderofMetricOptions
-
-