admin-reports (reports_v1)
PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.
CODEBLOCK0
API Resources
activities
- list — Retrieves a list of activities for a specific customer's account and application such as the Admin console application or the Google Drive application. For more information, see the guides for administrator and Google Drive activity reports. For more information about the activity report's parameters, see the activity parameters reference guides.
- watch — Start receiving notifications for account activities. For more information, see Receiving Push Notifications.
channels
- stop — Stop watching resources through this channel.
customerUsageReports
- get — Retrieves a report which is a collection of properties and statistics for a specific customer's account. For more information, see the Customers Usage Report guide. For more information about the customer report's parameters, see the Customers Usage parameters reference guides.
entityUsageReports
- get — Retrieves a report which is a collection of properties and statistics for entities used by users within the account. For more information, see the Entities Usage Report guide. For more information about the entities report's parameters, see the Entities Usage parameters reference guides.
userUsageReport
- get — 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.
Discovering Commands
Before calling any API method, inspect it:
CODEBLOCK1
Use gws schema output to build your --params and --json flags.
admin-reports (reports_v1)
前置条件: 请阅读 ../gws-shared/SKILL.md 了解认证、全局标志和安全规则。若该文件缺失,请运行 gws generate-skills 创建。
bash
gws admin-reports <资源> <方法> [标志]
API 资源
activities
- list — 检索特定客户账户和应用程序(如管理控制台应用或 Google 云端硬盘应用)的活动列表。更多信息请参阅管理员和 Google 云端硬盘活动报告指南。关于活动报告参数的更多信息,请参阅活动参数参考指南。
- watch — 开始接收账户活动的通知。更多信息请参阅接收推送通知。
channels
- stop — 停止通过此频道监控资源。
customerUsageReports
- get — 检索一份报告,其中包含特定客户账户的属性与统计数据集合。更多信息请参阅客户使用情况报告指南。关于客户报告参数的更多信息,请参阅客户使用情况参数参考指南。
entityUsageReports
- get — 检索一份报告,其中包含账户内用户所使用的实体的属性与统计数据集合。更多信息请参阅实体使用情况报告指南。关于实体报告参数的更多信息,请参阅实体使用情况参数参考指南。
userUsageReport
- get — 检索一份报告,其中包含账户内一组用户的属性与统计数据集合。更多信息请参阅用户使用情况报告指南。关于用户报告参数的更多信息,请参阅用户使用情况参数参考指南。
发现命令
在调用任何 API 方法之前,请先检查该方法:
bash
浏览资源和方法
gws admin-reports --help
检查方法的必需参数、类型和默认值
gws schema admin-reports.<资源>.<方法>
使用 gws schema 的输出结果来构建你的 --params 和 --json 标志。