Struct aws_sdk_sagemaker::types::ScalingPolicyMetric
source · #[non_exhaustive]pub struct ScalingPolicyMetric {
pub invocations_per_instance: Option<i32>,
pub model_latency: Option<i32>,
}
Expand description
The metric for a scaling policy.
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.invocations_per_instance: 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.
model_latency: 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.
Implementations§
source§impl ScalingPolicyMetric
impl ScalingPolicyMetric
sourcepub fn invocations_per_instance(&self) -> Option<i32>
pub fn 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) -> Option<i32>
pub fn 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.
source§impl ScalingPolicyMetric
impl ScalingPolicyMetric
sourcepub fn builder() -> ScalingPolicyMetricBuilder
pub fn builder() -> ScalingPolicyMetricBuilder
Creates a new builder-style object to manufacture ScalingPolicyMetric
.
Trait Implementations§
source§impl Clone for ScalingPolicyMetric
impl Clone for ScalingPolicyMetric
source§fn clone(&self) -> ScalingPolicyMetric
fn clone(&self) -> ScalingPolicyMetric
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScalingPolicyMetric
impl Debug for ScalingPolicyMetric
source§impl PartialEq for ScalingPolicyMetric
impl PartialEq for ScalingPolicyMetric
source§fn eq(&self, other: &ScalingPolicyMetric) -> bool
fn eq(&self, other: &ScalingPolicyMetric) -> bool
self
and other
values to be equal, and is used
by ==
.