#[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 ==
.impl StructuralPartialEq for RecommendationJobStoppingConditions
Auto Trait Implementations§
impl Freeze for RecommendationJobStoppingConditions
impl RefUnwindSafe for RecommendationJobStoppingConditions
impl Send for RecommendationJobStoppingConditions
impl Sync for RecommendationJobStoppingConditions
impl Unpin for RecommendationJobStoppingConditions
impl UnwindSafe for RecommendationJobStoppingConditions
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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