Class CfnAppMonitorPropsMixin.MetricDestinationProperty
Creates or updates a destination to receive extended metrics from CloudWatch RUM.
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.RUM
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnAppMonitorPropsMixin.MetricDestinationProperty : CfnAppMonitorPropsMixin.IMetricDestinationProperty
Syntax (vb)
Public Class CfnAppMonitorPropsMixin.MetricDestinationProperty Implements CfnAppMonitorPropsMixin.IMetricDestinationProperty
Remarks
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 .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.RUM;
var metricDestinationProperty = new MetricDestinationProperty {
Destination = "destination",
DestinationArn = "destinationArn",
IamRoleArn = "iamRoleArn",
MetricDefinitions = new [] { new MetricDefinitionProperty {
DimensionKeys = new Dictionary<string, string> {
{ "dimensionKeysKey", "dimensionKeys" }
},
EventPattern = "eventPattern",
Name = "name",
Namespace = "namespace",
UnitLabel = "unitLabel",
ValueKey = "valueKey"
} }
};
Synopsis
Constructors
| MetricDestinationProperty() | Creates or updates a destination to receive extended metrics from CloudWatch RUM. |
Properties
| Destination | Defines the destination to send the metrics to. |
| DestinationArn | Use this parameter only if |
| IamRoleArn | This parameter is required if |
| MetricDefinitions | An array of structures which define the metrics that you want to send. |
Constructors
MetricDestinationProperty()
Creates or updates a destination to receive extended metrics from CloudWatch RUM.
public MetricDestinationProperty()
Remarks
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 .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.RUM;
var metricDestinationProperty = new MetricDestinationProperty {
Destination = "destination",
DestinationArn = "destinationArn",
IamRoleArn = "iamRoleArn",
MetricDefinitions = new [] { new MetricDefinitionProperty {
DimensionKeys = new Dictionary<string, string> {
{ "dimensionKeysKey", "dimensionKeys" }
},
EventPattern = "eventPattern",
Name = "name",
Namespace = "namespace",
UnitLabel = "unitLabel",
ValueKey = "valueKey"
} }
};
Properties
Destination
Defines the destination to send the metrics to.
public string? Destination { get; set; }
Property Value
Remarks
Valid values are CloudWatch and Evidently . If you specify Evidently , 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.
DestinationArn
Use this parameter only if Destination is Evidently .
public string? DestinationArn { get; set; }
Property Value
Remarks
This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics.
IamRoleArn
This parameter is required if Destination is Evidently . If Destination is CloudWatch , do not use this parameter.
public string? IamRoleArn { get; set; }
Property Value
Remarks
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.
MetricDefinitions
An array of structures which define the metrics that you want to send.
public object? MetricDefinitions { get; set; }