Method: Mandrill::Templates#time_series

Defined in:
lib/mandrill/api.rb

#time_series(name) ⇒ Array

Return the recent history (hourly stats for the last 30 days) for a template

Parameters:

  • name (String)

    the name of an existing template

Returns:

  • (Array)

    the array of history information

    • Hash

      return[] the stats for a single hour

      - [String] time the hour as a UTC date string in YYYY-MM-DD HH:MM:SS format
      - [Integer] sent the number of emails that were sent during the hour
      - [Integer] hard_bounces the number of emails that hard bounced during the hour
      - [Integer] soft_bounces the number of emails that soft bounced during the hour
      - [Integer] rejects the number of emails that were rejected during the hour
      - [Integer] complaints the number of spam complaints received during the hour
      - [Integer] opens the number of emails opened during the hour
      - [Integer] unique_opens the number of unique opens generated by messages sent during the hour
      - [Integer] clicks the number of tracked URLs clicked during the hour
      - [Integer] unique_clicks the number of unique clicks generated by messages sent during the hour
      


198
199
200
201
# File 'lib/mandrill/api.rb', line 198

def time_series(name)
    _params = {:name => name}
    return @master.call 'templates/time-series', _params
end