Returns the current status of vended metric enrichment for the account, including whether CloudWatch vended metrics are enriched with resource ARN and resource tag labels and queryable using PromQL. For the list of supported resources, see Supported Amazon Web Services infrastructure metrics.
Raises:
Source code in docs_src/capo_cloudwatch/_services/cloud_watch.py
| def get_o_tel_enrichment(
self, *, config_overrides: Optional[CloudWatchClientConfig] = None
) -> "capo_cloudwatch.types.get_o_tel_enrichment_output.GetOTelEnrichmentOutput":
"""<p>Returns the current status of vended metric enrichment for the account, including whether CloudWatch vended metrics are enriched with resource ARN and resource tag labels and queryable using PromQL. For the list of supported resources, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html">Supported Amazon Web Services infrastructure metrics</a>.</p>
Raises:
capo_cloudwatch.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_cloudwatch.types.get_o_tel_enrichment_input.GetOTelEnrichmentInput]",
) -> OperationResponse[
"capo_cloudwatch.types.get_o_tel_enrichment_output.GetOTelEnrichmentOutput"
]:
import capo_cloudwatch._operations.granite_service_version20100801.get_o_tel_enrichment
output, http_response = (
capo_cloudwatch._operations.granite_service_version20100801.get_o_tel_enrichment.get_o_tel_enrichment(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetOTelEnrichment")
)
input_: capo_cloudwatch.types.get_o_tel_enrichment_input.GetOTelEnrichmentInput = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|