#[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 ==
.