Interface CfnMetricProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnMetricProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:06.938Z")
@Stability(Stable)
public interface CfnMetricProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnMetric.
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.connect.*;
CfnMetricProps cfnMetricProps = CfnMetricProps.builder()
.instanceArn("instanceArn")
// the properties below are optional
.description("description")
.metricCalculation(MetricCalculationProperty.builder()
.calculation("calculation")
.calculationComponents(List.of(CalculationComponentProperty.builder()
.alias("alias")
// the properties below are optional
.metricFilters(List.of(MetricFilterProperty.builder()
.metricFilterKey("metricFilterKey")
// the properties below are optional
.booleanCondition(MetricFilterBooleanConditionProperty.builder()
.comparison("comparison")
.build())
.negate(false)
.numberCondition(MetricFilterNumberConditionProperty.builder()
.comparison("comparison")
.values(List.of(123))
.build())
.stringCondition(MetricFilterStringConditionProperty.builder()
.comparison("comparison")
.values(List.of("values"))
.build())
.build()))
.metricId("metricId")
.metricName("metricName")
.build()))
.build())
.name("name")
.positiveTrendIndicator("positiveTrendIndicator")
.status("status")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.unit("unit")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnMetricPropsstatic final classAn implementation forCfnMetricProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnMetricProps.Builderbuilder()default StringThe description of the custom metric.The identifier of the Amazon Connect instance.default ObjectThe calculation configuration for the metric.default StringgetName()The name of the custom metric.default StringIndicates how to classify a positive trend in metric data on the UI.default StringThe status of the custom metric.getTags()One or more tags.default StringgetUnit()Display unit for the metric data.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstanceArn
The identifier of the Amazon Connect instance.- See Also:
-
getDescription
The description of the custom metric.- See Also:
-
getMetricCalculation
The calculation configuration for the metric.Returns union: either
IResolvableorCfnMetric.MetricCalculationProperty- See Also:
-
getName
The name of the custom metric.- See Also:
-
getPositiveTrendIndicator
Indicates how to classify a positive trend in metric data on the UI.- See Also:
-
getStatus
The status of the custom metric.- See Also:
-
getTags
One or more tags.- See Also:
-
getUnit
Display unit for the metric data.- See Also:
-
builder
- Returns:
- a
CfnMetricProps.BuilderofCfnMetricProps
-