Provides sending statistics for the current Amazon Web Services Region. The result is a list of data points, representing the last two weeks of sending activity. Each data point in the list contains statistics for a 15-minute period of time.
You can execute this operation no more than once per second.
Raises:
Examples:
GetSendStatistics
The following example returns Amazon SES sending statistics:
>>> await client.get_send_statistics()
Source code in docs_src/capo_ses/_services/async_ses.py
| async def get_send_statistics(
self, *, config_overrides: Optional[AsyncSESClientConfig] = None
) -> "capo_ses.types.get_send_statistics_response.GetSendStatisticsResponse":
"""<p>Provides sending statistics for the current Amazon Web Services Region. The result is a list of data points, representing the last two weeks of sending activity. Each data point in the list contains statistics for a 15-minute period of time.</p> <p>You can execute this operation no more than once per second.</p>
Raises:
capo_ses.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
GetSendStatistics
The following example returns Amazon SES sending statistics:
>>> await client.get_send_statistics()
"""
async def _handler(
req: "AsyncOperationRequest[None]",
) -> AsyncOperationResponse[
"capo_ses.types.get_send_statistics_response.GetSendStatisticsResponse"
]:
import capo_ses._operations.simple_email_service.get_send_statistics
(
output,
http_response,
) = await capo_ses._operations.simple_email_service.get_send_statistics.async_get_send_statistics(
req.options
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetSendStatistics")
)
response = await aexecute_pipeline(
AsyncOperationRequest(input=None, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|