Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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.

§
minValue?: string
[src]

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.

§
totalCount?: bigint
[src]

Total number of records that contain this facet with ANY value.