Method: stats.index.datasources.get

Gets indexed item statistics for a single data source.

HTTP request

GET https://cloudsearch.googleapis.com/v1/stats/index/{name=datasources/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

The resource id of the data source to retrieve statistics for, in the following format: "datasources/{source_id}"

Query parameters

Parameters
fromDate

object(Date)

Start of the date range to retrieve statistics for, in PST. This value must be within 1 year of the current date.

toDate

object(Date)

End of the date range to receive statistics for, in PST. This value must be within 1 year of the current date and greater than fromDate. This value cannot be today's date.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of GetDataSourceIndexStatsResponse.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud_search.stats.indexing
  • https://www.googleapis.com/auth/cloud_search.stats
  • https://www.googleapis.com/auth/cloud_search

For more information, see the OAuth 2.0 Overview.

Skicka feedback om ...