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
source§fn eq(&self, other: &RecommendationMetrics) -> bool
fn eq(&self, other: &RecommendationMetrics) -> bool
self
and other
values to be equal, and is used
by ==
.