pub struct PublishMetricsFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to PublishMetrics.
Internal only. Publishes environment health metrics to Amazon CloudWatch.
Implementations§
source§impl PublishMetricsFluentBuilder
impl PublishMetricsFluentBuilder
sourcepub fn as_input(&self) -> &PublishMetricsInputBuilder
pub fn as_input(&self) -> &PublishMetricsInputBuilder
Access the PublishMetrics as a reference.
sourcepub async fn send(
self
) -> Result<PublishMetricsOutput, SdkError<PublishMetricsError, HttpResponse>>
pub async fn send( self ) -> Result<PublishMetricsOutput, SdkError<PublishMetricsError, 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 async fn customize(
self
) -> Result<CustomizableOperation<PublishMetricsOutput, PublishMetricsError>, SdkError<PublishMetricsError>>
pub async fn customize( self ) -> Result<CustomizableOperation<PublishMetricsOutput, PublishMetricsError>, SdkError<PublishMetricsError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn environment_name(self, input: impl Into<String>) -> Self
pub fn environment_name(self, input: impl Into<String>) -> Self
Internal only. The name of the environment.
sourcepub fn set_environment_name(self, input: Option<String>) -> Self
pub fn set_environment_name(self, input: Option<String>) -> Self
Internal only. The name of the environment.
sourcepub fn get_environment_name(&self) -> &Option<String>
pub fn get_environment_name(&self) -> &Option<String>
Internal only. The name of the environment.
sourcepub fn metric_data(self, input: MetricDatum) -> Self
pub fn metric_data(self, input: MetricDatum) -> Self
Appends an item to MetricData.
To override the contents of this collection use set_metric_data.
Internal only. Publishes metrics to Amazon CloudWatch. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch.
sourcepub fn set_metric_data(self, input: Option<Vec<MetricDatum>>) -> Self
pub fn set_metric_data(self, input: Option<Vec<MetricDatum>>) -> Self
Internal only. Publishes metrics to Amazon CloudWatch. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch.
sourcepub fn get_metric_data(&self) -> &Option<Vec<MetricDatum>>
pub fn get_metric_data(&self) -> &Option<Vec<MetricDatum>>
Internal only. Publishes metrics to Amazon CloudWatch. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch.
Trait Implementations§
source§impl Clone for PublishMetricsFluentBuilder
impl Clone for PublishMetricsFluentBuilder
source§fn clone(&self) -> PublishMetricsFluentBuilder
fn clone(&self) -> PublishMetricsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more