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/x_ray.py
| def get_insight(
self,
insight_id: "capo_xray.types.insight_id.InsightId",
*,
config_overrides: Optional[XRayClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_xray.types.get_insight_request.GetInsightRequest]",
) -> OperationResponse["capo_xray.types.get_insight_result.GetInsightResult"]:
import capo_xray._operations.awsx_ray.get_insight
output, http_response = (
capo_xray._operations.awsx_ray.get_insight.get_insight(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|