Disables enrichment and PromQL access for CloudWatch vended metrics for supported Amazon Web Services resources in the account. After disabling, these metrics are no longer enriched with resource ARN and resource tag labels, and cannot be queried using PromQL.
Raises:
Source code in docs_src/capo_cloudwatch/_services/cloud_watch.py
| def stop_o_tel_enrichment(
self, *, config_overrides: Optional[CloudWatchClientConfig] = None
) -> "capo_cloudwatch.types.stop_o_tel_enrichment_output.StopOTelEnrichmentOutput":
"""<p>Disables enrichment and PromQL access for CloudWatch vended metrics for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html">supported Amazon Web Services resources</a> in the account. After disabling, these metrics are no longer enriched with resource ARN and resource tag labels, and cannot be queried using PromQL.</p>
Raises:
capo_cloudwatch.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_cloudwatch.types.stop_o_tel_enrichment_input.StopOTelEnrichmentInput]",
) -> OperationResponse[
"capo_cloudwatch.types.stop_o_tel_enrichment_output.StopOTelEnrichmentOutput"
]:
import capo_cloudwatch._operations.granite_service_version20100801.stop_o_tel_enrichment
output, http_response = (
capo_cloudwatch._operations.granite_service_version20100801.stop_o_tel_enrichment.stop_o_tel_enrichment(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("StopOTelEnrichment")
)
input_: capo_cloudwatch.types.stop_o_tel_enrichment_input.StopOTelEnrichmentInput = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|