Class: Google::Apis::AnalyticsV3::McfData::Query
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsV3::McfData::Query
- 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
-
#dimensions ⇒ String
List of analytics dimensions.
-
#end_date ⇒ String
End date.
-
#filters ⇒ String
Comma-separated list of dimension or metric filters.
-
#ids ⇒ String
Unique table ID.
-
#max_results ⇒ Fixnum
Maximum results per page.
-
#metrics ⇒ Array<String>
List of analytics metrics.
-
#sampling_level ⇒ String
Desired sampling level Corresponds to the JSON property
samplingLevel
. -
#segment ⇒ String
Analytics advanced segment.
-
#sort ⇒ Array<String>
List of dimensions or metrics based on which Analytics data is sorted.
-
#start_date ⇒ String
Start date.
-
#start_index ⇒ Fixnum
Start index.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Query
constructor
A new instance of Query.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Query
Returns a new instance of Query
3763 3764 3765 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 3763 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dimensions ⇒ String
List of analytics dimensions.
Corresponds to the JSON property dimensions
3711 3712 3713 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 3711 def dimensions @dimensions end |
#end_date ⇒ String
End date.
Corresponds to the JSON property end-date
3716 3717 3718 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 3716 def end_date @end_date end |
#filters ⇒ String
Comma-separated list of dimension or metric filters.
Corresponds to the JSON property filters
3721 3722 3723 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 3721 def filters @filters end |
#ids ⇒ String
Unique table ID.
Corresponds to the JSON property ids
3726 3727 3728 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 3726 def ids @ids end |
#max_results ⇒ Fixnum
Maximum results per page.
Corresponds to the JSON property max-results
3731 3732 3733 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 3731 def max_results @max_results end |
#metrics ⇒ Array<String>
List of analytics metrics.
Corresponds to the JSON property metrics
3736 3737 3738 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 3736 def metrics @metrics end |
#sampling_level ⇒ String
Desired sampling level
Corresponds to the JSON property samplingLevel
3741 3742 3743 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 3741 def sampling_level @sampling_level end |
#segment ⇒ String
Analytics advanced segment.
Corresponds to the JSON property segment
3746 3747 3748 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 3746 def segment @segment end |
#sort ⇒ Array<String>
List of dimensions or metrics based on which Analytics data is sorted.
Corresponds to the JSON property sort
3751 3752 3753 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 3751 def sort @sort end |
#start_date ⇒ String
Start date.
Corresponds to the JSON property start-date
3756 3757 3758 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 3756 def start_date @start_date end |
#start_index ⇒ Fixnum
Start index.
Corresponds to the JSON property start-index
3761 3762 3763 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 3761 def start_index @start_index end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 3768 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 |