- HTTP request
 - Path parameters
 - Query parameters
 - Request body
 - Response body
 - Authorization scopes
 - IAM Permissions
 - PriorityGroup
 - PriorityCount
 - Try it!
 
Full name: projects.locations.instances.cases.countPriorities
Count a selection of cases by priority.
HTTP request
Path parameters
| Parameters | |
|---|---|
parent | 
                
                   
 Required. Chronicle instance this request is sent to. Format: projects/{project}/locations/{location}/instances/{instance}  | 
              
Query parameters
| Parameters | |
|---|---|
filter | 
                
                   
 Required. Which cases to count. In aip.dev/160 form. Full filtering behavior is not implemented. Example: "responsePlatformType=SIEMPLIFY AND status=OPEN AND productName=SCC"  | 
              
Request body
The request body must be empty.
Response body
Response message for cases.countPriorities.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
{
  "priorityGroups": [
    {
      object ( | 
                  
| Fields | |
|---|---|
priorityGroups[] | 
                    
                       
 A sequence of groups and priority counts.  | 
                  
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 parent resource:
chronicle.cases.countPriorities
For more information, see the IAM documentation.
PriorityGroup
The priority counts for a particular grouping.
| JSON representation | 
|---|
{
  "group": string,
  "priorities": [
    {
      object ( | 
              
| Fields | |
|---|---|
group | 
                
                   
 The group the priorities are aggregated by. Currently always "vendorName".  | 
              
priorities[] | 
                
                   
 The sum of cases for each priority in this group.  | 
              
PriorityCount
A priority value and its corresponding count.
| JSON representation | 
|---|
{
  "priority": enum ( | 
              
| Fields | |
|---|---|
priority | 
                
                   
 The priority counted.  | 
              
count | 
                
                   
 The count for this priority value.  |