Skip to content

SESV2Client.batch_get_metric_data

rboto-sesv2==0.4.0 · Service index · Types

Model summary (excerpt): 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).

Install and imports

python -m pip install "rboto[sesv2]==0.4.0"
from rboto import SESV2Client
from collections.abc import Sequence
from rboto_sesv2.types import (
    BatchGetMetricDataOutput,
    BatchGetMetricDataQuery,
)

Signature

async def batch_get_metric_data(
    *,
    queries: Sequence[BatchGetMetricDataQuery],
) -> BatchGetMetricDataOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
queries Yes A list of queries for metrics to be retrieved.

Output

BatchGetMetricDataOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
results list[MetricDataResultOutput] | None Always present MetricDataResultOutput
errors list[MetricDataErrorOutput] | None Always present MetricDataErrorOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

BatchGetMetricDataOutput, BatchGetMetricDataQuery

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_sesv2.exceptions:

BadRequestError, InternalServiceError, NotFoundError, TooManyRequestsError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model