Struct aws_sdk_sagemaker::types::RecommendationMetrics
source · #[non_exhaustive]pub struct RecommendationMetrics {
pub cost_per_hour: Option<f32>,
pub cost_per_inference: Option<f32>,
pub max_invocations: Option<i32>,
pub model_latency: Option<i32>,
pub cpu_utilization: Option<f32>,
pub memory_utilization: Option<f32>,
pub model_setup_time: Option<i32>,
}
Expand description
The metrics of recommendations.
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.cost_per_hour: Option<f32>
Defines the cost per hour for the instance.
cost_per_inference: Option<f32>
Defines the cost per inference for the instance .
max_invocations: Option<i32>
The expected maximum number of requests per minute for the instance.
model_latency: Option<i32>
The expected model latency at maximum invocation per minute for the instance.
cpu_utilization: Option<f32>
The expected CPU utilization at maximum invocations per minute for the instance.
NaN
indicates that the value is not available.
memory_utilization: Option<f32>
The expected memory utilization at maximum invocations per minute for the instance.
NaN
indicates that the value is not available.
model_setup_time: Option<i32>
The time it takes to launch new compute resources for a serverless endpoint. The time can vary depending on the model size, how long it takes to download the model, and the start-up time of the container.
NaN
indicates that the value is not available.
Implementations§
source§impl RecommendationMetrics
impl RecommendationMetrics
sourcepub fn cost_per_hour(&self) -> Option<f32>
pub fn cost_per_hour(&self) -> Option<f32>
Defines the cost per hour for the instance.
sourcepub fn cost_per_inference(&self) -> Option<f32>
pub fn cost_per_inference(&self) -> Option<f32>
Defines the cost per inference for the instance .
sourcepub fn max_invocations(&self) -> Option<i32>
pub fn max_invocations(&self) -> Option<i32>
The expected maximum number of requests per minute for the instance.
sourcepub fn model_latency(&self) -> Option<i32>
pub fn model_latency(&self) -> Option<i32>
The expected model latency at maximum invocation per minute for the instance.
sourcepub fn cpu_utilization(&self) -> Option<f32>
pub fn cpu_utilization(&self) -> Option<f32>
The expected CPU utilization at maximum invocations per minute for the instance.
NaN
indicates that the value is not available.
sourcepub fn memory_utilization(&self) -> Option<f32>
pub fn memory_utilization(&self) -> Option<f32>
The expected memory utilization at maximum invocations per minute for the instance.
NaN
indicates that the value is not available.
sourcepub fn model_setup_time(&self) -> Option<i32>
pub fn model_setup_time(&self) -> Option<i32>
The time it takes to launch new compute resources for a serverless endpoint. The time can vary depending on the model size, how long it takes to download the model, and the start-up time of the container.
NaN
indicates that the value is not available.
source§impl RecommendationMetrics
impl RecommendationMetrics
sourcepub fn builder() -> RecommendationMetricsBuilder
pub fn builder() -> RecommendationMetricsBuilder
Creates a new builder-style object to manufacture RecommendationMetrics
.
Trait Implementations§
source§impl Clone for RecommendationMetrics
impl Clone for RecommendationMetrics
source§fn clone(&self) -> RecommendationMetrics
fn clone(&self) -> RecommendationMetrics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecommendationMetrics
impl Debug for RecommendationMetrics
source§impl PartialEq for RecommendationMetrics
impl PartialEq for RecommendationMetrics
impl StructuralPartialEq for RecommendationMetrics
Auto Trait Implementations§
impl Freeze for RecommendationMetrics
impl RefUnwindSafe for RecommendationMetrics
impl Send for RecommendationMetrics
impl Sync for RecommendationMetrics
impl Unpin for RecommendationMetrics
impl UnwindSafe for RecommendationMetrics
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