import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetInsightRequest, GetInsightResult } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, XRayClientResolvedConfig } from "../XRayClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetInsightCommand}. */ export interface GetInsightCommandInput extends GetInsightRequest { } /** * @public * * The output of {@link GetInsightCommand}. */ export interface GetInsightCommandOutput extends GetInsightResult, __MetadataBearer { } declare const GetInsightCommand_base: { new (input: GetInsightCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetInsightCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { XRayClient, GetInsightCommand } from "@aws-sdk/client-xray"; // ES Modules import * // const { XRayClient, GetInsightCommand } = require("@aws-sdk/client-xray"); // CommonJS import * // import type { XRayClientConfig } from "@aws-sdk/client-xray"; * const config = {}; // type is XRayClientConfig * const client = new XRayClient(config); * const input = { // GetInsightRequest * InsightId: "STRING_VALUE", // required * }; * const command = new GetInsightCommand(input); * const response = await client.send(command); * // { // GetInsightResult * // Insight: { // Insight * // InsightId: "STRING_VALUE", * // GroupARN: "STRING_VALUE", * // GroupName: "STRING_VALUE", * // RootCauseServiceId: { // ServiceId * // Name: "STRING_VALUE", * // Names: [ // ServiceNames * // "STRING_VALUE", * // ], * // AccountId: "STRING_VALUE", * // Type: "STRING_VALUE", * // }, * // Categories: [ // InsightCategoryList * // "FAULT", * // ], * // State: "ACTIVE" || "CLOSED", * // StartTime: new Date("TIMESTAMP"), * // EndTime: new Date("TIMESTAMP"), * // Summary: "STRING_VALUE", * // ClientRequestImpactStatistics: { // RequestImpactStatistics * // FaultCount: Number("long"), * // OkCount: Number("long"), * // TotalCount: Number("long"), * // }, * // RootCauseServiceRequestImpactStatistics: { * // FaultCount: Number("long"), * // OkCount: Number("long"), * // TotalCount: Number("long"), * // }, * // TopAnomalousServices: [ // AnomalousServiceList * // { // AnomalousService * // ServiceId: { * // Name: "STRING_VALUE", * // Names: [ * // "STRING_VALUE", * // ], * // AccountId: "STRING_VALUE", * // Type: "STRING_VALUE", * // }, * // }, * // ], * // }, * // }; * * ``` * * @param GetInsightCommandInput - {@link GetInsightCommandInput} * @returns {@link GetInsightCommandOutput} * @see {@link GetInsightCommandInput} for command's `input` shape. * @see {@link GetInsightCommandOutput} for command's `response` shape. * @see {@link XRayClientResolvedConfig | config} for XRayClient's `config` shape. * * @throws {@link InvalidRequestException} (client fault) *

The request is missing required parameters or has invalid parameters.

* * @throws {@link ThrottledException} (client fault) *

The request exceeds the maximum number of requests per second.

* * @throws {@link XRayServiceException} *

Base exception class for all service exceptions from XRay service.

* * * @public */ export declare class GetInsightCommand extends GetInsightCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetInsightRequest; output: GetInsightResult; }; sdk: { input: GetInsightCommandInput; output: GetInsightCommandOutput; }; }; }