update_metric_content
¶
update_metric_content(
instance_id: InstanceId,
metric_id: MetricId,
*,
config_overrides: Optional[ConnectClientConfig] = 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/connect.py
26905 26906 26907 26908 26909 26910 26911 26912 26913 26914 26915 26916 26917 26918 26919 26920 26921 26922 26923 26924 26925 26926 26927 26928 26929 26930 26931 26932 26933 26934 26935 26936 26937 26938 26939 26940 26941 26942 26943 26944 26945 26946 26947 26948 26949 26950 26951 26952 26953 26954 26955 26956 26957 26958 26959 26960 26961 26962 26963 26964 26965 26966 26967 26968 26969 26970 26971 26972 26973 26974 | |