import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetJourneyRunExecutionActivityMetricsRequest, GetJourneyRunExecutionActivityMetricsResponse } from "../models/models_1"; import type { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetJourneyRunExecutionActivityMetricsCommand}. */ export interface GetJourneyRunExecutionActivityMetricsCommandInput extends GetJourneyRunExecutionActivityMetricsRequest { } /** * @public * * The output of {@link GetJourneyRunExecutionActivityMetricsCommand}. */ export interface GetJourneyRunExecutionActivityMetricsCommandOutput extends GetJourneyRunExecutionActivityMetricsResponse, __MetadataBearer { } declare const GetJourneyRunExecutionActivityMetricsCommand_base: { new (input: GetJourneyRunExecutionActivityMetricsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetJourneyRunExecutionActivityMetricsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Retrieves (queries) pre-aggregated data for a standard run execution metric that applies to a journey activity.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { PinpointClient, GetJourneyRunExecutionActivityMetricsCommand } from "@aws-sdk/client-pinpoint"; // ES Modules import * // const { PinpointClient, GetJourneyRunExecutionActivityMetricsCommand } = require("@aws-sdk/client-pinpoint"); // CommonJS import * // import type { PinpointClientConfig } from "@aws-sdk/client-pinpoint"; * const config = {}; // type is PinpointClientConfig * const client = new PinpointClient(config); * const input = { // GetJourneyRunExecutionActivityMetricsRequest * ApplicationId: "STRING_VALUE", // required * JourneyActivityId: "STRING_VALUE", // required * JourneyId: "STRING_VALUE", // required * NextToken: "STRING_VALUE", * PageSize: "STRING_VALUE", * RunId: "STRING_VALUE", // required * }; * const command = new GetJourneyRunExecutionActivityMetricsCommand(input); * const response = await client.send(command); * // { // GetJourneyRunExecutionActivityMetricsResponse * // JourneyRunExecutionActivityMetricsResponse: { // JourneyRunExecutionActivityMetricsResponse * // ActivityType: "STRING_VALUE", // required * // ApplicationId: "STRING_VALUE", // required * // JourneyActivityId: "STRING_VALUE", // required * // JourneyId: "STRING_VALUE", // required * // LastEvaluatedTime: "STRING_VALUE", // required * // Metrics: { // MapOf__string // required * // "": "STRING_VALUE", * // }, * // RunId: "STRING_VALUE", // required * // }, * // }; * * ``` * * @param GetJourneyRunExecutionActivityMetricsCommandInput - {@link GetJourneyRunExecutionActivityMetricsCommandInput} * @returns {@link GetJourneyRunExecutionActivityMetricsCommandOutput} * @see {@link GetJourneyRunExecutionActivityMetricsCommandInput} for command's `input` shape. * @see {@link GetJourneyRunExecutionActivityMetricsCommandOutput} for command's `response` shape. * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

* * @throws {@link PinpointServiceException} *

Base exception class for all service exceptions from Pinpoint service.

* * * @example To get the activity execution metrics for a journey run * ```javascript * // The following example gets activity execution metrics for a single run of a journey. * const input = { * ApplicationId: "11111111112222222222333333333344", * JourneyActivityId: "AAAAAAAAAA", * JourneyId: "aaaaaaaaaabbbbbbbbbbccccccccccdd", * RunId: "99999999998888888888777777777766" * }; * const command = new GetJourneyRunExecutionActivityMetricsCommand(input); * const response = await client.send(command); * /* response is * { * JourneyRunExecutionActivityMetricsResponse: { * ActivityType: "EMAIL", * ApplicationId: "11111111112222222222333333333344", * JourneyActivityId: "AAAAAAAAAA", * JourneyId: "aaaaaaaaaabbbbbbbbbbccccccccccdd", * LastEvaluatedTime: "2000-01-01T00:00:05.000Z", * Metrics: { * SUCCESS: "1" * }, * RunId: "99999999998888888888777777777766" * } * } * *\/ * ``` * * @public */ export declare class GetJourneyRunExecutionActivityMetricsCommand extends GetJourneyRunExecutionActivityMetricsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetJourneyRunExecutionActivityMetricsRequest; output: GetJourneyRunExecutionActivityMetricsResponse; }; sdk: { input: GetJourneyRunExecutionActivityMetricsCommandInput; output: GetJourneyRunExecutionActivityMetricsCommandOutput; }; }; }