#[non_exhaustive]pub struct CustomizableMetricParametersBuilder { /* private fields */ }
Expand description
A builder for CustomizableMetricParameters
.
Implementations§
source§impl CustomizableMetricParametersBuilder
impl CustomizableMetricParametersBuilder
sourcepub fn threshold(self, input: CustomizableMetricThreshold) -> Self
pub fn threshold(self, input: CustomizableMetricThreshold) -> Self
The threshold value used for the specified metric parameter.
You can only specify the threshold value for CPU utilization.
sourcepub fn set_threshold(self, input: Option<CustomizableMetricThreshold>) -> Self
pub fn set_threshold(self, input: Option<CustomizableMetricThreshold>) -> Self
The threshold value used for the specified metric parameter.
You can only specify the threshold value for CPU utilization.
sourcepub fn get_threshold(&self) -> &Option<CustomizableMetricThreshold>
pub fn get_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, input: CustomizableMetricHeadroom) -> Self
pub fn headroom(self, input: CustomizableMetricHeadroom) -> Self
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
sourcepub fn set_headroom(self, input: Option<CustomizableMetricHeadroom>) -> Self
pub fn set_headroom(self, input: Option<CustomizableMetricHeadroom>) -> Self
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
sourcepub fn get_headroom(&self) -> &Option<CustomizableMetricHeadroom>
pub fn get_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
sourcepub fn build(self) -> CustomizableMetricParameters
pub fn build(self) -> CustomizableMetricParameters
Consumes the builder and constructs a CustomizableMetricParameters
.
Trait Implementations§
source§impl Clone for CustomizableMetricParametersBuilder
impl Clone for CustomizableMetricParametersBuilder
source§fn clone(&self) -> CustomizableMetricParametersBuilder
fn clone(&self) -> CustomizableMetricParametersBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CustomizableMetricParametersBuilder
impl Default for CustomizableMetricParametersBuilder
source§fn default() -> CustomizableMetricParametersBuilder
fn default() -> CustomizableMetricParametersBuilder
source§impl PartialEq for CustomizableMetricParametersBuilder
impl PartialEq for CustomizableMetricParametersBuilder
source§fn eq(&self, other: &CustomizableMetricParametersBuilder) -> bool
fn eq(&self, other: &CustomizableMetricParametersBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CustomizableMetricParametersBuilder
Auto Trait Implementations§
impl Freeze for CustomizableMetricParametersBuilder
impl RefUnwindSafe for CustomizableMetricParametersBuilder
impl Send for CustomizableMetricParametersBuilder
impl Sync for CustomizableMetricParametersBuilder
impl Unpin for CustomizableMetricParametersBuilder
impl UnwindSafe for CustomizableMetricParametersBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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