pub struct ScalingConfig {
pub min_instances: u32,
pub max_instances: u32,
pub cpu_threshold: f64,
pub memory_threshold: f64,
pub auto_scaling_enabled: bool,
}
Expand description
スケーリング設定
Fields§
§min_instances: u32
最小インスタンス数
max_instances: u32
最大インスタンス数
cpu_threshold: f64
CPU使用率の閾値 (0.0 - 1.0)
memory_threshold: f64
メモリ使用率の閾値 (0.0 - 1.0)
auto_scaling_enabled: bool
自動スケーリング有効化
Trait Implementations§
Source§impl Clone for ScalingConfig
impl Clone for ScalingConfig
Source§fn clone(&self) -> ScalingConfig
fn clone(&self) -> ScalingConfig
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 ScalingConfig
impl Debug for ScalingConfig
Source§impl<'de> Deserialize<'de> for ScalingConfig
impl<'de> Deserialize<'de> for ScalingConfig
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 ScalingConfig
impl RefUnwindSafe for ScalingConfig
impl Send for ScalingConfig
impl Sync for ScalingConfig
impl Unpin for ScalingConfig
impl UnwindSafe for ScalingConfig
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