Enum google_api_proto::google::cloud::compute::v1::autoscaling_policy_cpu_utilization::PredictiveMethod
source · #[repr(i32)]pub enum PredictiveMethod {
UndefinedPredictiveMethod = 0,
None = 2_402_104,
OptimizeAvailability = 11_629_437,
}
Expand description
Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: * NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand.
Variants§
UndefinedPredictiveMethod = 0
A value indicating that the enum field is not set.
None = 2_402_104
No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics
OptimizeAvailability = 11_629_437
Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand.
Implementations§
source§impl PredictiveMethod
impl PredictiveMethod
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for PredictiveMethod
impl Clone for PredictiveMethod
source§fn clone(&self) -> PredictiveMethod
fn clone(&self) -> PredictiveMethod
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PredictiveMethod
impl Debug for PredictiveMethod
source§impl Default for PredictiveMethod
impl Default for PredictiveMethod
source§fn default() -> PredictiveMethod
fn default() -> PredictiveMethod
source§impl From<PredictiveMethod> for i32
impl From<PredictiveMethod> for i32
source§fn from(value: PredictiveMethod) -> i32
fn from(value: PredictiveMethod) -> i32
source§impl Hash for PredictiveMethod
impl Hash for PredictiveMethod
source§impl Ord for PredictiveMethod
impl Ord for PredictiveMethod
source§fn cmp(&self, other: &PredictiveMethod) -> Ordering
fn cmp(&self, other: &PredictiveMethod) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PredictiveMethod
impl PartialEq for PredictiveMethod
source§fn eq(&self, other: &PredictiveMethod) -> bool
fn eq(&self, other: &PredictiveMethod) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PredictiveMethod
impl PartialOrd for PredictiveMethod
source§fn partial_cmp(&self, other: &PredictiveMethod) -> Option<Ordering>
fn partial_cmp(&self, other: &PredictiveMethod) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for PredictiveMethod
impl TryFrom<i32> for PredictiveMethod
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PredictiveMethod, UnknownEnumValue>
fn try_from(value: i32) -> Result<PredictiveMethod, UnknownEnumValue>
impl Copy for PredictiveMethod
impl Eq for PredictiveMethod
impl StructuralPartialEq for PredictiveMethod
Auto Trait Implementations§
impl Freeze for PredictiveMethod
impl RefUnwindSafe for PredictiveMethod
impl Send for PredictiveMethod
impl Sync for PredictiveMethod
impl Unpin for PredictiveMethod
impl UnwindSafe for PredictiveMethod
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request