import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetRecommendationsRequest, GetRecommendationsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetRecommendationsCommand}. */ export interface GetRecommendationsCommandInput extends GetRecommendationsRequest { } /** * @public * * The output of {@link GetRecommendationsCommand}. */ export interface GetRecommendationsCommandOutput extends GetRecommendationsResponse, __MetadataBearer { } declare const GetRecommendationsCommand_base: { new (input: GetRecommendationsCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetRecommendationsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

* Returns a list of * * Recommendation * * objects that contain recommendations for a profiling group for a given time period. A list of * * Anomaly * * objects that contains details about anomalies detected in the profiling group for the same time period is also * returned. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodeGuruProfilerClient, GetRecommendationsCommand } from "@aws-sdk/client-codeguruprofiler"; // ES Modules import * // const { CodeGuruProfilerClient, GetRecommendationsCommand } = require("@aws-sdk/client-codeguruprofiler"); // CommonJS import * // import type { CodeGuruProfilerClientConfig } from "@aws-sdk/client-codeguruprofiler"; * const config = {}; // type is CodeGuruProfilerClientConfig * const client = new CodeGuruProfilerClient(config); * const input = { // GetRecommendationsRequest * profilingGroupName: "STRING_VALUE", // required * startTime: new Date("TIMESTAMP"), // required * endTime: new Date("TIMESTAMP"), // required * locale: "STRING_VALUE", * }; * const command = new GetRecommendationsCommand(input); * const response = await client.send(command); * // { // GetRecommendationsResponse * // profilingGroupName: "STRING_VALUE", // required * // profileStartTime: new Date("TIMESTAMP"), // required * // profileEndTime: new Date("TIMESTAMP"), // required * // recommendations: [ // Recommendations // required * // { // Recommendation * // allMatchesCount: Number("int"), // required * // allMatchesSum: Number("double"), // required * // pattern: { // Pattern * // id: "STRING_VALUE", * // name: "STRING_VALUE", * // description: "STRING_VALUE", * // resolutionSteps: "STRING_VALUE", * // targetFrames: [ // TargetFrames * // [ // TargetFrame * // "STRING_VALUE", * // ], * // ], * // thresholdPercent: Number("double"), * // countersToAggregate: [ // Strings * // "STRING_VALUE", * // ], * // }, * // topMatches: [ // Matches // required * // { // Match * // targetFramesIndex: Number("int"), * // frameAddress: "STRING_VALUE", * // thresholdBreachValue: Number("double"), * // }, * // ], * // startTime: new Date("TIMESTAMP"), // required * // endTime: new Date("TIMESTAMP"), // required * // }, * // ], * // anomalies: [ // Anomalies // required * // { // Anomaly * // metric: { // Metric * // frameName: "STRING_VALUE", // required * // type: "STRING_VALUE", // required * // threadStates: [ // required * // "STRING_VALUE", * // ], * // }, * // reason: "STRING_VALUE", // required * // instances: [ // AnomalyInstances // required * // { // AnomalyInstance * // id: "STRING_VALUE", // required * // startTime: new Date("TIMESTAMP"), // required * // endTime: new Date("TIMESTAMP"), * // userFeedback: { // UserFeedback * // type: "STRING_VALUE", // required * // }, * // }, * // ], * // }, * // ], * // }; * * ``` * * @param GetRecommendationsCommandInput - {@link GetRecommendationsCommandInput} * @returns {@link GetRecommendationsCommandOutput} * @see {@link GetRecommendationsCommandInput} for command's `input` shape. * @see {@link GetRecommendationsCommandOutput} for command's `response` shape. * @see {@link CodeGuruProfilerClientResolvedConfig | config} for CodeGuruProfilerClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

The server encountered an internal error and is unable to complete the request.

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

The resource specified in the request does not exist.

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

The request was denied due to request throttling.

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

The parameter is not valid.

* * @throws {@link CodeGuruProfilerServiceException} *

Base exception class for all service exceptions from CodeGuruProfiler service.

* * * @public */ export declare class GetRecommendationsCommand extends GetRecommendationsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetRecommendationsRequest; output: GetRecommendationsResponse; }; sdk: { input: GetRecommendationsCommandInput; output: GetRecommendationsCommandOutput; }; }; }