class UserUsageReport extends Resource (View source)

The "userUsageReport" collection of methods.

Typical usage is:

 $adminService = new Google\Service\Reports(...);
 $userUsageReport = $adminService->userUsageReport;

Methods

get(string $userKey, string $date, array $optParams = [])

Retrieves a report which is a collection of properties and statistics for a set of users with the account. For more information, see the User Usage Report guide. For more information about the user report's parameters, see the Users Usage parameters reference guides. (userUsageReport.get)

Details

UsageReports get(string $userKey, string $date, array $optParams = [])

Retrieves a report which is a collection of properties and statistics for a set of users with the account. For more information, see the User Usage Report guide. For more information about the user report's parameters, see the Users Usage parameters reference guides. (userUsageReport.get)

Parameters

string $userKey

Represents the profile ID or the user email for which the data should be filtered. Can be all for all information, or userKey for a user's unique Google Workspace profile ID or their primary email address. Must not be a deleted user. For a deleted user, call users.list in Directory API with showDeleted=true, then use the returned ID as the userKey.

string $date

Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the ISO 8601 format, yyyy-mm-dd.

array $optParams

Optional parameters.

Return Value

UsageReports

Exceptions

Exception