- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- ProductSourceStat
- Try it!
Full name: projects.locations.instances.queryProductSourceStats
Gets available product sources along with their stats.
HTTP request
Path parameters
| Parameters | |
|---|---|
| instance | 
 Required. Chronicle instance this request is sent to. Format: projects/{project}/locations/{location}/instances/{instance} | 
Query parameters
| Parameters | |
|---|---|
| timeRange | 
 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 | 
|---|
| {
  "productSourceStats": [
    {
      object ( | 
| Fields | |
|---|---|
| productSourceStats[] | 
 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 | 
|---|
| { "productSource": string, "dataSizeBytes": string, "noData": boolean } | 
| Fields | |
|---|---|
| productSource | 
 Product source. | 
| dataSizeBytes | 
 Data size in bytes for specific product sources. | 
| noData | 
 If there is no estimation data. By default it is false. |