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

Requests a sampling quota for rules that the service is using to sample requests. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { XRayClient, GetSamplingTargetsCommand } from "@aws-sdk/client-xray"; // ES Modules import * // const { XRayClient, GetSamplingTargetsCommand } = 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 = { // GetSamplingTargetsRequest * SamplingStatisticsDocuments: [ // SamplingStatisticsDocumentList // required * { // SamplingStatisticsDocument * RuleName: "STRING_VALUE", // required * ClientID: "STRING_VALUE", // required * Timestamp: new Date("TIMESTAMP"), // required * RequestCount: Number("int"), // required * SampledCount: Number("int"), // required * BorrowCount: Number("int"), * }, * ], * SamplingBoostStatisticsDocuments: [ // SamplingBoostStatisticsDocumentList * { // SamplingBoostStatisticsDocument * RuleName: "STRING_VALUE", // required * ServiceName: "STRING_VALUE", // required * Timestamp: new Date("TIMESTAMP"), // required * AnomalyCount: Number("int"), // required * TotalCount: Number("int"), // required * SampledAnomalyCount: Number("int"), // required * }, * ], * }; * const command = new GetSamplingTargetsCommand(input); * const response = await client.send(command); * // { // GetSamplingTargetsResult * // SamplingTargetDocuments: [ // SamplingTargetDocumentList * // { // SamplingTargetDocument * // RuleName: "STRING_VALUE", * // FixedRate: Number("double"), * // ReservoirQuota: Number("int"), * // ReservoirQuotaTTL: new Date("TIMESTAMP"), * // Interval: Number("int"), * // SamplingBoost: { // SamplingBoost * // BoostRate: Number("double"), // required * // BoostRateTTL: new Date("TIMESTAMP"), // required * // }, * // }, * // ], * // LastRuleModification: new Date("TIMESTAMP"), * // UnprocessedStatistics: [ // UnprocessedStatisticsList * // { // UnprocessedStatistics * // RuleName: "STRING_VALUE", * // ErrorCode: "STRING_VALUE", * // Message: "STRING_VALUE", * // }, * // ], * // UnprocessedBoostStatistics: [ * // { * // RuleName: "STRING_VALUE", * // ErrorCode: "STRING_VALUE", * // Message: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param GetSamplingTargetsCommandInput - {@link GetSamplingTargetsCommandInput} * @returns {@link GetSamplingTargetsCommandOutput} * @see {@link GetSamplingTargetsCommandInput} for command's `input` shape. * @see {@link GetSamplingTargetsCommandOutput} 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 GetSamplingTargetsCommand extends GetSamplingTargetsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetSamplingTargetsRequest; output: GetSamplingTargetsResult; }; sdk: { input: GetSamplingTargetsCommandInput; output: GetSamplingTargetsCommandOutput; }; }; }