enable_enhanced_monitoring
async
¶
enable_enhanced_monitoring(
shard_level_metrics: MetricsNameList,
*,
config_overrides: Optional[AsyncKinesisClientConfig] = None,
stream_name: Optional[StreamName] = None,
stream_arn: Optional[StreamARN] = None,
stream_id: Optional[StreamId] = None,
) -> EnhancedMonitoringOutput
Enables enhanced Kinesis data stream monitoring for shard-level metrics.
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:
-
stream_name(Optional[StreamName], default:None) –The name of the stream for which to enable enhanced monitoring.
-
shard_level_metrics(MetricsNameList) –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.
-
-
stream_arn(Optional[StreamARN], default:None) –The ARN of the stream.
-
stream_id(Optional[StreamId], default:None) –Not Implemented. Reserved for future use.
Raises:
-
AccessDeniedException–Specifies that you do not have the permissions required to perform this operation.
-
InvalidArgumentException–A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message.
-
LimitExceededException–The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
-
ResourceInUseException–The resource is not available for this operation. For successful operation, the resource must be in the
ACTIVEstate. -
ResourceNotFoundException–The requested resource could not be found. The stream might not be specified correctly.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kinesis/_services/async_kinesis.py
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 | |