Interface CfnServiceLevelObjective.MetricProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnServiceLevelObjective.MetricProperty.Jsii$Proxy
- Enclosing class:
CfnServiceLevelObjective
@Stability(Stable)
public static interface CfnServiceLevelObjective.MetricProperty
extends software.amazon.jsii.JsiiSerializable
This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.applicationsignals.*;
MetricProperty metricProperty = MetricProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnServiceLevelObjective.MetricPropertystatic final classAn implementation forCfnServiceLevelObjective.MetricProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDimensions
An array of one or more dimensions to use to define the metric that you want to use.For more information, see Dimensions .
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnServiceLevelObjective.DimensionProperty>- See Also:
-
getMetricName
The name of the metric to use.- See Also:
-
getNamespace
The namespace of the metric.For more information, see Namespaces .
- See Also:
-
builder
-