get_rds_database_recommendation_projected_metrics
¶
get_rds_database_recommendation_projected_metrics(
resource_arn: ResourceArn,
stat: MetricStatistic,
period: Period,
start_time: Timestamp,
end_time: Timestamp,
*,
config_overrides: Optional[ComputeOptimizerClientConfig] = None,
recommendation_preferences: Optional[RecommendationPreferences] = None,
) -> GetRDSDatabaseRecommendationProjectedMetricsResponse
Returns the projected metrics of Aurora and RDS database recommendations.
Parameters:
-
resource_arn(ResourceArn) –The ARN that identifies the Amazon Aurora or RDS database.
The following is the format of the ARN:
arn:aws:rds:{region}:{accountId}:db:{resourceName} -
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
1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 | |