Class: Google::Apis::AnalyticsV3::McfData::Query

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/analytics_v3/classes.rb,
generated/google/apis/analytics_v3/representations.rb,
generated/google/apis/analytics_v3/representations.rb

Overview

Analytics data request query parameters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Query

Returns a new instance of Query.


3737
3738
3739
# File 'generated/google/apis/analytics_v3/classes.rb', line 3737

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dimensionsString

List of analytics dimensions. Corresponds to the JSON property dimensions

Returns:

  • (String)

3685
3686
3687
# File 'generated/google/apis/analytics_v3/classes.rb', line 3685

def dimensions
  @dimensions
end

#end_dateString

End date. Corresponds to the JSON property end-date

Returns:

  • (String)

3690
3691
3692
# File 'generated/google/apis/analytics_v3/classes.rb', line 3690

def end_date
  @end_date
end

#filtersString

Comma-separated list of dimension or metric filters. Corresponds to the JSON property filters

Returns:

  • (String)

3695
3696
3697
# File 'generated/google/apis/analytics_v3/classes.rb', line 3695

def filters
  @filters
end

#idsString

Unique table ID. Corresponds to the JSON property ids

Returns:

  • (String)

3700
3701
3702
# File 'generated/google/apis/analytics_v3/classes.rb', line 3700

def ids
  @ids
end

#max_resultsFixnum

Maximum results per page. Corresponds to the JSON property max-results

Returns:

  • (Fixnum)

3705
3706
3707
# File 'generated/google/apis/analytics_v3/classes.rb', line 3705

def max_results
  @max_results
end

#metricsArray<String>

List of analytics metrics. Corresponds to the JSON property metrics

Returns:

  • (Array<String>)

3710
3711
3712
# File 'generated/google/apis/analytics_v3/classes.rb', line 3710

def metrics
  @metrics
end

#sampling_levelString

Desired sampling level Corresponds to the JSON property samplingLevel

Returns:

  • (String)

3715
3716
3717
# File 'generated/google/apis/analytics_v3/classes.rb', line 3715

def sampling_level
  @sampling_level
end

#segmentString

Analytics advanced segment. Corresponds to the JSON property segment

Returns:

  • (String)

3720
3721
3722
# File 'generated/google/apis/analytics_v3/classes.rb', line 3720

def segment
  @segment
end

#sortArray<String>

List of dimensions or metrics based on which Analytics data is sorted. Corresponds to the JSON property sort

Returns:

  • (Array<String>)

3725
3726
3727
# File 'generated/google/apis/analytics_v3/classes.rb', line 3725

def sort
  @sort
end

#start_dateString

Start date. Corresponds to the JSON property start-date

Returns:

  • (String)

3730
3731
3732
# File 'generated/google/apis/analytics_v3/classes.rb', line 3730

def start_date
  @start_date
end

#start_indexFixnum

Start index. Corresponds to the JSON property start-index

Returns:

  • (Fixnum)

3735
3736
3737
# File 'generated/google/apis/analytics_v3/classes.rb', line 3735

def start_index
  @start_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
# File 'generated/google/apis/analytics_v3/classes.rb', line 3742

def update!(**args)
  @dimensions = args[:dimensions] if args.key?(:dimensions)
  @end_date = args[:end_date] if args.key?(:end_date)
  @filters = args[:filters] if args.key?(:filters)
  @ids = args[:ids] if args.key?(:ids)
  @max_results = args[:max_results] if args.key?(:max_results)
  @metrics = args[:metrics] if args.key?(:metrics)
  @sampling_level = args[:sampling_level] if args.key?(:sampling_level)
  @segment = args[:segment] if args.key?(:segment)
  @sort = args[:sort] if args.key?(:sort)
  @start_date = args[:start_date] if args.key?(:start_date)
  @start_index = args[:start_index] if args.key?(:start_index)
end