#[non_exhaustive]pub struct RecommendationMetricsBuilder { /* private fields */ }
Expand description
A builder for RecommendationMetrics
.
Implementations§
source§impl RecommendationMetricsBuilder
impl RecommendationMetricsBuilder
sourcepub fn cost_per_hour(self, input: f32) -> Self
pub fn cost_per_hour(self, input: f32) -> Self
Defines the cost per hour for the instance.
sourcepub fn set_cost_per_hour(self, input: Option<f32>) -> Self
pub fn set_cost_per_hour(self, input: Option<f32>) -> Self
Defines the cost per hour for the instance.
sourcepub fn get_cost_per_hour(&self) -> &Option<f32>
pub fn get_cost_per_hour(&self) -> &Option<f32>
Defines the cost per hour for the instance.
sourcepub fn cost_per_inference(self, input: f32) -> Self
pub fn cost_per_inference(self, input: f32) -> Self
Defines the cost per inference for the instance .
sourcepub fn set_cost_per_inference(self, input: Option<f32>) -> Self
pub fn set_cost_per_inference(self, input: Option<f32>) -> Self
Defines the cost per inference for the instance .
sourcepub fn get_cost_per_inference(&self) -> &Option<f32>
pub fn get_cost_per_inference(&self) -> &Option<f32>
Defines the cost per inference for the instance .
sourcepub fn max_invocations(self, input: i32) -> Self
pub fn max_invocations(self, input: i32) -> Self
The expected maximum number of requests per minute for the instance.
sourcepub fn set_max_invocations(self, input: Option<i32>) -> Self
pub fn set_max_invocations(self, input: Option<i32>) -> Self
The expected maximum number of requests per minute for the instance.
sourcepub fn get_max_invocations(&self) -> &Option<i32>
pub fn get_max_invocations(&self) -> &Option<i32>
The expected maximum number of requests per minute for the instance.
sourcepub fn model_latency(self, input: i32) -> Self
pub fn model_latency(self, input: i32) -> Self
The expected model latency at maximum invocation per minute for the instance.
sourcepub fn set_model_latency(self, input: Option<i32>) -> Self
pub fn set_model_latency(self, input: Option<i32>) -> Self
The expected model latency at maximum invocation per minute for the instance.
sourcepub fn get_model_latency(&self) -> &Option<i32>
pub fn get_model_latency(&self) -> &Option<i32>
The expected model latency at maximum invocation per minute for the instance.
sourcepub fn cpu_utilization(self, input: f32) -> Self
pub fn cpu_utilization(self, input: f32) -> Self
The expected CPU utilization at maximum invocations per minute for the instance.
NaN
indicates that the value is not available.
sourcepub fn set_cpu_utilization(self, input: Option<f32>) -> Self
pub fn set_cpu_utilization(self, input: Option<f32>) -> Self
The expected CPU utilization at maximum invocations per minute for the instance.
NaN
indicates that the value is not available.
sourcepub fn get_cpu_utilization(&self) -> &Option<f32>
pub fn get_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, input: f32) -> Self
pub fn memory_utilization(self, input: f32) -> Self
The expected memory utilization at maximum invocations per minute for the instance.
NaN
indicates that the value is not available.
sourcepub fn set_memory_utilization(self, input: Option<f32>) -> Self
pub fn set_memory_utilization(self, input: Option<f32>) -> Self
The expected memory utilization at maximum invocations per minute for the instance.
NaN
indicates that the value is not available.
sourcepub fn get_memory_utilization(&self) -> &Option<f32>
pub fn get_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, input: i32) -> Self
pub fn model_setup_time(self, input: i32) -> Self
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.
sourcepub fn set_model_setup_time(self, input: Option<i32>) -> Self
pub fn set_model_setup_time(self, input: Option<i32>) -> Self
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.
sourcepub fn get_model_setup_time(&self) -> &Option<i32>
pub fn get_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.
sourcepub fn build(self) -> RecommendationMetrics
pub fn build(self) -> RecommendationMetrics
Consumes the builder and constructs a RecommendationMetrics
.
Trait Implementations§
source§impl Clone for RecommendationMetricsBuilder
impl Clone for RecommendationMetricsBuilder
source§fn clone(&self) -> RecommendationMetricsBuilder
fn clone(&self) -> RecommendationMetricsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecommendationMetricsBuilder
impl Debug for RecommendationMetricsBuilder
source§impl Default for RecommendationMetricsBuilder
impl Default for RecommendationMetricsBuilder
source§fn default() -> RecommendationMetricsBuilder
fn default() -> RecommendationMetricsBuilder
source§impl PartialEq<RecommendationMetricsBuilder> for RecommendationMetricsBuilder
impl PartialEq<RecommendationMetricsBuilder> for RecommendationMetricsBuilder
source§fn eq(&self, other: &RecommendationMetricsBuilder) -> bool
fn eq(&self, other: &RecommendationMetricsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.