put_rum_metrics_destination
¶
put_rum_metrics_destination(
app_monitor_name: AppMonitorName,
destination: MetricDestination,
*,
config_overrides: Optional[RUMClientConfig] = None,
destination_arn: Optional[DestinationArn] = None,
iam_role_arn: Optional[IamRoleArn] = None,
) -> PutRumMetricsDestinationResponse
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.
Parameters:
-
app_monitor_name(AppMonitorName) –The name of the CloudWatch RUM app monitor that will send the metrics.
-
destination(MetricDestination) –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. -
destination_arn(Optional[DestinationArn], default:None) –Use this parameter only if
DestinationisEvidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics. -
iam_role_arn(Optional[IamRoleArn], default:None) –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.
Raises:
-
AccessDeniedException–You don't have sufficient permissions to perform this action.
-
ConflictException–This operation attempted to create a resource that already exists.
-
InternalServerException–Internal service exception.
-
ResourceNotFoundException–Resource not found.
-
ThrottlingException–The request was throttled because of quota limits.
-
ValidationException–One of the arguments for the request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_rum/_services/rum.py
1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 | |