Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Report<Dimension, Metric>

Type parameters

  • Dimension: string

  • Metric: string

Hierarchy

Index

Constructors

constructor

  • new Report<Dimension, Metric>(accountId: number): Report<Dimension, Metric>
  • Type parameters

    • Dimension: string

    • Metric: string

    Parameters

    • accountId: number

    Returns Report<Dimension, Metric>

Methods

order

  • order(field: Dimension | Metric, direction?: Direction): Report<Dimension, Metric>
  • order(...args: ArrayOneOrMore<[Dimension | Metric, Direction?]>): Report<Dimension, Metric>

rows

  • rows(page?: number, pageLength?: number, utcOffset?: string): Promise<Record<Dimension | Metric, null | string | number>[]>
  • Parameters

    • page: number = 0
    • pageLength: number = 1000
    • utcOffset: string = "+00:00"

    Returns Promise<Record<Dimension | Metric, null | string | number>[]>

select

  • select(...fields: (Dimension | Metric)[]): Report<Dimension, Metric>

where

  • where(field: Dimension | Metric, operator: Op, value: Value, exclude?: boolean): Report<Dimension, Metric>
  • where<T>(...args: ArrayOneOrMore<[T, Op, Value, boolean?]>): Report<Dimension, Metric>
  • where<T>(...args: ArrayOneOrMore<[T, Op, Value, boolean?]>): Report<Dimension, Metric>
  • Parameters

    • field: Dimension | Metric
    • operator: Op
    • value: Value
    • Optional exclude: boolean

    Returns Report<Dimension, Metric>

  • Type parameters

    • T: string

    Parameters

    • Rest ...args: ArrayOneOrMore<[T, Op, Value, boolean?]>

    Returns Report<Dimension, Metric>

  • Type parameters

    • T: string

    Parameters

    • Rest ...args: ArrayOneOrMore<[T, Op, Value, boolean?]>

    Returns Report<Dimension, Metric>

Generated using TypeDoc