Class: Google::Analytics::Data::V1alpha::OrderBy::PivotOrderBy

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/analytics/data/v1alpha/data.rb

Overview

Sorts by a pivot column group.

Defined Under Namespace

Classes: PivotSelection

Instance Attribute Summary collapse

Instance Attribute Details

#metric_name::String

Returns In the response to order by, order rows by this column. Must be a metric name from the request.

Returns:

  • (::String)

    In the response to order by, order rows by this column. Must be a metric name from the request.



387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
# File 'proto_docs/google/analytics/data/v1alpha/data.rb', line 387

class PivotOrderBy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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
  #     ---------|----------|----------------|----------|----------------
  # @!attribute [rw] dimension_name
  #   @return [::String]
  #     Must be a dimension name from the request.
  # @!attribute [rw] dimension_value
  #   @return [::String]
  #     Order by only when the named dimension is this value.
  class PivotSelection
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#pivot_selections::Array<::Google::Analytics::Data::V1alpha::OrderBy::PivotOrderBy::PivotSelection>

Returns Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

Returns:



387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
# File 'proto_docs/google/analytics/data/v1alpha/data.rb', line 387

class PivotOrderBy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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
  #     ---------|----------|----------------|----------|----------------
  # @!attribute [rw] dimension_name
  #   @return [::String]
  #     Must be a dimension name from the request.
  # @!attribute [rw] dimension_value
  #   @return [::String]
  #     Order by only when the named dimension is this value.
  class PivotSelection
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end