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

HistoryRecord

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

HistoryRecord is a timeseries of Chrome UX Report data. It contains user experience statistics for a single url pattern and a set of dimensions.

interface HistoryRecord {
collectionPeriods?: CollectionPeriod[];
key?: HistoryKey;
metrics?: {
[key: string]: MetricTimeseries;
}
;
}

§Properties

§
collectionPeriods?: CollectionPeriod[]
[src]

The collection periods indicate when each of the data points reflected in the time series data in metrics was collected. Note that all the time series share the same collection periods, and it is enforced in the CrUX pipeline that every time series has the same number of data points.

§

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

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

Metrics is the map of user experience time series 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"]