BatchGetMetricData
Source:
src/AWS/SES/BatchGetMetricData.ts
Runtime binding for sesv2:BatchGetMetricData.
Fetches up to 10 aggregated deliverability metric time-series in one call —
sends, deliveries, bounces, complaints, opens, clicks — over a date range,
optionally sliced by dimension (ISP, configuration set, etc.). Requires VDM
(Virtual Deliverability Manager) to be enabled; a malformed query surfaces
the typed BadRequestException. Account-level operation. Provide the
implementation with Effect.provide(AWS.SES.BatchGetMetricDataHttp).
Deliverability Insights
Section titled “Deliverability Insights”// init — account-level binding, no resource argumentconst getMetrics = yield* SES.BatchGetMetricData();
// runtimeconst { Results } = yield* getMetrics({ Queries: [ { Id: "sends", Namespace: "VDM", Metric: "SEND", StartDate: new Date(Date.now() - 7 * 24 * 3600 * 1000), EndDate: new Date(), }, ],});