pub struct GetPredictiveScalingForecast { /* private fields */ }Expand description
Fluent builder constructing a request to GetPredictiveScalingForecast.
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.
Implementations§
source§impl GetPredictiveScalingForecast
impl GetPredictiveScalingForecast
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetPredictiveScalingForecast, AwsResponseRetryClassifier>, SdkError<GetPredictiveScalingForecastError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetPredictiveScalingForecast, AwsResponseRetryClassifier>, SdkError<GetPredictiveScalingForecastError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<GetPredictiveScalingForecastOutput, SdkError<GetPredictiveScalingForecastError>>
pub async fn send(
self
) -> Result<GetPredictiveScalingForecastOutput, SdkError<GetPredictiveScalingForecastError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn auto_scaling_group_name(self, input: impl Into<String>) -> Self
pub fn auto_scaling_group_name(self, input: impl Into<String>) -> Self
The name of the Auto Scaling group.
sourcepub fn set_auto_scaling_group_name(self, input: Option<String>) -> Self
pub fn set_auto_scaling_group_name(self, input: Option<String>) -> Self
The name of the Auto Scaling group.
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
The name of the policy.
sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
The name of the policy.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
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.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
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.
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
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.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
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.
Trait Implementations§
source§impl Clone for GetPredictiveScalingForecast
impl Clone for GetPredictiveScalingForecast
source§fn clone(&self) -> GetPredictiveScalingForecast
fn clone(&self) -> GetPredictiveScalingForecast
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more