pub struct AutoscalingPolicyScalingSchedule {
pub description: Option<String>,
pub disabled: Option<bool>,
pub duration_sec: Option<i32>,
pub min_required_replicas: Option<i32>,
pub schedule: Option<String>,
pub time_zone: Option<String>,
}
Expand description
Scaling based on user-defined schedule. The message describes a single scaling schedule. A scaling schedule changes the minimum number of VM instances an autoscaler can recommend, which can trigger scaling out.
This type is not used in any activity, and only used as part of another schema.
Fields§
§description: Option<String>
A description of a scaling schedule.
disabled: Option<bool>
A boolean value that specifies whether a scaling schedule can influence autoscaler recommendations. If set to true, then a scaling schedule has no effect. This field is optional, and its value is false by default.
duration_sec: Option<i32>
The duration of time intervals, in seconds, for which this scaling schedule is to run. The minimum allowed value is 300. This field is required.
min_required_replicas: Option<i32>
The minimum number of VM instances that the autoscaler will recommend in time intervals starting according to schedule. This field is required.
schedule: Option<String>
The start timestamps of time intervals when this scaling schedule is to provide a scaling signal. This field uses the extended cron format (with an optional year field). The expression can describe a single timestamp if the optional year is set, in which case the scaling schedule runs once. The schedule is interpreted with respect to time_zone. This field is required. Note: These timestamps only describe when autoscaler starts providing the scaling signal. The VMs need additional time to become serving.
time_zone: Option<String>
The time zone to use when interpreting the schedule. The value of this field must be a time zone name from the tz database: https://en.wikipedia.org/wiki/Tz_database. This field is assigned a default value of “UTC” if left empty.
Trait Implementations§
Source§impl Clone for AutoscalingPolicyScalingSchedule
impl Clone for AutoscalingPolicyScalingSchedule
Source§fn clone(&self) -> AutoscalingPolicyScalingSchedule
fn clone(&self) -> AutoscalingPolicyScalingSchedule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for AutoscalingPolicyScalingSchedule
impl Default for AutoscalingPolicyScalingSchedule
Source§fn default() -> AutoscalingPolicyScalingSchedule
fn default() -> AutoscalingPolicyScalingSchedule
Source§impl<'de> Deserialize<'de> for AutoscalingPolicyScalingSchedule
impl<'de> Deserialize<'de> for AutoscalingPolicyScalingSchedule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for AutoscalingPolicyScalingSchedule
Auto Trait Implementations§
impl Freeze for AutoscalingPolicyScalingSchedule
impl RefUnwindSafe for AutoscalingPolicyScalingSchedule
impl Send for AutoscalingPolicyScalingSchedule
impl Sync for AutoscalingPolicyScalingSchedule
impl Unpin for AutoscalingPolicyScalingSchedule
impl UnwindSafe for AutoscalingPolicyScalingSchedule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more