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 |
Retrieves the forecast data for a scalable resource.
Capacity forecasts are represented as predicted values, or data points, that are calculated using historical data points from a specified CloudWatch load metric. Data points are available for up to 56 days.
Synopsis
- data GetScalingPlanResourceForecastData = GetScalingPlanResourceForecastData' {}
- newGetScalingPlanResourceForecastData :: Text -> Integer -> ServiceNamespace -> Text -> ScalableDimension -> ForecastDataType -> UTCTime -> UTCTime -> GetScalingPlanResourceForecastData
- getScalingPlanResourceForecastData_scalingPlanName :: Lens' GetScalingPlanResourceForecastData Text
- getScalingPlanResourceForecastData_scalingPlanVersion :: Lens' GetScalingPlanResourceForecastData Integer
- getScalingPlanResourceForecastData_serviceNamespace :: Lens' GetScalingPlanResourceForecastData ServiceNamespace
- getScalingPlanResourceForecastData_resourceId :: Lens' GetScalingPlanResourceForecastData Text
- getScalingPlanResourceForecastData_scalableDimension :: Lens' GetScalingPlanResourceForecastData ScalableDimension
- getScalingPlanResourceForecastData_forecastDataType :: Lens' GetScalingPlanResourceForecastData ForecastDataType
- getScalingPlanResourceForecastData_startTime :: Lens' GetScalingPlanResourceForecastData UTCTime
- getScalingPlanResourceForecastData_endTime :: Lens' GetScalingPlanResourceForecastData UTCTime
- data GetScalingPlanResourceForecastDataResponse = GetScalingPlanResourceForecastDataResponse' {
- httpStatus :: Int
- datapoints :: [Datapoint]
- newGetScalingPlanResourceForecastDataResponse :: Int -> GetScalingPlanResourceForecastDataResponse
- getScalingPlanResourceForecastDataResponse_httpStatus :: Lens' GetScalingPlanResourceForecastDataResponse Int
- getScalingPlanResourceForecastDataResponse_datapoints :: Lens' GetScalingPlanResourceForecastDataResponse [Datapoint]
Creating a Request
data GetScalingPlanResourceForecastData Source #
See: newGetScalingPlanResourceForecastData
smart constructor.
GetScalingPlanResourceForecastData' | |
|
Instances
newGetScalingPlanResourceForecastData Source #
:: Text | |
-> Integer | |
-> ServiceNamespace | |
-> Text | |
-> ScalableDimension | |
-> ForecastDataType | |
-> UTCTime | |
-> UTCTime | |
-> GetScalingPlanResourceForecastData |
Create a value of GetScalingPlanResourceForecastData
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:scalingPlanName:GetScalingPlanResourceForecastData'
, getScalingPlanResourceForecastData_scalingPlanName
- The name of the scaling plan.
$sel:scalingPlanVersion:GetScalingPlanResourceForecastData'
, getScalingPlanResourceForecastData_scalingPlanVersion
- The version number of the scaling plan. Currently, the only valid value
is 1
.
$sel:serviceNamespace:GetScalingPlanResourceForecastData'
, getScalingPlanResourceForecastData_serviceNamespace
- The namespace of the AWS service. The only valid value is autoscaling
.
$sel:resourceId:GetScalingPlanResourceForecastData'
, getScalingPlanResourceForecastData_resourceId
- The ID of the resource. This string consists of a prefix
(autoScalingGroup
) followed by the name of a specified Auto Scaling
group (my-asg
). Example: autoScalingGroup/my-asg
.
$sel:scalableDimension:GetScalingPlanResourceForecastData'
, getScalingPlanResourceForecastData_scalableDimension
- The scalable dimension for the resource. The only valid value is
autoscaling:autoScalingGroup:DesiredCapacity
.
$sel:forecastDataType:GetScalingPlanResourceForecastData'
, getScalingPlanResourceForecastData_forecastDataType
- The type of forecast data to get.
LoadForecast
: The load metric forecast.CapacityForecast
: The capacity forecast.ScheduledActionMinCapacity
: The minimum capacity for each scheduled scaling action. This data is calculated as the larger of two values: the capacity forecast or the minimum capacity in the scaling instruction.ScheduledActionMaxCapacity
: The maximum capacity for each scheduled scaling action. The calculation used is determined by the predictive scaling maximum capacity behavior setting in the scaling instruction.
$sel:startTime:GetScalingPlanResourceForecastData'
, getScalingPlanResourceForecastData_startTime
- The inclusive start time of the time range for the forecast data to get.
The date and time can be at most 56 days before the current date and
time.
$sel:endTime:GetScalingPlanResourceForecastData'
, getScalingPlanResourceForecastData_endTime
- The exclusive end time of the time range for the forecast data to get.
The maximum time duration between the start and end time is seven days.
Although this parameter can accept a date and time that is more than two days in the future, the availability of forecast data has limits. AWS Auto Scaling only issues forecasts for periods of two days in advance.
Request Lenses
getScalingPlanResourceForecastData_scalingPlanName :: Lens' GetScalingPlanResourceForecastData Text Source #
The name of the scaling plan.
getScalingPlanResourceForecastData_scalingPlanVersion :: Lens' GetScalingPlanResourceForecastData Integer Source #
The version number of the scaling plan. Currently, the only valid value
is 1
.
getScalingPlanResourceForecastData_serviceNamespace :: Lens' GetScalingPlanResourceForecastData ServiceNamespace Source #
The namespace of the AWS service. The only valid value is autoscaling
.
getScalingPlanResourceForecastData_resourceId :: Lens' GetScalingPlanResourceForecastData Text Source #
The ID of the resource. This string consists of a prefix
(autoScalingGroup
) followed by the name of a specified Auto Scaling
group (my-asg
). Example: autoScalingGroup/my-asg
.
getScalingPlanResourceForecastData_scalableDimension :: Lens' GetScalingPlanResourceForecastData ScalableDimension Source #
The scalable dimension for the resource. The only valid value is
autoscaling:autoScalingGroup:DesiredCapacity
.
getScalingPlanResourceForecastData_forecastDataType :: Lens' GetScalingPlanResourceForecastData ForecastDataType Source #
The type of forecast data to get.
LoadForecast
: The load metric forecast.CapacityForecast
: The capacity forecast.ScheduledActionMinCapacity
: The minimum capacity for each scheduled scaling action. This data is calculated as the larger of two values: the capacity forecast or the minimum capacity in the scaling instruction.ScheduledActionMaxCapacity
: The maximum capacity for each scheduled scaling action. The calculation used is determined by the predictive scaling maximum capacity behavior setting in the scaling instruction.
getScalingPlanResourceForecastData_startTime :: Lens' GetScalingPlanResourceForecastData UTCTime Source #
The inclusive start time of the time range for the forecast data to get. The date and time can be at most 56 days before the current date and time.
getScalingPlanResourceForecastData_endTime :: Lens' GetScalingPlanResourceForecastData UTCTime Source #
The exclusive end time of the time range for the forecast data to get. The maximum time duration between the start and end time is seven days.
Although this parameter can accept a date and time that is more than two days in the future, the availability of forecast data has limits. AWS Auto Scaling only issues forecasts for periods of two days in advance.
Destructuring the Response
data GetScalingPlanResourceForecastDataResponse Source #
See: newGetScalingPlanResourceForecastDataResponse
smart constructor.
GetScalingPlanResourceForecastDataResponse' | |
|
Instances
Eq GetScalingPlanResourceForecastDataResponse Source # | |
Read GetScalingPlanResourceForecastDataResponse Source # | |
Show GetScalingPlanResourceForecastDataResponse Source # | |
Generic GetScalingPlanResourceForecastDataResponse Source # | |
NFData GetScalingPlanResourceForecastDataResponse Source # | |
type Rep GetScalingPlanResourceForecastDataResponse Source # | |
Defined in Amazonka.AutoScalingPlans.GetScalingPlanResourceForecastData type Rep GetScalingPlanResourceForecastDataResponse = D1 ('MetaData "GetScalingPlanResourceForecastDataResponse" "Amazonka.AutoScalingPlans.GetScalingPlanResourceForecastData" "libZSservicesZSamazonka-autoscaling-plansZSamazonka-autoscaling-plans" 'False) (C1 ('MetaCons "GetScalingPlanResourceForecastDataResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "datapoints") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Datapoint]))) |
newGetScalingPlanResourceForecastDataResponse Source #
Create a value of GetScalingPlanResourceForecastDataResponse
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:httpStatus:GetScalingPlanResourceForecastDataResponse'
, getScalingPlanResourceForecastDataResponse_httpStatus
- The response's http status code.
$sel:datapoints:GetScalingPlanResourceForecastDataResponse'
, getScalingPlanResourceForecastDataResponse_datapoints
- The data points to return.
Response Lenses
getScalingPlanResourceForecastDataResponse_httpStatus :: Lens' GetScalingPlanResourceForecastDataResponse Int Source #
The response's http status code.
getScalingPlanResourceForecastDataResponse_datapoints :: Lens' GetScalingPlanResourceForecastDataResponse [Datapoint] Source #
The data points to return.