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
27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 | |