pub struct BoxAutoscalerSpec {
pub target_ref: TargetRef,
pub min_replicas: u32,
pub max_replicas: u32,
pub metrics: Vec<MetricSpec>,
pub behavior: ScalingBehavior,
pub cooldown_secs: u64,
}Expand description
BoxAutoscaler CRD spec — desired autoscaling behavior.
Fields§
§target_ref: TargetRefReference to the target resource to scale.
min_replicas: u32Minimum number of replicas (default: 1).
max_replicas: u32Maximum number of replicas.
metrics: Vec<MetricSpec>Metrics to evaluate for scaling decisions.
behavior: ScalingBehaviorScaling behavior configuration.
cooldown_secs: u64Cooldown period in seconds after a scale event (default: 60).
Trait Implementations§
Source§impl Clone for BoxAutoscalerSpec
impl Clone for BoxAutoscalerSpec
Source§fn clone(&self) -> BoxAutoscalerSpec
fn clone(&self) -> BoxAutoscalerSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BoxAutoscalerSpec
impl Debug for BoxAutoscalerSpec
Source§impl<'de> Deserialize<'de> for BoxAutoscalerSpec
impl<'de> Deserialize<'de> for BoxAutoscalerSpec
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BoxAutoscalerSpec
impl RefUnwindSafe for BoxAutoscalerSpec
impl Send for BoxAutoscalerSpec
impl Sync for BoxAutoscalerSpec
impl Unpin for BoxAutoscalerSpec
impl UnsafeUnpin for BoxAutoscalerSpec
impl UnwindSafe for BoxAutoscalerSpec
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
Mutably borrows from an owned value. Read more