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/async_cloud_watch.py
| async def get_o_tel_enrichment(
self, *, config_overrides: Optional[AsyncCloudWatchClientConfig] = 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cloudwatch.types.get_o_tel_enrichment_input.GetOTelEnrichmentInput]",
) -> AsyncOperationResponse[
"capo_cloudwatch.types.get_o_tel_enrichment_output.GetOTelEnrichmentOutput"
]:
import capo_cloudwatch._operations.granite_service_version20100801.get_o_tel_enrichment
(
output,
http_response,
) = await capo_cloudwatch._operations.granite_service_version20100801.get_o_tel_enrichment.async_get_o_tel_enrichment(
req.options, req.input
)
return AsyncOperationResponse(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 = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|