Struct sendgrid_api::stats::Stats

source ·
pub struct Stats {
    pub client: Client,
}

Fields

client: Client

Implementations

Retrieve global email statistics.

This function performs a GET to the /stats endpoint.

This endpoint allows you to retrieve all of your global email statistics between a given date range.

Parent accounts will see aggregated stats for their account and all subuser accounts. Subuser accounts will only see their own stats.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
  • offset: i64 – The point in the list to begin retrieving results.
  • offset: i64 – The point in the list to begin retrieving results.
  • aggregated_by: crate::types::TraitStatsAdvancedBaseQueryStringsAggregatedBy – How to group the statistics. Must be either “day”, “week”, or “month”.
  • start_date: &str – The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.
  • end_date: &str – The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.

Retrieve global email statistics.

This function performs a GET to the /stats endpoint.

As opposed to get, this function returns all the pages of the request at once.

This endpoint allows you to retrieve all of your global email statistics between a given date range.

Parent accounts will see aggregated stats for their account and all subuser accounts. Subuser accounts will only see their own stats.

Retrieve email statistics by country and state/province.

This function performs a GET to the /geo/stats endpoint.

This endpoint allows you to retrieve your email statistics segmented by country and state/province.

We only store up to 7 days of email activity in our database. By default, 500 items will be returned per request via the Advanced Stats API endpoints.

Advanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our User Guide.

Parameters:

  • country: crate::types::Country – The country you would like to see statistics for. Currently only supported for US and CA.
  • on_behalf_of: &str – The license key provided with your New Relic account.
  • offset: i64 – The point in the list to begin retrieving results.
  • offset: i64 – The point in the list to begin retrieving results.
  • aggregated_by: crate::types::TraitStatsAdvancedBaseQueryStringsAggregatedBy – How to group the statistics. Must be either “day”, “week”, or “month”.
  • start_date: &str – The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.
  • end_date: &str – The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.

Retrieve email statistics by country and state/province.

This function performs a GET to the /geo/stats endpoint.

As opposed to get_geo, this function returns all the pages of the request at once.

This endpoint allows you to retrieve your email statistics segmented by country and state/province.

We only store up to 7 days of email activity in our database. By default, 500 items will be returned per request via the Advanced Stats API endpoints.

Advanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our User Guide.

Retrieve email statistics by device type.

This function performs a GET to the /devices/stats endpoint.

This endpoint allows you to retrieve your email statistics segmented by the device type.

We only store up to 7 days of email activity in our database. By default, 500 items will be returned per request via the Advanced Stats API endpoints.

Available Device Types
DeviceDescriptionExample
DesktopEmail software on desktop computer.I.E., Outlook, Sparrow, or Apple Mail.
WebmailA web-based email client.I.E., Yahoo, Google, AOL, or Outlook.com.
PhoneA smart phone.iPhone, Android, Blackberry, etc.
TabletA tablet computer.iPad, android based tablet, etc.
OtherAn unrecognized device.

Advanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our Statistics Overview.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
  • offset: i64 – The point in the list to begin retrieving results.
  • offset: i64 – The point in the list to begin retrieving results.
  • aggregated_by: crate::types::TraitStatsAdvancedBaseQueryStringsAggregatedBy – How to group the statistics. Must be either “day”, “week”, or “month”.
  • start_date: &str – The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.
  • end_date: &str – The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.

Retrieve email statistics by device type.

This function performs a GET to the /devices/stats endpoint.

As opposed to get_devices, this function returns all the pages of the request at once.

This endpoint allows you to retrieve your email statistics segmented by the device type.

We only store up to 7 days of email activity in our database. By default, 500 items will be returned per request via the Advanced Stats API endpoints.

Available Device Types
DeviceDescriptionExample
DesktopEmail software on desktop computer.I.E., Outlook, Sparrow, or Apple Mail.
WebmailA web-based email client.I.E., Yahoo, Google, AOL, or Outlook.com.
PhoneA smart phone.iPhone, Android, Blackberry, etc.
TabletA tablet computer.iPad, android based tablet, etc.
OtherAn unrecognized device.

Advanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our Statistics Overview.

Retrieve email statistics by client type.

This function performs a GET to the /clients/stats endpoint.

This endpoint allows you to retrieve your email statistics segmented by client type.

We only store up to 7 days of email activity in our database. By default, 500 items will be returned per request via the Advanced Stats API endpoints.

Advanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our Statistics Overview.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
  • start_date: &str – The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.
  • end_date: &str – The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.
  • aggregated_by: crate::types::TraitStatsAdvancedBaseQueryStringsAggregatedBy – How to group the statistics. Must be either “day”, “week”, or “month”.

Retrieve email statistics by client type.

This function performs a GET to the /clients/stats endpoint.

As opposed to get_clients, this function returns all the pages of the request at once.

This endpoint allows you to retrieve your email statistics segmented by client type.

We only store up to 7 days of email activity in our database. By default, 500 items will be returned per request via the Advanced Stats API endpoints.

Advanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our Statistics Overview.

Retrieve stats by a specific client type.

This function performs a GET to the /clients/{client_type}/stats endpoint.

This endpoint allows you to retrieve your email statistics segmented by a specific client type.

We only store up to 7 days of email activity in our database. By default, 500 items will be returned per request via the Advanced Stats API endpoints.

Available Client Types
  • phone
  • tablet
  • webmail
  • desktop

Advanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our Statistics Overview.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
  • start_date: &str – The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.
  • end_date: &str – The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.
  • aggregated_by: crate::types::TraitStatsAdvancedBaseQueryStringsAggregatedBy – How to group the statistics. Must be either “day”, “week”, or “month”.

Retrieve stats by a specific client type.

This function performs a GET to the /clients/{client_type}/stats endpoint.

As opposed to get_clients_client_type, this function returns all the pages of the request at once.

This endpoint allows you to retrieve your email statistics segmented by a specific client type.

We only store up to 7 days of email activity in our database. By default, 500 items will be returned per request via the Advanced Stats API endpoints.

Available Client Types
  • phone
  • tablet
  • webmail
  • desktop

Advanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our Statistics Overview.

Retrieve email statistics by mailbox provider.

This function performs a GET to the /mailbox_providers/stats endpoint.

This endpoint allows you to retrieve your email statistics segmented by recipient mailbox provider.

We only store up to 7 days of email activity in our database. By default, 500 items will be returned per request via the Advanced Stats API endpoints.

Advanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our Statistics Overview.

Parameters:

  • mailbox_providers: &str – The mail box providers to get statistics for. You can include up to 10 by including this parameter multiple times.
  • on_behalf_of: &str – The license key provided with your New Relic account.
  • offset: i64 – The point in the list to begin retrieving results.
  • offset: i64 – The point in the list to begin retrieving results.
  • aggregated_by: crate::types::TraitStatsAdvancedBaseQueryStringsAggregatedBy – How to group the statistics. Must be either “day”, “week”, or “month”.
  • start_date: &str – The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.
  • end_date: &str – The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.

Retrieve email statistics by mailbox provider.

This function performs a GET to the /mailbox_providers/stats endpoint.

As opposed to get_mailbox_providers, this function returns all the pages of the request at once.

This endpoint allows you to retrieve your email statistics segmented by recipient mailbox provider.

We only store up to 7 days of email activity in our database. By default, 500 items will be returned per request via the Advanced Stats API endpoints.

Advanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our Statistics Overview.

Retrieve email statistics by browser.

This function performs a GET to the /browsers/stats endpoint.

This endpoint allows you to retrieve your email statistics segmented by browser type.

We only store up to 7 days of email activity in our database. By default, 500 items will be returned per request via the Advanced Stats API endpoints.

Advanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our Statistics Overview.

Parameters:

  • browsers: &str – The browsers to get statistics for. You can include up to 10 different browsers by including this parameter multiple times.
  • on_behalf_of: &str – The license key provided with your New Relic account.
  • offset: i64 – The point in the list to begin retrieving results.
  • offset: i64 – The point in the list to begin retrieving results.
  • aggregated_by: crate::types::TraitStatsAdvancedBaseQueryStringsAggregatedBy – How to group the statistics. Must be either “day”, “week”, or “month”.
  • start_date: &str – The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.
  • end_date: &str – The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.

Retrieve email statistics by browser.

This function performs a GET to the /browsers/stats endpoint.

As opposed to get_browsers, this function returns all the pages of the request at once.

This endpoint allows you to retrieve your email statistics segmented by browser type.

We only store up to 7 days of email activity in our database. By default, 500 items will be returned per request via the Advanced Stats API endpoints.

Advanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our Statistics Overview.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more