pub struct StorageAutoscalingConfig {
pub scale_factor: Option<f64>,
pub scale_threshold: Option<f64>,
pub scale_threshold_available: Option<String>,
}Expand description
Storage autoscaling policy: expand storage from storage_min toward
storage_max as it fills up.
JSON schema
{
"description": "Storage autoscaling policy: expand storage from `storage_min` toward\n`storage_max` as it fills up.",
"type": "object",
"properties": {
"scale_factor": {
"description": "Expansion multiplier. Defaults to 2.0.",
"type": [
"number",
"null"
],
"format": "double"
},
"scale_threshold": {
"description": "Usage fraction that triggers expansion. Defaults to 0.8.",
"type": [
"number",
"null"
],
"format": "double"
},
"scale_threshold_available": {
"description": "Expand storage when available space falls below this size, such as\n`\"10Gi\"`, even if usage is still under `scale_threshold`. Either\ncondition triggers expansion. Unset by default.\n\nBefore release 0.367.0 this setting was `scale_threshold_available_mb`,\na number of megabytes. That name is deprecated but still read.",
"type": [
"string",
"null"
]
}
}
}Fields§
§scale_factor: Option<f64>Expansion multiplier. Defaults to 2.0.
scale_threshold: Option<f64>Usage fraction that triggers expansion. Defaults to 0.8.
scale_threshold_available: Option<String>Expand storage when available space falls below this size, such as
"10Gi", even if usage is still under scale_threshold. Either
condition triggers expansion. Unset by default.
Before release 0.367.0 this setting was scale_threshold_available_mb,
a number of megabytes. That name is deprecated but still read.
Implementations§
Source§impl StorageAutoscalingConfig
impl StorageAutoscalingConfig
pub fn builder() -> StorageAutoscalingConfig
Trait Implementations§
Source§impl Clone for StorageAutoscalingConfig
impl Clone for StorageAutoscalingConfig
Source§impl Debug for StorageAutoscalingConfig
impl Debug for StorageAutoscalingConfig
Source§impl Default for StorageAutoscalingConfig
impl Default for StorageAutoscalingConfig
Source§impl<'de> Deserialize<'de> for StorageAutoscalingConfig
impl<'de> Deserialize<'de> for StorageAutoscalingConfig
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
Source§impl From<&StorageAutoscalingConfig> for StorageAutoscalingConfig
impl From<&StorageAutoscalingConfig> for StorageAutoscalingConfig
Source§fn from(value: &StorageAutoscalingConfig) -> Self
fn from(value: &StorageAutoscalingConfig) -> Self
Converts to this type from the input type.
Source§impl From<StorageAutoscalingConfig> for StorageAutoscalingConfig
impl From<StorageAutoscalingConfig> for StorageAutoscalingConfig
Source§fn from(value: StorageAutoscalingConfig) -> Self
fn from(value: StorageAutoscalingConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for StorageAutoscalingConfig
impl Serialize for StorageAutoscalingConfig
Source§impl TryFrom<StorageAutoscalingConfig> for StorageAutoscalingConfig
impl TryFrom<StorageAutoscalingConfig> for StorageAutoscalingConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: StorageAutoscalingConfig) -> Result<Self, ConversionError>
fn try_from(value: StorageAutoscalingConfig) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StorageAutoscalingConfig
impl RefUnwindSafe for StorageAutoscalingConfig
impl Send for StorageAutoscalingConfig
impl Sync for StorageAutoscalingConfig
impl Unpin for StorageAutoscalingConfig
impl UnsafeUnpin for StorageAutoscalingConfig
impl UnwindSafe for StorageAutoscalingConfig
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