#[non_exhaustive]pub struct RecommendationJobStoppingConditions {
pub max_invocations: Option<i32>,
pub model_latency_thresholds: Option<Vec<ModelLatencyThreshold>>,
pub flat_invocations: Option<FlatInvocations>,
}
Expand description
Specifies conditions for stopping a job. When a job reaches a stopping condition limit, SageMaker ends the job.
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.max_invocations: Option<i32>
The maximum number of requests per minute expected for the endpoint.
model_latency_thresholds: Option<Vec<ModelLatencyThreshold>>
The interval of time taken by a model to respond as viewed from SageMaker. The interval includes the local communication time 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.
flat_invocations: Option<FlatInvocations>
Stops a load test when the number of invocations (TPS) peaks and flattens, which means that the instance has reached capacity. The default value is Stop
. If you want the load test to continue after invocations have flattened, set the value to Continue
.
Implementations§
source§impl RecommendationJobStoppingConditions
impl RecommendationJobStoppingConditions
sourcepub fn max_invocations(&self) -> Option<i32>
pub fn max_invocations(&self) -> Option<i32>
The maximum number of requests per minute expected for the endpoint.
sourcepub fn model_latency_thresholds(&self) -> &[ModelLatencyThreshold]
pub fn model_latency_thresholds(&self) -> &[ModelLatencyThreshold]
The interval of time taken by a model to respond as viewed from SageMaker. The interval includes the local communication time 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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .model_latency_thresholds.is_none()
.
sourcepub fn flat_invocations(&self) -> Option<&FlatInvocations>
pub fn flat_invocations(&self) -> Option<&FlatInvocations>
Stops a load test when the number of invocations (TPS) peaks and flattens, which means that the instance has reached capacity. The default value is Stop
. If you want the load test to continue after invocations have flattened, set the value to Continue
.
source§impl RecommendationJobStoppingConditions
impl RecommendationJobStoppingConditions
sourcepub fn builder() -> RecommendationJobStoppingConditionsBuilder
pub fn builder() -> RecommendationJobStoppingConditionsBuilder
Creates a new builder-style object to manufacture RecommendationJobStoppingConditions
.
Trait Implementations§
source§impl Clone for RecommendationJobStoppingConditions
impl Clone for RecommendationJobStoppingConditions
source§fn clone(&self) -> RecommendationJobStoppingConditions
fn clone(&self) -> RecommendationJobStoppingConditions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for RecommendationJobStoppingConditions
impl PartialEq for RecommendationJobStoppingConditions
source§fn eq(&self, other: &RecommendationJobStoppingConditions) -> bool
fn eq(&self, other: &RecommendationJobStoppingConditions) -> bool
self
and other
values to be equal, and is used
by ==
.