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

Record

import type { Record } from "https://googleapis.deno.dev/v1/chromeuxreport:v1.ts";

Record is a single Chrome UX report data record. It contains use experience statistics for a single url pattern and set of dimensions.

interface Record {
collectionPeriod?: CollectionPeriod;
key?: Key;
metrics?: {
[key: string]: Metric;
}
;
}

§Properties

§
collectionPeriod?: CollectionPeriod
[src]

The collection period indicates when the data reflected in this record was collected.

§
key?: Key
[src]

Key defines all of the unique querying parameters needed to look up a user experience record.

§
metrics?: {
[key: string]: Metric;
}
[src]

Metrics is the map of user experience data available for the record defined in the key field. Metrics are keyed on the metric name. Allowed key values: ["first_contentful_paint", "first_input_delay", "largest_contentful_paint", "cumulative_layout_shift", "experimental_time_to_first_byte", "experimental_interaction_to_next_paint"]