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

Metric

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

A metric is a set of user experience data for a single web performance metric, like "first contentful paint". It contains a summary histogram of real world Chrome usage as a series of bins.

interface Metric {
fractions?: {
[key: string]: number;
}
;
histogram?: Bin[];
percentiles?: Percentiles;
}

§Properties

§
fractions?: {
[key: string]: number;
}
[src]

For enum metrics, provides fractions which add up to approximately 1.0.

§
histogram?: Bin[]
[src]

The histogram of user experiences for a metric. The histogram will have at least one bin and the densities of all bins will add up to ~1.

§
percentiles?: Percentiles
[src]

Commonly useful percentiles of the Metric. The value type for the percentiles will be the same as the value types given for the Histogram bins.