Method: instances.queryProductSourceStats

Full name: projects.locations.instances.queryProductSourceStats

Gets available product sources along with their stats.

HTTP request

GET https://chronicle.googleapis.com/v1alpha/{instance}:queryProductSourceStats

Path parameters

Parameters
instance

string

Required. Chronicle instance this request is sent to. Format: projects/{project}/locations/{location}/instances/{instance}

Query parameters

Parameters
timeRange

object (Interval)

Optional. Time range for finding product sources [inclusive start time, exclusive end time). If not povided, returns log sources for all retained logs.

Request body

The request body must be empty.

Response body

Return list of available log source and their stats.

If successful, the response body contains data with the following structure:

JSON representation
{
  "product_source_stats": [
    {
      object (ProductSourceStat)
    }
  ]
}
Fields
product_source_stats[]

object (ProductSourceStat)

Amount of data per log source.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the instance resource:

  • chronicle.events.queryProductSourceStats

For more information, see the IAM documentation.

ProductSourceStat

Product source and data size for it.

JSON representation
{
  "product_source": string,
  "data_size_bytes": string,
  "no_data": boolean
}
Fields
product_source

string

Product source.

data_size_bytes

string (int64 format)

Data size in bytes for specific product sources.

no_data

boolean

If there is no estimation data. By default it is false.