REST Resource: stats.index.datasources
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Resource: GetDataSourceIndexStatsResponse
Representasi JSON |
{
"stats": [
{
object (DataSourceIndexStats )
}
],
"averageIndexedItemCount": string
} |
Kolom |
stats[] |
object (DataSourceIndexStats )
Ringkasan jumlah item yang diindeks, satu untuk setiap hari dalam rentang yang diminta.
|
averageIndexedItemCount |
string (int64 format)
Jumlah item rata-rata untuk rentang tanggal tertentu yang digunakan untuk penagihan.
|
DataSourceIndexStats
Agregasi item menurut kode status mulai tanggal yang ditentukan.
Kolom |
date |
object (Date )
Tanggal saat statistik indeks dihitung. Jika tanggal permintaan bukan tanggal saat ini, statistik yang dihitung pada hari berikutnya akan ditampilkan. Dalam hal ini, statistik dihitung mendekati tengah malam. Jika tanggal permintaan adalah tanggal saat ini, statistik real-time akan ditampilkan.
|
itemCountByStatus[] |
object (ItemCountByStatus )
Jumlah item yang digabungkan menurut kode status.
|
ItemCountByStatus
Representasi JSON |
{
"statusCode": enum (ItemStatus.Code ),
"count": string,
"indexedItemsCount": string
} |
Kolom |
statusCode |
enum (ItemStatus.Code )
Status item.
|
count |
string (int64 format)
Jumlah item yang cocok dengan kode status.
|
indexedItemsCount |
string (int64 format)
Jumlah item yang cocok dengan kode status yang penagihannya dilakukan. Tindakan ini mengecualikan item penampung virtual dari jumlah total. Jumlah ini tidak akan berlaku untuk item dengan kode status ERROR atau NEW_ITEM.
|
Metode |
|
Mendapatkan statistik item yang diindeks untuk satu sumber data. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 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. |"]]