GoogleApi.AnalyticsData.V1alpha.Model.PivotSelection (google_api_analytics_data v0.7.0) View Source

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 ---------|----------|----------------|----------|----------------

Attributes

  • dimensionName (type: String.t, default: nil) - Must be a dimension name from the request.
  • dimensionValue (type: String.t, default: nil) - Order by only when the named dimension is this value.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.AnalyticsData.V1alpha.Model.PivotSelection{
  dimensionName: String.t(),
  dimensionValue: String.t()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.