get_ecs_service_recommendation_projected_metrics
¶
get_ecs_service_recommendation_projected_metrics(
service_arn: ServiceArn,
stat: MetricStatistic,
period: Period,
start_time: Timestamp,
end_time: Timestamp,
*,
config_overrides: Optional[ComputeOptimizerClientConfig] = None,
) -> GetECSServiceRecommendationProjectedMetricsResponse
Returns the projected metrics of Amazon ECS service recommendations.
Parameters:
-
service_arn(ServiceArn) –The ARN that identifies the Amazon ECS service.
The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name -
stat(MetricStatistic) –The statistic of the projected metrics.
-
period(Period) –The granularity, in seconds, of the projected metrics data points.
-
start_time(Timestamp) –The timestamp of the first projected metrics data point to return.
-
end_time(Timestamp) –The timestamp of the last projected metrics data point to return.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–An internal error has occurred. Try your call again.
-
InvalidParameterValueException–The value supplied for the input parameter is out of range or not valid.
-
MissingAuthenticationToken–The request must contain either a valid (registered) Amazon Web Services access key ID or X.509 certificate.
-
OptInRequiredException–The account is not opted in to Compute Optimizer.
-
ResourceNotFoundException–A resource that is required for the action doesn't exist.
-
ServiceUnavailableException–The request has failed due to a temporary failure of the server.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_compute_optimizer/_services/compute_optimizer.py
1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 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 | |