Struct aws_sdk_lightsail::operation::get_container_service_metric_data::builders::GetContainerServiceMetricDataFluentBuilder
source · pub struct GetContainerServiceMetricDataFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetContainerServiceMetricData
.
Returns the data points of a specific metric of your Amazon Lightsail container service.
Metrics report the utilization of your resources. Monitor and collect metric data regularly to maintain the reliability, availability, and performance of your resources.
Implementations§
source§impl GetContainerServiceMetricDataFluentBuilder
impl GetContainerServiceMetricDataFluentBuilder
sourcepub fn as_input(&self) -> &GetContainerServiceMetricDataInputBuilder
pub fn as_input(&self) -> &GetContainerServiceMetricDataInputBuilder
Access the GetContainerServiceMetricData as a reference.
sourcepub async fn send(
self
) -> Result<GetContainerServiceMetricDataOutput, SdkError<GetContainerServiceMetricDataError, HttpResponse>>
pub async fn send( self ) -> Result<GetContainerServiceMetricDataOutput, SdkError<GetContainerServiceMetricDataError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<GetContainerServiceMetricDataOutput, GetContainerServiceMetricDataError, Self>
pub fn customize( self ) -> CustomizableOperation<GetContainerServiceMetricDataOutput, GetContainerServiceMetricDataError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the container service for which to get metric data.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the container service for which to get metric data.
sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
The name of the container service for which to get metric data.
sourcepub fn metric_name(self, input: ContainerServiceMetricName) -> Self
pub fn metric_name(self, input: ContainerServiceMetricName) -> Self
The metric for which you want to return information.
Valid container service metric names are listed below, along with the most useful statistics to include in your request, and the published unit value.
-
CPUUtilization
- The average percentage of compute units that are currently in use across all nodes of the container service. This metric identifies the processing power required to run containers on each node of the container service.Statistics: The most useful statistics are
Maximum
andAverage
.Unit: The published unit is
Percent
. -
MemoryUtilization
- The average percentage of available memory that is currently in use across all nodes of the container service. This metric identifies the memory required to run containers on each node of the container service.Statistics: The most useful statistics are
Maximum
andAverage
.Unit: The published unit is
Percent
.
sourcepub fn set_metric_name(self, input: Option<ContainerServiceMetricName>) -> Self
pub fn set_metric_name(self, input: Option<ContainerServiceMetricName>) -> Self
The metric for which you want to return information.
Valid container service metric names are listed below, along with the most useful statistics to include in your request, and the published unit value.
-
CPUUtilization
- The average percentage of compute units that are currently in use across all nodes of the container service. This metric identifies the processing power required to run containers on each node of the container service.Statistics: The most useful statistics are
Maximum
andAverage
.Unit: The published unit is
Percent
. -
MemoryUtilization
- The average percentage of available memory that is currently in use across all nodes of the container service. This metric identifies the memory required to run containers on each node of the container service.Statistics: The most useful statistics are
Maximum
andAverage
.Unit: The published unit is
Percent
.
sourcepub fn get_metric_name(&self) -> &Option<ContainerServiceMetricName>
pub fn get_metric_name(&self) -> &Option<ContainerServiceMetricName>
The metric for which you want to return information.
Valid container service metric names are listed below, along with the most useful statistics to include in your request, and the published unit value.
-
CPUUtilization
- The average percentage of compute units that are currently in use across all nodes of the container service. This metric identifies the processing power required to run containers on each node of the container service.Statistics: The most useful statistics are
Maximum
andAverage
.Unit: The published unit is
Percent
. -
MemoryUtilization
- The average percentage of available memory that is currently in use across all nodes of the container service. This metric identifies the memory required to run containers on each node of the container service.Statistics: The most useful statistics are
Maximum
andAverage
.Unit: The published unit is
Percent
.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The start time of the time period.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The start time of the time period.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The start time of the time period.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The end time of the time period.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
The end time of the time period.
sourcepub fn period(self, input: i32) -> Self
pub fn period(self, input: i32) -> Self
The granularity, in seconds, of the returned data points.
All container service metric data is available in 5-minute (300 seconds) granularity.
sourcepub fn set_period(self, input: Option<i32>) -> Self
pub fn set_period(self, input: Option<i32>) -> Self
The granularity, in seconds, of the returned data points.
All container service metric data is available in 5-minute (300 seconds) granularity.
sourcepub fn get_period(&self) -> &Option<i32>
pub fn get_period(&self) -> &Option<i32>
The granularity, in seconds, of the returned data points.
All container service metric data is available in 5-minute (300 seconds) granularity.
sourcepub fn statistics(self, input: MetricStatistic) -> Self
pub fn statistics(self, input: MetricStatistic) -> Self
Appends an item to statistics
.
To override the contents of this collection use set_statistics
.
The statistic for the metric.
The following statistics are available:
-
Minimum
- The lowest value observed during the specified period. Use this value to determine low volumes of activity for your application. -
Maximum
- The highest value observed during the specified period. Use this value to determine high volumes of activity for your application. -
Sum
- All values submitted for the matching metric added together. You can use this statistic to determine the total volume of a metric. -
Average
- The value ofSum
/SampleCount
during the specified period. By comparing this statistic with theMinimum
andMaximum
values, you can determine the full scope of a metric and how close the average use is to theMinimum
andMaximum
values. This comparison helps you to know when to increase or decrease your resources. -
SampleCount
- The count, or number, of data points used for the statistical calculation.
sourcepub fn set_statistics(self, input: Option<Vec<MetricStatistic>>) -> Self
pub fn set_statistics(self, input: Option<Vec<MetricStatistic>>) -> Self
The statistic for the metric.
The following statistics are available:
-
Minimum
- The lowest value observed during the specified period. Use this value to determine low volumes of activity for your application. -
Maximum
- The highest value observed during the specified period. Use this value to determine high volumes of activity for your application. -
Sum
- All values submitted for the matching metric added together. You can use this statistic to determine the total volume of a metric. -
Average
- The value ofSum
/SampleCount
during the specified period. By comparing this statistic with theMinimum
andMaximum
values, you can determine the full scope of a metric and how close the average use is to theMinimum
andMaximum
values. This comparison helps you to know when to increase or decrease your resources. -
SampleCount
- The count, or number, of data points used for the statistical calculation.
sourcepub fn get_statistics(&self) -> &Option<Vec<MetricStatistic>>
pub fn get_statistics(&self) -> &Option<Vec<MetricStatistic>>
The statistic for the metric.
The following statistics are available:
-
Minimum
- The lowest value observed during the specified period. Use this value to determine low volumes of activity for your application. -
Maximum
- The highest value observed during the specified period. Use this value to determine high volumes of activity for your application. -
Sum
- All values submitted for the matching metric added together. You can use this statistic to determine the total volume of a metric. -
Average
- The value ofSum
/SampleCount
during the specified period. By comparing this statistic with theMinimum
andMaximum
values, you can determine the full scope of a metric and how close the average use is to theMinimum
andMaximum
values. This comparison helps you to know when to increase or decrease your resources. -
SampleCount
- The count, or number, of data points used for the statistical calculation.
Trait Implementations§
source§impl Clone for GetContainerServiceMetricDataFluentBuilder
impl Clone for GetContainerServiceMetricDataFluentBuilder
source§fn clone(&self) -> GetContainerServiceMetricDataFluentBuilder
fn clone(&self) -> GetContainerServiceMetricDataFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for GetContainerServiceMetricDataFluentBuilder
impl !RefUnwindSafe for GetContainerServiceMetricDataFluentBuilder
impl Send for GetContainerServiceMetricDataFluentBuilder
impl Sync for GetContainerServiceMetricDataFluentBuilder
impl Unpin for GetContainerServiceMetricDataFluentBuilder
impl !UnwindSafe for GetContainerServiceMetricDataFluentBuilder
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