import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { BatchGetMetricDataRequest, BatchGetMetricDataResponse } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, SESv2ClientResolvedConfig } from "../SESv2Client"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link BatchGetMetricDataCommand}. */ export interface BatchGetMetricDataCommandInput extends BatchGetMetricDataRequest { } /** * @public * * The output of {@link BatchGetMetricDataCommand}. */ export interface BatchGetMetricDataCommandOutput extends BatchGetMetricDataResponse, __MetadataBearer { } declare const BatchGetMetricDataCommand_base: { new (input: BatchGetMetricDataCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: BatchGetMetricDataCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Retrieves batches of metric data collected based on your sending activity.

*

You can execute this operation no more than 16 times per second, * and with at most 160 queries from the batches per second (cumulative).

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SESv2Client, BatchGetMetricDataCommand } from "@aws-sdk/client-sesv2"; // ES Modules import * // const { SESv2Client, BatchGetMetricDataCommand } = require("@aws-sdk/client-sesv2"); // CommonJS import * // import type { SESv2ClientConfig } from "@aws-sdk/client-sesv2"; * const config = {}; // type is SESv2ClientConfig * const client = new SESv2Client(config); * const input = { // BatchGetMetricDataRequest * Queries: [ // BatchGetMetricDataQueries // required * { // BatchGetMetricDataQuery * Id: "STRING_VALUE", // required * Namespace: "VDM", // required * Metric: "SEND" || "COMPLAINT" || "PERMANENT_BOUNCE" || "TRANSIENT_BOUNCE" || "OPEN" || "CLICK" || "DELIVERY" || "DELIVERY_OPEN" || "DELIVERY_CLICK" || "DELIVERY_COMPLAINT", // required * Dimensions: { // Dimensions * "": "STRING_VALUE", * }, * StartDate: new Date("TIMESTAMP"), // required * EndDate: new Date("TIMESTAMP"), // required * }, * ], * }; * const command = new BatchGetMetricDataCommand(input); * const response = await client.send(command); * // { // BatchGetMetricDataResponse * // Results: [ // MetricDataResultList * // { // MetricDataResult * // Id: "STRING_VALUE", * // Timestamps: [ // TimestampList * // new Date("TIMESTAMP"), * // ], * // Values: [ // MetricValueList * // Number("long"), * // ], * // }, * // ], * // Errors: [ // MetricDataErrorList * // { // MetricDataError * // Id: "STRING_VALUE", * // Code: "INTERNAL_FAILURE" || "ACCESS_DENIED", * // Message: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param BatchGetMetricDataCommandInput - {@link BatchGetMetricDataCommandInput} * @returns {@link BatchGetMetricDataCommandOutput} * @see {@link BatchGetMetricDataCommandInput} for command's `input` shape. * @see {@link BatchGetMetricDataCommandOutput} for command's `response` shape. * @see {@link SESv2ClientResolvedConfig | config} for SESv2Client's `config` shape. * * @throws {@link BadRequestException} (client fault) *

The input you provided is invalid.

* * @throws {@link InternalServiceErrorException} (server fault) *

The request couldn't be processed because an error occurred with the Amazon SES API v2.

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

The resource you attempted to access doesn't exist.

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

Too many requests have been made to the operation.

* * @throws {@link SESv2ServiceException} *

Base exception class for all service exceptions from SESv2 service.

* * * @public */ export declare class BatchGetMetricDataCommand extends BatchGetMetricDataCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: BatchGetMetricDataRequest; output: BatchGetMetricDataResponse; }; sdk: { input: BatchGetMetricDataCommandInput; output: BatchGetMetricDataCommandOutput; }; }; }