Interface Stats

All Known Implementing Classes:
StatsImpl

public interface Stats
Interface representing the Mailtrap API for interaction with sending statistics
  • Method Details

    • getStats

      SendingStatsResponse getStats(long accountId, StatsFilter filter)
      Get aggregated sending stats
      Parameters:
      accountId - unique account ID
      filter - stats filter parameters
      Returns:
      aggregated sending statistics
    • byDomain

      List<SendingStatGroupResponse> byDomain(long accountId, StatsFilter filter)
      Get sending stats grouped by domains
      Parameters:
      accountId - unique account ID
      filter - stats filter parameters
      Returns:
      list of sending statistics grouped by domain
    • byCategory

      List<SendingStatGroupResponse> byCategory(long accountId, StatsFilter filter)
      Get sending stats grouped by categories
      Parameters:
      accountId - unique account ID
      filter - stats filter parameters
      Returns:
      list of sending statistics grouped by category
    • byEmailServiceProvider

      List<SendingStatGroupResponse> byEmailServiceProvider(long accountId, StatsFilter filter)
      Get sending stats grouped by email service providers
      Parameters:
      accountId - unique account ID
      filter - stats filter parameters
      Returns:
      list of sending statistics grouped by email service provider
    • byDate

      List<SendingStatGroupResponse> byDate(long accountId, StatsFilter filter)
      Get sending stats grouped by date
      Parameters:
      accountId - unique account ID
      filter - stats filter parameters
      Returns:
      list of sending statistics grouped by date