Interface CfnAppMonitor.MetricDestinationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAppMonitor.MetricDestinationProperty.Jsii$Proxy
- Enclosing class:
- CfnAppMonitor
You can send extended metrics to CloudWatch or to a CloudWatch Evidently experiment.
For more information about extended metrics, see Extended metrics that you can send to CloudWatch and CloudWatch Evidently .
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.rum.*;
MetricDestinationProperty metricDestinationProperty = MetricDestinationProperty.builder()
.destination("destination")
// the properties below are optional
.destinationArn("destinationArn")
.iamRoleArn("iamRoleArn")
.metricDefinitions(List.of(MetricDefinitionProperty.builder()
.name("name")
// the properties below are optional
.dimensionKeys(Map.of(
"dimensionKeysKey", "dimensionKeys"))
.eventPattern("eventPattern")
.namespace("namespace")
.unitLabel("unitLabel")
.valueKey("valueKey")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAppMonitor.MetricDestinationPropertystatic final classAn implementation forCfnAppMonitor.MetricDestinationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Defines the destination to send the metrics to.default StringUse this parameter only ifDestinationisEvidently.default StringThis parameter is required ifDestinationisEvidently.default ObjectAn array of structures which define the metrics that you want to send.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDestination
Defines the destination to send the metrics to.Valid values are
CloudWatchandEvidently. If you specifyEvidently, you must also specify the ARN of the CloudWatch Evidently experiment that is to be the destination and an IAM role that has permission to write to the experiment. -
getDestinationArn
Use this parameter only ifDestinationisEvidently.This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics.
-
getIamRoleArn
This parameter is required ifDestinationisEvidently. IfDestinationisCloudWatch, do not use this parameter.This parameter specifies the ARN of an IAM role that RUM will assume to write to the Evidently experiment that you are sending metrics to. This role must have permission to write to that experiment.
-
getMetricDefinitions
An array of structures which define the metrics that you want to send. -
builder
-