Method: stats.getUser
获取客户的用户统计信息。
注意:此 API 需要使用标准最终用户账号才能执行。
HTTP 请求
GET https://cloudsearch.googleapis.com/v1/stats/user
网址采用 gRPC 转码语法。
查询参数
参数 |
fromDate |
object (Date )
系统将返回 fromDate 到 toDate 的所有可用统计信息。fromDate 应在该年份内且 toDate >= fromDate。
|
toDate |
object (Date )
|
响应正文
如果成功,响应正文将包含结构如下的数据:
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/cloud_search.stats.indexing
https://www.googleapis.com/auth/cloud_search.stats
https://www.googleapis.com/auth/cloud_search
有关详情,请参阅授权指南。
CustomerUserStats
JSON 表示法 |
{
"date": {
object (Date )
},
"oneDayActiveUsersCount": string,
"sevenDaysActiveUsersCount": string,
"thirtyDaysActiveUsersCount": string
} |
字段 |
date |
object (Date )
计算会话统计信息的日期。系统会返回在临近午夜时分的次日计算的统计信息。
|
oneDayActiveUsersCount |
string (int64 format)
过去一天的唯一身份用户数
|
sevenDaysActiveUsersCount |
string (int64 format)
过去 7 天内的唯一身份用户数
|
thirtyDaysActiveUsersCount |
string (int64 format)
过去 30 天内的唯一身份用户数
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-03。
[null,null,["最后更新时间 (UTC):2024-09-03。"],[[["Retrieves user statistics for a customer, requiring a standard end user account."],["Accepts optional `fromDate` and `toDate` parameters to specify the date range for statistics."],["Returns daily, 7-day, and 30-day active user counts within the specified date range."],["Requires authorization with specific OAuth scopes related to Cloud Search statistics."],["Provides data in JSON format with details on active user counts for each date."]]],[]]