Struct aws_sdk_autoscaling::types::LoadForecast
source · #[non_exhaustive]pub struct LoadForecast {
pub timestamps: Option<Vec<DateTime>>,
pub values: Option<Vec<f64>>,
pub metric_specification: Option<PredictiveScalingMetricSpecification>,
}Expand description
A GetPredictiveScalingForecast call returns the load forecast for a predictive scaling policy. This structure includes the data points for that load forecast, along with the timestamps of those data points and the metric specification.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.timestamps: Option<Vec<DateTime>>The timestamps for the data points, in UTC format.
values: Option<Vec<f64>>The values of the data points.
metric_specification: Option<PredictiveScalingMetricSpecification>The metric specification for the load forecast.
Implementations§
source§impl LoadForecast
impl LoadForecast
sourcepub fn timestamps(&self) -> &[DateTime]
pub fn timestamps(&self) -> &[DateTime]
The timestamps for the data points, in UTC format.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .timestamps.is_none().
sourcepub fn values(&self) -> &[f64]
pub fn values(&self) -> &[f64]
The values of the data points.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .values.is_none().
sourcepub fn metric_specification(
&self
) -> Option<&PredictiveScalingMetricSpecification>
pub fn metric_specification( &self ) -> Option<&PredictiveScalingMetricSpecification>
The metric specification for the load forecast.
source§impl LoadForecast
impl LoadForecast
sourcepub fn builder() -> LoadForecastBuilder
pub fn builder() -> LoadForecastBuilder
Creates a new builder-style object to manufacture LoadForecast.
Trait Implementations§
source§impl Clone for LoadForecast
impl Clone for LoadForecast
source§fn clone(&self) -> LoadForecast
fn clone(&self) -> LoadForecast
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for LoadForecast
impl Debug for LoadForecast
source§impl PartialEq for LoadForecast
impl PartialEq for LoadForecast
source§fn eq(&self, other: &LoadForecast) -> bool
fn eq(&self, other: &LoadForecast) -> bool
self and other values to be equal, and is used
by ==.