Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns the projected utilization metrics of Amazon EC2 instance recommendations.
The Cpu
and Memory
metrics are the only projected utilization
metrics returned when you run this action. Additionally, the Memory
metric is returned only for resources that have the unified CloudWatch
agent installed on them. For more information, see
Enabling Memory Utilization with the CloudWatch Agent.
Synopsis
- data GetEC2RecommendationProjectedMetrics = GetEC2RecommendationProjectedMetrics' {}
- newGetEC2RecommendationProjectedMetrics :: Text -> MetricStatistic -> Int -> UTCTime -> UTCTime -> GetEC2RecommendationProjectedMetrics
- getEC2RecommendationProjectedMetrics_recommendationPreferences :: Lens' GetEC2RecommendationProjectedMetrics (Maybe RecommendationPreferences)
- getEC2RecommendationProjectedMetrics_instanceArn :: Lens' GetEC2RecommendationProjectedMetrics Text
- getEC2RecommendationProjectedMetrics_stat :: Lens' GetEC2RecommendationProjectedMetrics MetricStatistic
- getEC2RecommendationProjectedMetrics_period :: Lens' GetEC2RecommendationProjectedMetrics Int
- getEC2RecommendationProjectedMetrics_startTime :: Lens' GetEC2RecommendationProjectedMetrics UTCTime
- getEC2RecommendationProjectedMetrics_endTime :: Lens' GetEC2RecommendationProjectedMetrics UTCTime
- data GetEC2RecommendationProjectedMetricsResponse = GetEC2RecommendationProjectedMetricsResponse' {}
- newGetEC2RecommendationProjectedMetricsResponse :: Int -> GetEC2RecommendationProjectedMetricsResponse
- getEC2RecommendationProjectedMetricsResponse_recommendedOptionProjectedMetrics :: Lens' GetEC2RecommendationProjectedMetricsResponse (Maybe [RecommendedOptionProjectedMetric])
- getEC2RecommendationProjectedMetricsResponse_httpStatus :: Lens' GetEC2RecommendationProjectedMetricsResponse Int
Creating a Request
data GetEC2RecommendationProjectedMetrics Source #
See: newGetEC2RecommendationProjectedMetrics
smart constructor.
GetEC2RecommendationProjectedMetrics' | |
|
Instances
newGetEC2RecommendationProjectedMetrics Source #
:: Text | |
-> MetricStatistic | |
-> Int | |
-> UTCTime | |
-> UTCTime | |
-> GetEC2RecommendationProjectedMetrics |
Create a value of GetEC2RecommendationProjectedMetrics
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:recommendationPreferences:GetEC2RecommendationProjectedMetrics'
, getEC2RecommendationProjectedMetrics_recommendationPreferences
- An object to specify the preferences for the Amazon EC2 recommendation
projected metrics to return in the response.
$sel:instanceArn:GetEC2RecommendationProjectedMetrics'
, getEC2RecommendationProjectedMetrics_instanceArn
- The Amazon Resource Name (ARN) of the instances for which to return
recommendation projected metrics.
$sel:stat:GetEC2RecommendationProjectedMetrics'
, getEC2RecommendationProjectedMetrics_stat
- The statistic of the projected metrics.
$sel:period:GetEC2RecommendationProjectedMetrics'
, getEC2RecommendationProjectedMetrics_period
- The granularity, in seconds, of the projected metrics data points.
$sel:startTime:GetEC2RecommendationProjectedMetrics'
, getEC2RecommendationProjectedMetrics_startTime
- The timestamp of the first projected metrics data point to return.
$sel:endTime:GetEC2RecommendationProjectedMetrics'
, getEC2RecommendationProjectedMetrics_endTime
- The timestamp of the last projected metrics data point to return.
Request Lenses
getEC2RecommendationProjectedMetrics_recommendationPreferences :: Lens' GetEC2RecommendationProjectedMetrics (Maybe RecommendationPreferences) Source #
An object to specify the preferences for the Amazon EC2 recommendation projected metrics to return in the response.
getEC2RecommendationProjectedMetrics_instanceArn :: Lens' GetEC2RecommendationProjectedMetrics Text Source #
The Amazon Resource Name (ARN) of the instances for which to return recommendation projected metrics.
getEC2RecommendationProjectedMetrics_stat :: Lens' GetEC2RecommendationProjectedMetrics MetricStatistic Source #
The statistic of the projected metrics.
getEC2RecommendationProjectedMetrics_period :: Lens' GetEC2RecommendationProjectedMetrics Int Source #
The granularity, in seconds, of the projected metrics data points.
getEC2RecommendationProjectedMetrics_startTime :: Lens' GetEC2RecommendationProjectedMetrics UTCTime Source #
The timestamp of the first projected metrics data point to return.
getEC2RecommendationProjectedMetrics_endTime :: Lens' GetEC2RecommendationProjectedMetrics UTCTime Source #
The timestamp of the last projected metrics data point to return.
Destructuring the Response
data GetEC2RecommendationProjectedMetricsResponse Source #
See: newGetEC2RecommendationProjectedMetricsResponse
smart constructor.
GetEC2RecommendationProjectedMetricsResponse' | |
|
Instances
newGetEC2RecommendationProjectedMetricsResponse Source #
:: Int |
|
-> GetEC2RecommendationProjectedMetricsResponse |
Create a value of GetEC2RecommendationProjectedMetricsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:recommendedOptionProjectedMetrics:GetEC2RecommendationProjectedMetricsResponse'
, getEC2RecommendationProjectedMetricsResponse_recommendedOptionProjectedMetrics
- An array of objects that describes projected metrics.
$sel:httpStatus:GetEC2RecommendationProjectedMetricsResponse'
, getEC2RecommendationProjectedMetricsResponse_httpStatus
- The response's http status code.
Response Lenses
getEC2RecommendationProjectedMetricsResponse_recommendedOptionProjectedMetrics :: Lens' GetEC2RecommendationProjectedMetricsResponse (Maybe [RecommendedOptionProjectedMetric]) Source #
An array of objects that describes projected metrics.
getEC2RecommendationProjectedMetricsResponse_httpStatus :: Lens' GetEC2RecommendationProjectedMetricsResponse Int Source #
The response's http status code.