Interface CfnAppMonitor.IMetricDestinationProperty
Creates or updates a destination to receive extended metrics from CloudWatch RUM.
Namespace: Amazon.CDK.AWS.RUM
Assembly: Amazon.CDK.AWS.RUM.dll
Syntax (csharp)
public interface IMetricDestinationProperty
Syntax (vb)
Public Interface 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.AWS.RUM;
var metricDestinationProperty = new MetricDestinationProperty {
Destination = "destination",
// the properties below are optional
DestinationArn = "destinationArn",
IamRoleArn = "iamRoleArn",
MetricDefinitions = new [] { new MetricDefinitionProperty {
Name = "name",
// the properties below are optional
DimensionKeys = new Dictionary<string, string> {
{ "dimensionKeysKey", "dimensionKeys" }
},
EventPattern = "eventPattern",
Namespace = "namespace",
UnitLabel = "unitLabel",
ValueKey = "valueKey"
} }
};
Synopsis
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. |
Properties
Destination
Defines the destination to send the metrics to.
string Destination { get; }
Property Value
System.String
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
.
virtual string DestinationArn { get; }
Property Value
System.String
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.
virtual string IamRoleArn { get; }
Property Value
System.String
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.
virtual object MetricDefinitions { get; }
Property Value
System.Object