Struct aws_sdk_lightsail::operation::get_container_service_metric_data::builders::GetContainerServiceMetricDataInputBuilder
source · #[non_exhaustive]pub struct GetContainerServiceMetricDataInputBuilder { /* private fields */ }
Expand description
A builder for GetContainerServiceMetricDataInput
.
Implementations§
source§impl GetContainerServiceMetricDataInputBuilder
impl GetContainerServiceMetricDataInputBuilder
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.
This field is required.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.
This field is required.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 end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
The end time of the time period.
This field is required.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.
This field is required.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.
sourcepub fn build(self) -> Result<GetContainerServiceMetricDataInput, BuildError>
pub fn build(self) -> Result<GetContainerServiceMetricDataInput, BuildError>
Consumes the builder and constructs a GetContainerServiceMetricDataInput
.
source§impl GetContainerServiceMetricDataInputBuilder
impl GetContainerServiceMetricDataInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetContainerServiceMetricDataOutput, SdkError<GetContainerServiceMetricDataError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetContainerServiceMetricDataOutput, SdkError<GetContainerServiceMetricDataError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetContainerServiceMetricDataInputBuilder
impl Clone for GetContainerServiceMetricDataInputBuilder
source§fn clone(&self) -> GetContainerServiceMetricDataInputBuilder
fn clone(&self) -> GetContainerServiceMetricDataInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetContainerServiceMetricDataInputBuilder
impl Default for GetContainerServiceMetricDataInputBuilder
source§fn default() -> GetContainerServiceMetricDataInputBuilder
fn default() -> GetContainerServiceMetricDataInputBuilder
source§impl PartialEq for GetContainerServiceMetricDataInputBuilder
impl PartialEq for GetContainerServiceMetricDataInputBuilder
source§fn eq(&self, other: &GetContainerServiceMetricDataInputBuilder) -> bool
fn eq(&self, other: &GetContainerServiceMetricDataInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetContainerServiceMetricDataInputBuilder
Auto Trait Implementations§
impl Freeze for GetContainerServiceMetricDataInputBuilder
impl RefUnwindSafe for GetContainerServiceMetricDataInputBuilder
impl Send for GetContainerServiceMetricDataInputBuilder
impl Sync for GetContainerServiceMetricDataInputBuilder
impl Unpin for GetContainerServiceMetricDataInputBuilder
impl UnwindSafe for GetContainerServiceMetricDataInputBuilder
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