REST Resource: stats.index.datasources
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Risorsa: GetDataSourceIndexStatsResponse
Rappresentazione JSON |
{
"stats": [
{
object (DataSourceIndexStats )
}
],
"averageIndexedItemCount": string
} |
Campi |
stats[] |
object (DataSourceIndexStats )
Riepilogo dei conteggi degli elementi indicizzati, uno per ogni giorno nell'intervallo richiesto.
|
averageIndexedItemCount |
string (int64 format)
Numero medio di articoli per l'intervallo di date specificato per il quale viene eseguita la fatturazione.
|
DataSourceIndexStats
Aggregazione degli elementi per codice stato a partire dalla data specificata.
Rappresentazione JSON |
{
"date": {
object (Date )
},
"itemCountByStatus": [
{
object (ItemCountByStatus )
}
]
} |
Campi |
date |
object (Date )
La data per cui sono state calcolate le statistiche dell'indice. Se la data della richiesta non è la data corrente, vengono restituite le statistiche calcolate il giorno successivo. In questo caso, le statistiche vengono calcolate verso la mezzanotte. Se la data della richiesta corrisponde alla data corrente, vengono restituite le statistiche in tempo reale.
|
itemCountByStatus[] |
object (ItemCountByStatus )
Numero di elementi aggregati per codice di stato.
|
ItemCountByStatus
Rappresentazione JSON |
{
"statusCode": enum (ItemStatus.Code ),
"count": string,
"indexedItemsCount": string
} |
Campi |
statusCode |
enum (ItemStatus.Code )
Stato degli articoli.
|
count |
string (int64 format)
Numero di elementi corrispondenti al codice di stato.
|
indexedItemsCount |
string (int64 format)
Numero di elementi corrispondenti al codice di stato per cui viene eseguita la fatturazione. Gli elementi dei contenitori virtuali vengono esclusi dal conteggio totale. Questo conteggio non è applicabile agli elementi con codice di stato ERROR o NEW_ITEM.
|
Metodi |
|
Recupera le statistiche degli elementi indicizzati per una singola origine dati. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 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. |"]]