update_metric_content
async
¶
update_metric_content(
instance_id: InstanceId,
metric_id: MetricId,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
metric_calculation: Optional[MetricCalculation] = None,
unit: Optional[MetricUnit] = None,
positive_trend_indicator: Optional[TrendIndicator] = None,
) -> UpdateMetricContentResponse
Updates the calculation, unit, and/or trend indicator of an existing metric in the specified Connect Customer instance.
Parameters:
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
metric_id(MetricId) –The identifier of the metric to update. Adding the
$SAVEDqualifier will update the saved version of the metric. Adding$LATESTor omitting a qualifier will update the published version. -
metric_calculation(Optional[MetricCalculation], default:None) –The updated calculation definition for the metric.
-
unit(Optional[MetricUnit], default:None) –The updated display unit for the metric.
-
positive_trend_indicator(Optional[TrendIndicator], default:None) –How an increase in the metric value should be interpreted. Valid values:
POSITIVE,NEUTRAL,NEGATIVE.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
27513 27514 27515 27516 27517 27518 27519 27520 27521 27522 27523 27524 27525 27526 27527 27528 27529 27530 27531 27532 27533 27534 27535 27536 27537 27538 27539 27540 27541 27542 27543 27544 27545 27546 27547 27548 27549 27550 27551 27552 27553 27554 27555 27556 27557 27558 27559 27560 27561 27562 27563 27564 27565 27566 27567 27568 27569 27570 27571 27572 27573 27574 27575 27576 27577 27578 27579 27580 27581 27582 27583 | |