libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AutoScaling.GetPredictiveScalingForecast

Description

Retrieves the forecast data for a predictive scaling policy.

Load forecasts are predictions of the hourly load values using historical load data from CloudWatch and an analysis of historical trends. Capacity forecasts are represented as predicted values for the minimum capacity that is needed on an hourly basis, based on the hourly load forecast.

A minimum of 24 hours of data is required to create the initial forecasts. However, having a full 14 days of historical data results in more accurate forecasts.

For more information, see Predictive scaling for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

Synopsis

Creating a Request

data GetPredictiveScalingForecast Source #

See: newGetPredictiveScalingForecast smart constructor.

Constructors

GetPredictiveScalingForecast' 

Fields

  • autoScalingGroupName :: Text

    The name of the Auto Scaling group.

  • policyName :: Text

    The name of the policy.

  • startTime :: ISO8601

    The inclusive start time of the time range for the forecast data to get. At most, the date and time can be one year before the current date and time.

  • endTime :: ISO8601

    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 30 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. Amazon EC2 Auto Scaling only issues forecasts for periods of two days in advance.

Instances

Instances details
Eq GetPredictiveScalingForecast Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

Read GetPredictiveScalingForecast Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

Show GetPredictiveScalingForecast Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

Generic GetPredictiveScalingForecast Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

Associated Types

type Rep GetPredictiveScalingForecast :: Type -> Type #

NFData GetPredictiveScalingForecast Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

Hashable GetPredictiveScalingForecast Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

AWSRequest GetPredictiveScalingForecast Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

ToHeaders GetPredictiveScalingForecast Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

ToPath GetPredictiveScalingForecast Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

ToQuery GetPredictiveScalingForecast Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

type Rep GetPredictiveScalingForecast Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

type Rep GetPredictiveScalingForecast = D1 ('MetaData "GetPredictiveScalingForecast" "Amazonka.AutoScaling.GetPredictiveScalingForecast" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "GetPredictiveScalingForecast'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "autoScalingGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "policyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601) :*: S1 ('MetaSel ('Just "endTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601))))
type AWSResponse GetPredictiveScalingForecast Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

newGetPredictiveScalingForecast Source #

Create a value of GetPredictiveScalingForecast 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:autoScalingGroupName:GetPredictiveScalingForecast', getPredictiveScalingForecast_autoScalingGroupName - The name of the Auto Scaling group.

$sel:policyName:GetPredictiveScalingForecast', getPredictiveScalingForecast_policyName - The name of the policy.

$sel:startTime:GetPredictiveScalingForecast', getPredictiveScalingForecast_startTime - The inclusive start time of the time range for the forecast data to get. At most, the date and time can be one year before the current date and time.

$sel:endTime:GetPredictiveScalingForecast', getPredictiveScalingForecast_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 30 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. Amazon EC2 Auto Scaling only issues forecasts for periods of two days in advance.

Request Lenses

getPredictiveScalingForecast_startTime :: Lens' GetPredictiveScalingForecast UTCTime Source #

The inclusive start time of the time range for the forecast data to get. At most, the date and time can be one year before the current date and time.

getPredictiveScalingForecast_endTime :: Lens' GetPredictiveScalingForecast 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 30 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. Amazon EC2 Auto Scaling only issues forecasts for periods of two days in advance.

Destructuring the Response

data GetPredictiveScalingForecastResponse Source #

Constructors

GetPredictiveScalingForecastResponse' 

Fields

Instances

Instances details
Eq GetPredictiveScalingForecastResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

Read GetPredictiveScalingForecastResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

Show GetPredictiveScalingForecastResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

Generic GetPredictiveScalingForecastResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

NFData GetPredictiveScalingForecastResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

type Rep GetPredictiveScalingForecastResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.GetPredictiveScalingForecast

type Rep GetPredictiveScalingForecastResponse = D1 ('MetaData "GetPredictiveScalingForecastResponse" "Amazonka.AutoScaling.GetPredictiveScalingForecast" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "GetPredictiveScalingForecastResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "loadForecast") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [LoadForecast])) :*: (S1 ('MetaSel ('Just "capacityForecast") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CapacityForecast) :*: S1 ('MetaSel ('Just "updateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601))))

Response Lenses