#[non_exhaustive]pub struct CustomizableMetricParameters {
pub threshold: Option<CustomizableMetricThreshold>,
pub headroom: Option<CustomizableMetricHeadroom>,
}Expand description
Defines the various metric parameters that can be customized, such as threshold and headroom.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.threshold: Option<CustomizableMetricThreshold>The threshold value used for the specified metric parameter.
You can only specify the threshold value for CPU utilization.
headroom: Option<CustomizableMetricHeadroom>The headroom value in percentage used for the specified metric parameter.
The following lists the valid values for CPU and memory utilization.
-
CPU utilization:
PERCENT_30 | PERCENT_20 | PERCENT_0 -
Memory utilization:
PERCENT_30 | PERCENT_20 | PERCENT_10
Implementations§
source§impl CustomizableMetricParameters
impl CustomizableMetricParameters
sourcepub fn threshold(&self) -> Option<&CustomizableMetricThreshold>
pub fn threshold(&self) -> Option<&CustomizableMetricThreshold>
The threshold value used for the specified metric parameter.
You can only specify the threshold value for CPU utilization.
sourcepub fn headroom(&self) -> Option<&CustomizableMetricHeadroom>
pub fn headroom(&self) -> Option<&CustomizableMetricHeadroom>
The headroom value in percentage used for the specified metric parameter.
The following lists the valid values for CPU and memory utilization.
-
CPU utilization:
PERCENT_30 | PERCENT_20 | PERCENT_0 -
Memory utilization:
PERCENT_30 | PERCENT_20 | PERCENT_10
source§impl CustomizableMetricParameters
impl CustomizableMetricParameters
sourcepub fn builder() -> CustomizableMetricParametersBuilder
pub fn builder() -> CustomizableMetricParametersBuilder
Creates a new builder-style object to manufacture CustomizableMetricParameters.
Trait Implementations§
source§impl Clone for CustomizableMetricParameters
impl Clone for CustomizableMetricParameters
source§fn clone(&self) -> CustomizableMetricParameters
fn clone(&self) -> CustomizableMetricParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CustomizableMetricParameters
impl Debug for CustomizableMetricParameters
source§impl PartialEq for CustomizableMetricParameters
impl PartialEq for CustomizableMetricParameters
source§fn eq(&self, other: &CustomizableMetricParameters) -> bool
fn eq(&self, other: &CustomizableMetricParameters) -> bool
self and other values to be equal, and is used
by ==.