pub struct AppsCancelEventResponseEventAutoscalingComponentsValue {
pub from: Option<i64>,
pub to: Option<i64>,
pub triggering_metric: Option<String>,
}Expand description
AppsCancelEventResponseEventAutoscalingComponentsValue
JSON schema
{
"type": "object",
"properties": {
"from": {
"description": "The number of replicas before scaling",
"examples": [
1
],
"type": "integer",
"format": "int64"
},
"to": {
"description": "The number of replicas after scaling",
"examples": [
3
],
"type": "integer",
"format": "int64"
},
"triggering_metric": {
"description": "The metric that triggered the scale change. Known values are \"cpu\", \"requests_per_second\", \"request_duration\". For inactivity sleep, \"scale_from_zero\" and \"scale_to_zero\" are used.",
"examples": [
"cpu"
],
"type": "string"
}
}
}Fields§
§from: Option<i64>The number of replicas before scaling
to: Option<i64>The number of replicas after scaling
triggering_metric: Option<String>The metric that triggered the scale change. Known values are “cpu”, “requests_per_second”, “request_duration”. For inactivity sleep, “scale_from_zero” and “scale_to_zero” are used.
Trait Implementations§
Source§impl Clone for AppsCancelEventResponseEventAutoscalingComponentsValue
impl Clone for AppsCancelEventResponseEventAutoscalingComponentsValue
Source§fn clone(&self) -> AppsCancelEventResponseEventAutoscalingComponentsValue
fn clone(&self) -> AppsCancelEventResponseEventAutoscalingComponentsValue
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 AppsCancelEventResponseEventAutoscalingComponentsValue
impl<'de> Deserialize<'de> for AppsCancelEventResponseEventAutoscalingComponentsValue
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<&AppsCancelEventResponseEventAutoscalingComponentsValue> for AppsCancelEventResponseEventAutoscalingComponentsValue
impl From<&AppsCancelEventResponseEventAutoscalingComponentsValue> for AppsCancelEventResponseEventAutoscalingComponentsValue
Source§fn from(value: &AppsCancelEventResponseEventAutoscalingComponentsValue) -> Self
fn from(value: &AppsCancelEventResponseEventAutoscalingComponentsValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AppsCancelEventResponseEventAutoscalingComponentsValue
impl RefUnwindSafe for AppsCancelEventResponseEventAutoscalingComponentsValue
impl Send for AppsCancelEventResponseEventAutoscalingComponentsValue
impl Sync for AppsCancelEventResponseEventAutoscalingComponentsValue
impl Unpin for AppsCancelEventResponseEventAutoscalingComponentsValue
impl UnsafeUnpin for AppsCancelEventResponseEventAutoscalingComponentsValue
impl UnwindSafe for AppsCancelEventResponseEventAutoscalingComponentsValue
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