- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Facet
- FacetCount
- Try it!
alerts.enumerateFacets returns the facets and the number of alerts that meet the filter criteria and have that value for each facet.
HTTP request
GET https://threatintelligence.googleapis.com/v1beta/{parent=projects/*}/alerts:enumerateFacets The URLs use gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. Parent of the alerts. |
Query parameters
| Parameters | |
|---|---|
filter |
Optional. Filter on what alerts will be enumerated. |
Request body
The request body must be empty.
Response body
Response message for alerts.enumerateFacets.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"facets": [
{
object ( |
| Fields | |
|---|---|
facets[] |
List of facets and the counts. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
Facet
Facet represents a sub element of a resource for filtering. The results from this method are used to populate the filterable facets in the UI.
| JSON representation |
|---|
{
"facet": string,
"facetCounts": [
{
object ( |
| Fields | |
|---|---|
facet |
Name of the facet. This is also the string that needs to be used in the filtering expression. |
facetCounts[] |
List of counts for the facet (if categorical). |
facetType |
The type of the facet. Options include "string", "int", "float", "bool", "enum", "timestamp", "user" and are useful to show the right sort of UI controls when building a AIP-160 style filtering string. |
minValue |
Min value of the facet stringified based on type. This is only populated for facets that have a clear ordering, for types like enum it will be left empty. Timestamps will be formatted using RFC3339. |
maxValue |
Max value of the facet stringified based on type. Will be populated and formatted the same as minValue. |
totalCount |
Total number of records that contain this facet with ANY value. |
FacetCount
FacetCount represents a count of records with each facet value.
| JSON representation |
|---|
{ "value": string, "count": integer } |
| Fields | |
|---|---|
value |
Value of the facet stringified. Timestamps will be formatted using RFC3339. |
count |
Count of records with the value. |