Method: stats.getSession
获取搜索会话的数量、成功的会话百分比以及客户的点击查询统计信息。
注意:此 API 需要使用标准最终用户账号才能执行。
HTTP 请求
GET https://cloudsearch.googleapis.com/v1/stats/session
网址采用 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
有关详情,请参阅授权指南。
CustomerSessionStats
JSON 表示法 |
{
"date": {
object (Date )
},
"searchSessionsCount": string
} |
字段 |
date |
object (Date )
计算会话统计信息的日期。统计信息会在次日(临近美国太平洋标准时间午夜)计算,然后返回。
|
searchSessionsCount |
string (int64 format)
当天的搜索会话次数
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-03。
[null,null,["最后更新时间 (UTC):2024-09-03。"],[[["Retrieve query statistics such as the number of search sessions and the percentage of successful sessions with a click for a customer."],["Requires a standard end user account and uses the `GET https://cloudsearch.googleapis.com/v1/stats/session` HTTP request."],["Specify a date range using the `fromDate` and `toDate` query parameters for retrieving session statistics within that period."],["The response includes an array of `CustomerSessionStats` objects containing the date and the corresponding search session count."],["Authorization requires specific OAuth scopes like `https://www.googleapis.com/auth/cloud_search.stats.indexing` or others mentioned in the documentation."]]],[]]