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

TimeseriesBin

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

A bin is a discrete portion of data spanning from start to end, or if no end is given, then from start to +inf. A bin's start and end values are given in the value type of the metric it represents. For example, "first contentful paint" is measured in milliseconds and exposed as ints, therefore its metric bins will use int32s for its start and end types. However, "cumulative layout shift" is measured in unitless decimals and is exposed as a decimal encoded as a string, therefore its metric bins will use strings for its value type.

interface TimeseriesBin {
densities?: number[];
end?: any;
start?: any;
}

§Properties

§
densities?: number[]
[src]

The proportion of users that experienced this bin's value for the given metric in a given collection period; the index for each of these entries corresponds to an entry in the CollectionPeriods field in the HistoryRecord message, which describes when the density was observed in the field. Thus, the length of this list of densities is equal to the length of the CollectionPeriods field in the HistoryRecord message.

§
end?: any
[src]

End is the end of the data bin. If end is not populated, then the bin has no end and is valid from start to +inf.

§
start?: any
[src]

Start is the beginning of the data bin.