Skip to content

get_send_statistics

get_send_statistics(
    *, config_overrides: Optional[SESClientConfig] = None
) -> GetSendStatisticsResponse

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:

>>> client.get_send_statistics()
Source code in docs_src/capo_ses/_services/ses.py
def get_send_statistics(
    self, *, config_overrides: Optional[SESClientConfig] = 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:

        >>> client.get_send_statistics()
    """

    def _handler(
        req: "OperationRequest[None]",
    ) -> OperationResponse[
        "capo_ses.types.get_send_statistics_response.GetSendStatisticsResponse"
    ]:
        import capo_ses._operations.simple_email_service.get_send_statistics

        output, http_response = (
            capo_ses._operations.simple_email_service.get_send_statistics.get_send_statistics(
                req.options
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetSendStatistics")
    )

    response = execute_pipeline(
        OperationRequest(input=None, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output