Method: stats.getSearchapplication
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Obtenir les statistiques de l'application de recherche pour un client Remarque:Pour s'exécuter, cette API nécessite un compte utilisateur final standard.
Requête HTTP
GET https://cloudsearch.googleapis.com/v1/stats/searchapplication
L'URL utilise la syntaxe de transcodage gRPC.
Paramètres de requête
Paramètres |
startDate |
object (Date )
Toutes les statistiques disponibles entre la date de début et la date de fin sont renvoyées. endDate - startDate <= 6 mois.
|
endDate |
object (Date )
Date de fin jusqu'à laquelle les statistiques seront renvoyées.
|
Corps de la requête
Le corps de la requête doit être vide.
Corps de la réponse
Format de réponse pour les statistiques sur les applications de recherche d'un client.
Si la requête aboutit, le corps de la réponse contient des données qui ont la structure suivante :
Champs |
stats[] |
object (CustomerSearchApplicationStats )
Recherchez les statistiques sur les applications par date.
|
averageSearchApplicationCount |
string (int64 format)
Nombre moyen d'applications de recherche pour la période donnée.
|
Champs d'application des autorisations
Nécessite l'un des champs d'application OAuth suivants :
https://www.googleapis.com/auth/cloud_search.stats.indexing
https://www.googleapis.com/auth/cloud_search.stats
https://www.googleapis.com/auth/cloud_search
Pour en savoir plus, consultez le guide d'autorisation.
CustomerSearchApplicationStats
Statistiques sur l'application de recherche d'un client pour la date donnée.
Représentation JSON |
{
"date": {
object (Date )
},
"count": string
} |
Champs |
date |
object (Date )
Date à laquelle les statistiques de l'application de recherche ont été calculées.
|
count |
string (int64 format)
Nombre d'applications de recherche pour la date.
|
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[],[],null,["# Method: stats.getSearchapplication\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.GetCustomerSearchApplicationStatsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [CustomerSearchApplicationStats](#CustomerSearchApplicationStats)\n - [JSON representation](#CustomerSearchApplicationStats.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nGet search application stats for customer. **Note:** This API requires a standard end user account to execute.\n\n### HTTP request\n\n`GET https://cloudsearch.googleapis.com/v1/stats/searchapplication`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `startDate` | `object (`[Date](/workspace/cloud-search/docs/reference/rest/v1/Date)`)` All available stats from startDate to endDate are returned. endDate - startDate \\\u003c= 6 months. |\n| `endDate` | `object (`[Date](/workspace/cloud-search/docs/reference/rest/v1/Date)`)` End date upto which stats are going to be returned. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse format for search application stats for a customer.\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/getSearchapplication#CustomerSearchApplicationStats) } ], \"averageSearchApplicationCount\": string } ``` |\n\n| Fields ||\n|---------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `stats[]` | `object (`[CustomerSearchApplicationStats](/workspace/cloud-search/docs/reference/rest/v1/stats/getSearchapplication#CustomerSearchApplicationStats)`)` Search application stats by date. |\n| `averageSearchApplicationCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Average search application count for the given date range. |\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\nCustomerSearchApplicationStats\n------------------------------\n\nSearch application stats for a customer for the given date.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------|\n| ``` { \"date\": { object (/workspace/cloud-search/docs/reference/rest/v1/Date) }, \"count\": string } ``` |\n\n| Fields ||\n|---------|---------------------------------------------------------------------------------------------------------------------------------------|\n| `date` | `object (`[Date](/workspace/cloud-search/docs/reference/rest/v1/Date)`)` The date for which search application stats were calculated. |\n| `count` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The count of search applications for the date. |"]]