#[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 ==
.impl StructuralPartialEq for CustomizableMetricParameters
Auto Trait Implementations§
impl Freeze for CustomizableMetricParameters
impl RefUnwindSafe for CustomizableMetricParameters
impl Send for CustomizableMetricParameters
impl Sync for CustomizableMetricParameters
impl Unpin for CustomizableMetricParameters
impl UnwindSafe for CustomizableMetricParameters
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more