Facet
import type { Facet } from "https://googleapis.deno.dev/v1/threatintelligence:v1beta.ts";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.
interface Facet {
facet?: string;
facetCounts?: FacetCount[];
facetType?: string;
maxValue?: string;
minValue?: string;
totalCount?: bigint;
}§Properties
§
facet?: string
[src]Name of the facet. This is also the string that needs to be used in the filtering expression.
§
facetCounts?: FacetCount[]
[src]List of counts for the facet (if categorical).
§
facetType?: string
[src]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.
§
maxValue?: string
[src]Max value of the facet stringified based on type. Will be populated and formatted the same as min_value.