#[non_exhaustive]pub struct ScalingPolicyMetricBuilder { /* private fields */ }
Expand description
A builder for ScalingPolicyMetric
.
Implementations§
source§impl ScalingPolicyMetricBuilder
impl ScalingPolicyMetricBuilder
sourcepub fn invocations_per_instance(self, input: i32) -> Self
pub fn invocations_per_instance(self, input: i32) -> Self
The number of invocations sent to a model, normalized by InstanceCount
in each ProductionVariant. 1/numberOfInstances
is sent as the value on each request, where numberOfInstances
is the number of active instances for the ProductionVariant behind the endpoint at the time of the request.
sourcepub fn set_invocations_per_instance(self, input: Option<i32>) -> Self
pub fn set_invocations_per_instance(self, input: Option<i32>) -> Self
The number of invocations sent to a model, normalized by InstanceCount
in each ProductionVariant. 1/numberOfInstances
is sent as the value on each request, where numberOfInstances
is the number of active instances for the ProductionVariant behind the endpoint at the time of the request.
sourcepub fn get_invocations_per_instance(&self) -> &Option<i32>
pub fn get_invocations_per_instance(&self) -> &Option<i32>
The number of invocations sent to a model, normalized by InstanceCount
in each ProductionVariant. 1/numberOfInstances
is sent as the value on each request, where numberOfInstances
is the number of active instances for the ProductionVariant behind the endpoint at the time of the request.
sourcepub fn model_latency(self, input: i32) -> Self
pub fn model_latency(self, input: i32) -> Self
The interval of time taken by a model to respond as viewed from SageMaker. This interval includes the local communication times taken to send the request and to fetch the response from the container of a model and the time taken to complete the inference in the container.
sourcepub fn set_model_latency(self, input: Option<i32>) -> Self
pub fn set_model_latency(self, input: Option<i32>) -> Self
The interval of time taken by a model to respond as viewed from SageMaker. This interval includes the local communication times taken to send the request and to fetch the response from the container of a model and the time taken to complete the inference in the container.
sourcepub fn get_model_latency(&self) -> &Option<i32>
pub fn get_model_latency(&self) -> &Option<i32>
The interval of time taken by a model to respond as viewed from SageMaker. This interval includes the local communication times taken to send the request and to fetch the response from the container of a model and the time taken to complete the inference in the container.
sourcepub fn build(self) -> ScalingPolicyMetric
pub fn build(self) -> ScalingPolicyMetric
Consumes the builder and constructs a ScalingPolicyMetric
.
Trait Implementations§
source§impl Clone for ScalingPolicyMetricBuilder
impl Clone for ScalingPolicyMetricBuilder
source§fn clone(&self) -> ScalingPolicyMetricBuilder
fn clone(&self) -> ScalingPolicyMetricBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScalingPolicyMetricBuilder
impl Debug for ScalingPolicyMetricBuilder
source§impl Default for ScalingPolicyMetricBuilder
impl Default for ScalingPolicyMetricBuilder
source§fn default() -> ScalingPolicyMetricBuilder
fn default() -> ScalingPolicyMetricBuilder
source§impl PartialEq for ScalingPolicyMetricBuilder
impl PartialEq for ScalingPolicyMetricBuilder
source§fn eq(&self, other: &ScalingPolicyMetricBuilder) -> bool
fn eq(&self, other: &ScalingPolicyMetricBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScalingPolicyMetricBuilder
Auto Trait Implementations§
impl Freeze for ScalingPolicyMetricBuilder
impl RefUnwindSafe for ScalingPolicyMetricBuilder
impl Send for ScalingPolicyMetricBuilder
impl Sync for ScalingPolicyMetricBuilder
impl Unpin for ScalingPolicyMetricBuilder
impl UnwindSafe for ScalingPolicyMetricBuilder
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