Class: Google::Apis::AnalyticsV3::RealtimeData::Query
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::AnalyticsV3::RealtimeData::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
Real time data request query parameters.
Instance Attribute Summary collapse
- 
  
    
      #dimensions  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
List of real time dimensions.
 - 
  
    
      #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 real time metrics.
 - 
  
    
      #sort  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
List of dimensions or metrics based on which real time data is sorted.
 
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
      4646 4647 4648  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 4646 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#dimensions ⇒ String
List of real time dimensions.
Corresponds to the JSON property dimensions
      4619 4620 4621  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 4619 def dimensions @dimensions end  | 
  
#filters ⇒ String
Comma-separated list of dimension or metric filters.
Corresponds to the JSON property filters
      4624 4625 4626  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 4624 def filters @filters end  | 
  
#ids ⇒ String
Unique table ID.
Corresponds to the JSON property ids
      4629 4630 4631  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 4629 def ids @ids end  | 
  
#max_results ⇒ Fixnum
Maximum results per page.
Corresponds to the JSON property max-results
      4634 4635 4636  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 4634 def max_results @max_results end  | 
  
#metrics ⇒ Array<String>
List of real time metrics.
Corresponds to the JSON property metrics
      4639 4640 4641  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 4639 def metrics @metrics end  | 
  
#sort ⇒ Array<String>
List of dimensions or metrics based on which real time data is sorted.
Corresponds to the JSON property sort
      4644 4645 4646  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 4644 def sort @sort end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      4651 4652 4653 4654 4655 4656 4657 4658  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 4651 def update!(**args) @dimensions = args[:dimensions] if args.key?(:dimensions) @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) @sort = args[:sort] if args.key?(:sort) end  |