pub struct Builder { /* private fields */ }
Expand description
A builder for EnableEnhancedMonitoringInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn stream_name(self, input: impl Into<String>) -> Self
pub fn stream_name(self, input: impl Into<String>) -> Self
The name of the stream for which to enable enhanced monitoring.
sourcepub fn set_stream_name(self, input: Option<String>) -> Self
pub fn set_stream_name(self, input: Option<String>) -> Self
The name of the stream for which to enable enhanced monitoring.
sourcepub fn shard_level_metrics(self, input: MetricsName) -> Self
pub fn shard_level_metrics(self, input: MetricsName) -> Self
Appends an item to shard_level_metrics
.
To override the contents of this collection use set_shard_level_metrics
.
List of shard-level metrics to enable.
The following are the valid shard-level metrics. The value "ALL
" enables every metric.
-
IncomingBytes
-
IncomingRecords
-
OutgoingBytes
-
OutgoingRecords
-
WriteProvisionedThroughputExceeded
-
ReadProvisionedThroughputExceeded
-
IteratorAgeMilliseconds
-
ALL
For more information, see Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the Amazon Kinesis Data Streams Developer Guide.
sourcepub fn set_shard_level_metrics(self, input: Option<Vec<MetricsName>>) -> Self
pub fn set_shard_level_metrics(self, input: Option<Vec<MetricsName>>) -> Self
List of shard-level metrics to enable.
The following are the valid shard-level metrics. The value "ALL
" enables every metric.
-
IncomingBytes
-
IncomingRecords
-
OutgoingBytes
-
OutgoingRecords
-
WriteProvisionedThroughputExceeded
-
ReadProvisionedThroughputExceeded
-
IteratorAgeMilliseconds
-
ALL
For more information, see Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the Amazon Kinesis Data Streams Developer Guide.
sourcepub fn stream_arn(self, input: impl Into<String>) -> Self
pub fn stream_arn(self, input: impl Into<String>) -> Self
The ARN of the stream.
sourcepub fn set_stream_arn(self, input: Option<String>) -> Self
pub fn set_stream_arn(self, input: Option<String>) -> Self
The ARN of the stream.
sourcepub fn build(self) -> Result<EnableEnhancedMonitoringInput, BuildError>
pub fn build(self) -> Result<EnableEnhancedMonitoringInput, BuildError>
Consumes the builder and constructs a EnableEnhancedMonitoringInput
.