REST Resource: stats.index.datasources
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài nguyên: GetDataSourceIndexStatsResponse
Biểu diễn dưới dạng JSON |
{
"stats": [
{
object (DataSourceIndexStats )
}
],
"averageIndexedItemCount": string
} |
Trường |
stats[] |
object (DataSourceIndexStats )
Thông tin tóm tắt về số lượng mục được lập chỉ mục, mỗi ngày một mục trong phạm vi được yêu cầu.
|
averageIndexedItemCount |
string (int64 format)
Số mặt hàng trung bình trong phạm vi ngày nhất định mà hệ thống thực hiện việc tính phí.
|
DataSourceIndexStats
Tổng hợp các mục theo mã trạng thái kể từ ngày được chỉ định.
Biểu diễn dưới dạng JSON |
{
"date": {
object (Date )
},
"itemCountByStatus": [
{
object (ItemCountByStatus )
}
]
} |
Trường |
date |
object (Date )
Ngày tính toán số liệu thống kê về chỉ mục. Nếu ngày yêu cầu không phải là ngày hiện tại, thì hệ thống sẽ trả về số liệu thống kê được tính vào ngày tiếp theo. Trong trường hợp này, số liệu thống kê được tính gần nửa đêm. Nếu ngày yêu cầu là ngày hiện tại, thì số liệu thống kê theo thời gian thực sẽ được trả về.
|
itemCountByStatus[] |
object (ItemCountByStatus )
Số lượng mặt hàng được tổng hợp theo mã trạng thái.
|
ItemCountByStatus
Biểu diễn dưới dạng JSON |
{
"statusCode": enum (ItemStatus.Code ),
"count": string,
"indexedItemsCount": string
} |
Trường |
statusCode |
enum (ItemStatus.Code )
Trạng thái của các mặt hàng.
|
count |
string (int64 format)
Số lượng mặt hàng khớp với mã trạng thái.
|
indexedItemsCount |
string (int64 format)
Số lượng mặt hàng khớp với mã trạng thái đã thanh toán. Chỉ số này không tính các mục vùng chứa ảo vào tổng số. Số lượng này sẽ không áp dụng cho các mục có mã trạng thái ERROR hoặc NEW_ITEM.
|
Phương thức |
|
Lấy số liệu thống kê về mục được lập chỉ mục cho một nguồn dữ liệu. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],[],null,["# REST Resource: stats.index.datasources\n\n- [Resource: GetDataSourceIndexStatsResponse](#GetDataSourceIndexStatsResponse)\n - [JSON representation](#GetDataSourceIndexStatsResponse.SCHEMA_REPRESENTATION)\n- [DataSourceIndexStats](#DataSourceIndexStats)\n - [JSON representation](#DataSourceIndexStats.SCHEMA_REPRESENTATION)\n- [ItemCountByStatus](#ItemCountByStatus)\n - [JSON representation](#ItemCountByStatus.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: GetDataSourceIndexStatsResponse\n-----------------------------------------\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"stats\": [ { object (/workspace/cloud-search/docs/reference/rest/v1/stats.index.datasources#DataSourceIndexStats) } ], \"averageIndexedItemCount\": string } ``` |\n\n| Fields ||\n|---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `stats[]` | `object (`[DataSourceIndexStats](/workspace/cloud-search/docs/reference/rest/v1/stats.index.datasources#DataSourceIndexStats)`)` Summary of indexed item counts, one for each day in the requested range. |\n| `averageIndexedItemCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Average item count for the given date range for which billing is done. |\n\nDataSourceIndexStats\n--------------------\n\nAggregation of items by status code as of the specified date.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"date\": { object (/workspace/cloud-search/docs/reference/rest/v1/Date) }, \"itemCountByStatus\": [ { object (/workspace/cloud-search/docs/reference/rest/v1/stats.index.datasources#ItemCountByStatus) } ] } ``` |\n\n| Fields ||\n|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `date` | `object (`[Date](/workspace/cloud-search/docs/reference/rest/v1/Date)`)` The date for which index stats were calculated. If the date of request is not the current date then stats calculated on the next day are returned. Stats are calculated close to mid night in this case. If date of request is current date, then real time stats are returned. |\n| `itemCountByStatus[]` | `object (`[ItemCountByStatus](/workspace/cloud-search/docs/reference/rest/v1/stats.index.datasources#ItemCountByStatus)`)` Number of items aggregrated by status code. |\n\nItemCountByStatus\n-----------------\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"statusCode\": enum (/workspace/cloud-search/docs/reference/rest/v1/ItemStatus.Code), \"count\": string, \"indexedItemsCount\": string } ``` |\n\n| Fields ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `statusCode` | `enum (`[ItemStatus.Code](/workspace/cloud-search/docs/reference/rest/v1/ItemStatus.Code)`)` Status of the items. |\n| `count` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Number of items matching the status code. |\n| `indexedItemsCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Number of items matching the status code for which billing is done. This excludes virtual container items from the total count. This count would not be applicable for items with ERROR or NEW_ITEM status code. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------------------------|--------------------------------------------------------|\n| ### [get](/workspace/cloud-search/docs/reference/rest/v1/stats.index.datasources/get) | Gets indexed item statistics for a single data source. |"]]