class DomainsTrafficStats extends Resource (View source)

The "trafficStats" collection of methods.

Typical usage is:

 $gmailpostmastertoolsService = new Google\Service\PostmasterTools(...);
 $trafficStats = $gmailpostmastertoolsService->domains_trafficStats;

Methods

get(string $name, array $optParams = [])

Get traffic statistics for a domain on a specific date. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain. (trafficStats.get)

listDomainsTrafficStats(string $parent, array $optParams = [])

List traffic statistics for all available days. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain.

Details

TrafficStats get(string $name, array $optParams = [])

Get traffic statistics for a domain on a specific date. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain. (trafficStats.get)

Parameters

string $name

The resource name of the traffic statistics to get. E.g., domains/mymail.mydomain.com/trafficStats/20160807.

array $optParams

Optional parameters.

Return Value

TrafficStats

Exceptions

Exception

ListTrafficStatsResponse listDomainsTrafficStats(string $parent, array $optParams = [])

List traffic statistics for all available days. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain.

(trafficStats.listDomainsTrafficStats)

Parameters

string $parent

The resource name of the domain whose traffic statistics we'd like to list. It should have the form domains/{domain_name}, where domain_name is the fully qualified domain name.

array $optParams

Optional parameters.

Return Value

ListTrafficStatsResponse

Exceptions

Exception