Method: stats.getSession
고객에 대한 클릭 쿼리 통계를 통해 검색 세션 수, 성공한 세션 비율(%)을 확인할 수 있습니다.
참고: 이 API를 실행하려면 표준 최종 사용자 계정이 필요합니다.
HTTP 요청
GET https://cloudsearch.googleapis.com/v1/stats/session
URL은 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)
해당 날짜의 검색 세션수
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-09-03(UTC)
[null,null,["최종 업데이트: 2024-09-03(UTC)"],[[["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."]]],[]]