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

PivotSelection

import type { PivotSelection } from "https://googleapis.deno.dev/v1/analyticsdata:v1beta.ts";

A pair of dimension names and values. Rows with this dimension pivot pair are ordered by the metric's value. For example if pivots = {{"browser", "Chrome"}} and metric_name = "Sessions", then the rows will be sorted based on Sessions in Chrome. ---------|----------|----------------|----------|---------------- | Chrome | Chrome | Safari | Safari ---------|----------|----------------|----------|---------------- Country | Sessions | Pages/Sessions | Sessions | Pages/Sessions ---------|----------|----------------|----------|---------------- US | 2 | 2 | 3 | 1 ---------|----------|----------------|----------|---------------- Canada | 3 | 1 | 4 | 1 ---------|----------|----------------|----------|----------------

interface PivotSelection {
dimensionName?: string;
dimensionValue?: string;
}

§Properties

§
dimensionName?: string
[src]

Must be a dimension name from the request.

§
dimensionValue?: string
[src]

Order by only when the named dimension is this value.