pub struct PrivateServiceDetailsPostAutoscaling {
pub criteria: Option<PrivateServiceDetailsPostAutoscalingCriteria>,
pub enabled: bool,
pub max: Option<i64>,
pub min: Option<i64>,
}Expand description
PrivateServiceDetailsPostAutoscaling
JSON schema
{
"type": "object",
"properties": {
"criteria": {
"type": "object",
"properties": {
"cpu": {
"type": "object",
"properties": {
"enabled": {
"default": false,
"type": "boolean"
},
"percentage": {
"description": "Determines when your service will be
scaled. If the average resource utilization is significantly above/below
the target, we will increase/decrease the number of instances.\n",
"type": "integer"
}
}
},
"memory": {
"type": "object",
"properties": {
"enabled": {
"default": false,
"type": "boolean"
},
"percentage": {
"description": "Determines when your service will be
scaled. If the average resource utilization is significantly above/below
the target, we will increase/decrease the number of instances.\n",
"type": "integer"
}
}
}
}
},
"enabled": {
"default": false,
"type": "boolean"
},
"max": {
"description": "The maximum number of instances for the service",
"type": "integer"
},
"min": {
"description": "The minimum number of instances for the service",
"type": "integer"
}
}
}Fields§
§criteria: Option<PrivateServiceDetailsPostAutoscalingCriteria>§enabled: bool§max: Option<i64>The maximum number of instances for the service
min: Option<i64>The minimum number of instances for the service
Trait Implementations§
Source§impl Clone for PrivateServiceDetailsPostAutoscaling
impl Clone for PrivateServiceDetailsPostAutoscaling
Source§fn clone(&self) -> PrivateServiceDetailsPostAutoscaling
fn clone(&self) -> PrivateServiceDetailsPostAutoscaling
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for PrivateServiceDetailsPostAutoscaling
impl<'de> Deserialize<'de> for PrivateServiceDetailsPostAutoscaling
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 PrivateServiceDetailsPostAutoscaling
impl RefUnwindSafe for PrivateServiceDetailsPostAutoscaling
impl Send for PrivateServiceDetailsPostAutoscaling
impl Sync for PrivateServiceDetailsPostAutoscaling
impl Unpin for PrivateServiceDetailsPostAutoscaling
impl UnsafeUnpin for PrivateServiceDetailsPostAutoscaling
impl UnwindSafe for PrivateServiceDetailsPostAutoscaling
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