/AWS1/IF_RUM=>PUTRUMMETRICSDESTINATION()¶
About PutRumMetricsDestination¶
Creates or updates a destination to receive extended metrics from CloudWatch RUM. You can send extended metrics to CloudWatch or to a CloudWatch Evidently experiment.
For more information about extended metrics, see BatchCreateRumMetricDefinitions.
Method Signature¶
METHODS /AWS1/IF_RUM~PUTRUMMETRICSDESTINATION
IMPORTING
!IV_APPMONITORNAME TYPE /AWS1/RUMAPPMONITORNAME OPTIONAL
!IV_DESTINATION TYPE /AWS1/RUMMETRICDESTINATION OPTIONAL
!IV_DESTINATIONARN TYPE /AWS1/RUMDESTINATIONARN OPTIONAL
!IV_IAMROLEARN TYPE /AWS1/RUMIAMROLEARN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rumputrummetdstrsp
RAISING
/AWS1/CX_RUMACCESSDENIEDEX
/AWS1/CX_RUMCONFLICTEXCEPTION
/AWS1/CX_RUMINTERNALSERVEREX
/AWS1/CX_RUMRESOURCENOTFOUNDEX
/AWS1/CX_RUMTHROTTLINGEX
/AWS1/CX_RUMVALIDATIONEX
/AWS1/CX_RUMCLIENTEXC
/AWS1/CX_RUMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_appmonitorname TYPE /AWS1/RUMAPPMONITORNAME /AWS1/RUMAPPMONITORNAME¶
The name of the CloudWatch RUM app monitor that will send the metrics.
iv_destination TYPE /AWS1/RUMMETRICDESTINATION /AWS1/RUMMETRICDESTINATION¶
Defines the destination to send the metrics to. Valid values are
CloudWatchandEvidently. If you specifyEvidently, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment.
Optional arguments:¶
iv_destinationarn TYPE /AWS1/RUMDESTINATIONARN /AWS1/RUMDESTINATIONARN¶
Use this parameter only if
DestinationisEvidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics.
iv_iamrolearn TYPE /AWS1/RUMIAMROLEARN /AWS1/RUMIAMROLEARN¶
This parameter is required if
DestinationisEvidently. IfDestinationisCloudWatch, don't 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.
If you specify this parameter, you must be signed on to a role that has PassRole permissions attached to it, to allow the role to be passed. The CloudWatchAmazonCloudWatchRUMFullAccess policy doesn't include
PassRolepermissions.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_rumputrummetdstrsp /AWS1/CL_RUMPUTRUMMETDSTRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->putrummetricsdestination(
iv_appmonitorname = |string|
iv_destination = |string|
iv_destinationarn = |string|
iv_iamrolearn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.