Method: stats.getUser
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
고객의 사용자 통계를 가져옵니다.
참고: 이 API를 실행하려면 표준 최종 사용자 계정이 필요합니다.
HTTP 요청
GET https://cloudsearch.googleapis.com/v1/stats/user
URL은 gRPC 트랜스코딩 구문을 사용합니다.
쿼리 매개변수
매개변수 |
fromDate |
object (Date )
fromDate에서 toDate까지 사용 가능한 모든 통계가 반환됩니다. fromDate는 해당 연도 내에 있어야 하며 toDate는 fromDate보다 커야 합니다.
|
toDate |
object (Date )
|
응답 본문
성공한 경우 응답 본문은 다음과 같은 구조의 데이터를 포함합니다.
필드 |
stats[] |
object (CustomerUserStats )
|
승인 범위
다음 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)
지난 1일 동안의 순 활성 사용자 수입니다.
|
sevenDaysActiveUsersCount |
string (int64 format)
지난 7일 동안의 고유 활성 사용자 수입니다.
|
thirtyDaysActiveUsersCount |
string (int64 format)
지난 30일 동안의 고유 활성 사용자 수입니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[],[],null,["# Method: stats.getUser\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.GetCustomerUserStatsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [CustomerUserStats](#CustomerUserStats)\n - [JSON representation](#CustomerUserStats.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nGet the users statistics for customer.\n\n**Note:** This API requires a standard end user account to execute.\n\n### HTTP request\n\n`GET https://cloudsearch.googleapis.com/v1/stats/user`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `fromDate` | `object (`[Date](/workspace/cloud-search/docs/reference/rest/v1/Date)`)` All available stats from fromDate to toDate are returned. fromDate should be within the year and toDate \\\u003e= fromDate. |\n| `toDate` | `object (`[Date](/workspace/cloud-search/docs/reference/rest/v1/Date)`)` |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------|\n| ``` { \"stats\": [ { object (/workspace/cloud-search/docs/reference/rest/v1/stats/getUser#CustomerUserStats) } ] } ``` |\n\n| Fields ||\n|-----------|------------------------------------------------------------------------------------------------------------------|\n| `stats[]` | `object (`[CustomerUserStats](/workspace/cloud-search/docs/reference/rest/v1/stats/getUser#CustomerUserStats)`)` |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud_search.stats.indexing`\n- `https://www.googleapis.com/auth/cloud_search.stats`\n- `https://www.googleapis.com/auth/cloud_search`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nCustomerUserStats\n-----------------\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"date\": { object (/workspace/cloud-search/docs/reference/rest/v1/Date) }, \"oneDayActiveUsersCount\": string, \"sevenDaysActiveUsersCount\": string, \"thirtyDaysActiveUsersCount\": string } ``` |\n\n| Fields ||\n|------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `date` | `object (`[Date](/workspace/cloud-search/docs/reference/rest/v1/Date)`)` The date for which session stats were calculated. Stats calculated on the next day close to midnight are returned. |\n| `oneDayActiveUsersCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The count of unique active users in the past one day |\n| `sevenDaysActiveUsersCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The count of unique active users in the past seven days |\n| `thirtyDaysActiveUsersCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The count of unique active users in the past thirty days |"]]