Method: stats.index.datasources.get
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी एक डेटा सोर्स के लिए, इंडेक्स किए गए आइटम के आंकड़े दिखाता है.
ध्यान दें: इस एपीआई को चलाने के लिए, स्टैंडर्ड असली उपयोगकर्ता खाते की ज़रूरत होती है.
एचटीटीपी अनुरोध
GET https://cloudsearch.googleapis.com/v1/stats/index/{name=datasources/*}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
name |
string
डेटा सोर्स का रिसॉर्स आईडी, जिसका आंकड़ा आपको चाहिए. यह आईडी इस फ़ॉर्मैट में होना चाहिए: "datasources/{sourceId}"
|
क्वेरी पैरामीटर
पैरामीटर |
fromDate |
object (Date )
पीएसटी में, आंकड़ों को वापस पाने के लिए तारीख की सीमा की शुरुआत. यह तारीख, मौजूदा तारीख से एक साल के अंदर की होनी चाहिए. किसी एक दिन के आंकड़े देने के लिए, fromDate और toDate एक ही हो सकते हैं. अगर fromDate और toDate, दोनों को मौजूदा दिन पर सेट किया जाता है, तो मौजूदा दिन के लिए रीयल-टाइम आंकड़े दिखाए जाते हैं. ध्यान दें: बड़े डेटा सोर्स से रीयल-टाइम आंकड़े पाने के अनुरोध महंगे होते हैं और इनमें ज़्यादा समय लगता है.
|
toDate |
object (Date )
पीएसटी में, तारीख की वह आखिरी तारीख जिसके लिए आंकड़े चाहिए. यह वैल्यू, मौजूदा तारीख से एक साल के अंदर की होनी चाहिए. अगर इसे मौजूदा तारीख पर सेट किया जाता है, तो रीयल-टाइम आंकड़े दिखाए जाते हैं. ध्यान दें: बड़े डेटा सोर्स से रीयल-टाइम आंकड़े पाने के अनुरोध महंगे होते हैं और इनमें ज़्यादा समय लगता है. किसी एक दिन के आंकड़े देने के लिए, fromDate और toDate एक ही हो सकते हैं. अगर fromDate और toDate, दोनों को मौजूदा दिन पर सेट किया जाता है, तो मौजूदा दिन के लिए रीयल-टाइम आंकड़े दिखाए जाते हैं.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य हिस्सा
कामयाब रहने पर, जवाब के मुख्य हिस्से में GetDataSourceIndexStatsResponse
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
इसके लिए, 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
ज़्यादा जानकारी के लिए, अनुमति से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],[],null,["# Method: stats.index.datasources.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGets indexed item statistics for a single data source.\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/index/{name=datasources/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|---------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The resource id of the data source to retrieve statistics for, in the following format: \"datasources/{sourceId}\" |\n\n### Query parameters\n\n| Parameters ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `fromDate` | `object (`[Date](/workspace/cloud-search/docs/reference/rest/v1/Date)`)` Start of the date range to retrieve statistics for, in PST. This value must be within 1 year of the current date. The fromDate and toDate can be the same to provide statistics for a single day. If both fromDate and toDate are set to the current day, real-time statistics are returned for the current day. Note: Requests for real-time stats from large data sources are expensive and have high latency. |\n| `toDate` | `object (`[Date](/workspace/cloud-search/docs/reference/rest/v1/Date)`)` End of the date range to receive statistics for, in PST. This value must be within 1 year of the current date. If set to the current date, real-time statistics are returned. Note: Requests for real-time stats from large data sources are expensive and have high latency. The fromDate and toDate can be the same to provide statistics for a single day. If both fromDate and toDate are set to the current day, real-time statistics are returned for the current day. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [GetDataSourceIndexStatsResponse](/workspace/cloud-search/docs/reference/rest/v1/stats.index.datasources#GetDataSourceIndexStatsResponse).\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)."]]