update_rum_metric_definition
¶
update_rum_metric_definition(
app_monitor_name: AppMonitorName,
destination: MetricDestination,
metric_definition: MetricDefinitionRequest,
metric_definition_id: MetricDefinitionId,
*,
config_overrides: Optional[RUMClientConfig] = None,
destination_arn: Optional[DestinationArn] = None,
) -> UpdateRumMetricDefinitionResponse
Modifies one existing metric definition for CloudWatch RUM extended metrics. For more information about extended metrics, see BatchCreateRumMetricsDefinitions.
Parameters:
-
app_monitor_name(AppMonitorName) –The name of the CloudWatch RUM app monitor that sends these metrics.
-
destination(MetricDestination) –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 will receive the metrics and an IAM role that has permission to write to the experiment. -
destination_arn(Optional[DestinationArn], default:None) –This parameter is required if
DestinationisEvidently. IfDestinationisCloudWatch, do not use this parameter.This parameter specifies the ARN of the Evidently experiment that is to receive the metrics. You must have already defined this experiment as a valid destination. For more information, see PutRumMetricsDestination.
-
metric_definition(MetricDefinitionRequest) –A structure that contains the new definition that you want to use for this metric.
-
metric_definition_id(MetricDefinitionId) –The ID of the metric definition to update.
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.
-
ServiceQuotaExceededException–This request exceeds a service quota.
-
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
1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 | |