enable_enhanced_monitoring¶
Operation¶
enable_enhanced_monitoring
async
¶
enable_enhanced_monitoring(input: EnableEnhancedMonitoringInput, plugins: list[Plugin] | None = None) -> EnableEnhancedMonitoringOutput
Enables enhanced Kinesis data stream monitoring for shard-level metrics.
Note
When invoking this API, you must use either the StreamARN or the
StreamName parameter, or both. It is recommended that you use the
StreamARN input parameter when you invoke this API.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
EnableEnhancedMonitoringInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
EnableEnhancedMonitoringOutput
|
An instance of |
Input¶
EnableEnhancedMonitoringInput
dataclass
¶
Bases: _SerdeShape
Represents the input for EnableEnhancedMonitoring.
Attributes¶
shard_level_metrics
class-attribute
instance-attribute
¶
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.
Output¶
EnableEnhancedMonitoringOutput
dataclass
¶
Bases: _SerdeShape
Represents the output for EnableEnhancedMonitoring and DisableEnhancedMonitoring.
Attributes¶
current_shard_level_metrics
class-attribute
instance-attribute
¶
Represents the current state of the metrics that are in the enhanced state before the operation.
desired_shard_level_metrics
class-attribute
instance-attribute
¶
Represents the list of all the metrics that would be in the enhanced state after the operation.
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.