#[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.
This field is required.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 .
This field is required.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.
This field is required.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.
This field is required.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 for RecommendationMetricsBuilder
 
impl PartialEq 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 ==.impl StructuralPartialEq for RecommendationMetricsBuilder
Auto Trait Implementations§
impl Freeze for RecommendationMetricsBuilder
impl RefUnwindSafe for RecommendationMetricsBuilder
impl Send for RecommendationMetricsBuilder
impl Sync for RecommendationMetricsBuilder
impl Unpin for RecommendationMetricsBuilder
impl UnwindSafe for RecommendationMetricsBuilder
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> 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