Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Enables enhanced Kinesis data stream monitoring for shard-level metrics.
When invoking this API, it is recommended you use the StreamARN
input
parameter rather than the StreamName
input parameter.
Synopsis
- data EnableEnhancedMonitoring = EnableEnhancedMonitoring' {}
- newEnableEnhancedMonitoring :: EnableEnhancedMonitoring
- enableEnhancedMonitoring_streamARN :: Lens' EnableEnhancedMonitoring (Maybe Text)
- enableEnhancedMonitoring_streamName :: Lens' EnableEnhancedMonitoring (Maybe Text)
- enableEnhancedMonitoring_shardLevelMetrics :: Lens' EnableEnhancedMonitoring [MetricsName]
- data EnhancedMonitoringOutput = EnhancedMonitoringOutput' {}
- newEnhancedMonitoringOutput :: EnhancedMonitoringOutput
- enhancedMonitoringOutput_currentShardLevelMetrics :: Lens' EnhancedMonitoringOutput (Maybe [MetricsName])
- enhancedMonitoringOutput_desiredShardLevelMetrics :: Lens' EnhancedMonitoringOutput (Maybe [MetricsName])
- enhancedMonitoringOutput_streamARN :: Lens' EnhancedMonitoringOutput (Maybe Text)
- enhancedMonitoringOutput_streamName :: Lens' EnhancedMonitoringOutput (Maybe Text)
Creating a Request
data EnableEnhancedMonitoring Source #
Represents the input for EnableEnhancedMonitoring.
See: newEnableEnhancedMonitoring
smart constructor.
EnableEnhancedMonitoring' | |
|
Instances
newEnableEnhancedMonitoring :: EnableEnhancedMonitoring Source #
Create a value of EnableEnhancedMonitoring
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
EnableEnhancedMonitoring
, enableEnhancedMonitoring_streamARN
- The ARN of the stream.
EnableEnhancedMonitoring
, enableEnhancedMonitoring_streamName
- The name of the stream for which to enable enhanced monitoring.
EnableEnhancedMonitoring
, enableEnhancedMonitoring_shardLevelMetrics
- 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.
Request Lenses
enableEnhancedMonitoring_streamARN :: Lens' EnableEnhancedMonitoring (Maybe Text) Source #
The ARN of the stream.
enableEnhancedMonitoring_streamName :: Lens' EnableEnhancedMonitoring (Maybe Text) Source #
The name of the stream for which to enable enhanced monitoring.
enableEnhancedMonitoring_shardLevelMetrics :: Lens' EnableEnhancedMonitoring [MetricsName] Source #
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.
Destructuring the Response
data EnhancedMonitoringOutput Source #
Represents the output for EnableEnhancedMonitoring and DisableEnhancedMonitoring.
See: newEnhancedMonitoringOutput
smart constructor.
EnhancedMonitoringOutput' | |
|
Instances
newEnhancedMonitoringOutput :: EnhancedMonitoringOutput Source #
Create a value of EnhancedMonitoringOutput
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:currentShardLevelMetrics:EnhancedMonitoringOutput'
, enhancedMonitoringOutput_currentShardLevelMetrics
- Represents the current state of the metrics that are in the enhanced
state before the operation.
$sel:desiredShardLevelMetrics:EnhancedMonitoringOutput'
, enhancedMonitoringOutput_desiredShardLevelMetrics
- Represents the list of all the metrics that would be in the enhanced
state after the operation.
$sel:streamARN:EnhancedMonitoringOutput'
, enhancedMonitoringOutput_streamARN
- The ARN of the stream.
$sel:streamName:EnhancedMonitoringOutput'
, enhancedMonitoringOutput_streamName
- The name of the Kinesis data stream.
Response Lenses
enhancedMonitoringOutput_currentShardLevelMetrics :: Lens' EnhancedMonitoringOutput (Maybe [MetricsName]) Source #
Represents the current state of the metrics that are in the enhanced state before the operation.
enhancedMonitoringOutput_desiredShardLevelMetrics :: Lens' EnhancedMonitoringOutput (Maybe [MetricsName]) Source #
Represents the list of all the metrics that would be in the enhanced state after the operation.
enhancedMonitoringOutput_streamARN :: Lens' EnhancedMonitoringOutput (Maybe Text) Source #
The ARN of the stream.
enhancedMonitoringOutput_streamName :: Lens' EnhancedMonitoringOutput (Maybe Text) Source #
The name of the Kinesis data stream.