Retrieves the summary information of an insight. This includes impact to clients and root cause services, the top anomalous services, the category, the state of the insight, and the start and end time of the insight.
Parameters:
-
insight_id
(InsightId)
–
The insight's unique identifier. Use the GetInsightSummaries action to retrieve an InsightId.
Raises:
Source code in docs_src/capo_xray/_services/async_x_ray.py
| async def get_insight(
self,
insight_id: "capo_xray.types.insight_id.InsightId",
*,
config_overrides: Optional[AsyncXRayClientConfig] = None,
) -> "capo_xray.types.get_insight_result.GetInsightResult":
"""<p>Retrieves the summary information of an insight. This includes impact to clients and root cause services, the top anomalous services, the category, the state of the insight, and the start and end time of the insight.</p>
Args:
insight_id: <p>The insight's unique identifier. Use the GetInsightSummaries action to retrieve an InsightId.</p>
Raises:
capo_xray.errors.invalid_request_exception.InvalidRequestException: <p>The request is missing required parameters or has invalid parameters.</p>
capo_xray.errors.throttled_exception.ThrottledException: <p>The request exceeds the maximum number of requests per second.</p>
capo_xray.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_xray.types.get_insight_request.GetInsightRequest]",
) -> AsyncOperationResponse[
"capo_xray.types.get_insight_result.GetInsightResult"
]:
import capo_xray._operations.awsx_ray.get_insight
(
output,
http_response,
) = await capo_xray._operations.awsx_ray.get_insight.async_get_insight(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetInsight")
)
input_: capo_xray.types.get_insight_request.GetInsightRequest = {
"insight_id": insight_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|