Class: Google::Apis::AnalyticsV3::RealtimeData
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AnalyticsV3::RealtimeData
 
- 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 for a given view (profile).
Defined Under Namespace
Classes: ColumnHeader, ProfileInfo, Query
Instance Attribute Summary collapse
- 
  
    
      #column_headers  ⇒ Array<Google::Apis::AnalyticsV3::RealtimeData::ColumnHeader> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Column headers that list dimension names followed by the metric names. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Unique ID for this data response. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Resource type. 
- 
  
    
      #profile_info  ⇒ Google::Apis::AnalyticsV3::RealtimeData::ProfileInfo 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Information for the view (profile), for which the real time data was requested. 
- 
  
    
      #query  ⇒ Google::Apis::AnalyticsV3::RealtimeData::Query 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Real time data request query parameters. 
- 
  
    
      #rows  ⇒ Array<Array<String>> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Real time data rows, where each row contains a list of dimension values followed by the metric values. 
- 
  
    
      #self_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Link to this page. 
- 
  
    
      #total_results  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The total number of rows for the query, regardless of the number of rows in the response. 
- 
  
    
      #totals_for_all_results  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Total values for the requested metrics over all the results, not just the results returned in this response. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ RealtimeData 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RealtimeData. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RealtimeData
Returns a new instance of RealtimeData
| 4445 4446 4447 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4445 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#column_headers ⇒ Array<Google::Apis::AnalyticsV3::RealtimeData::ColumnHeader>
Column headers that list dimension names followed by the metric names. The
order of dimensions and metrics is same as specified in the request.
Corresponds to the JSON property columnHeaders
| 4398 4399 4400 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4398 def column_headers @column_headers end | 
#id ⇒ String
Unique ID for this data response.
Corresponds to the JSON property id
| 4403 4404 4405 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4403 def id @id end | 
#kind ⇒ String
Resource type.
Corresponds to the JSON property kind
| 4408 4409 4410 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4408 def kind @kind end | 
#profile_info ⇒ Google::Apis::AnalyticsV3::RealtimeData::ProfileInfo
Information for the view (profile), for which the real time data was requested.
Corresponds to the JSON property profileInfo
| 4413 4414 4415 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4413 def profile_info @profile_info end | 
#query ⇒ Google::Apis::AnalyticsV3::RealtimeData::Query
Real time data request query parameters.
Corresponds to the JSON property query
| 4418 4419 4420 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4418 def query @query end | 
#rows ⇒ Array<Array<String>>
Real time data rows, where each row contains a list of dimension values
followed by the metric values. The order of dimensions and metrics is same as
specified in the request.
Corresponds to the JSON property rows
| 4425 4426 4427 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4425 def rows @rows end | 
#self_link ⇒ String
Link to this page.
Corresponds to the JSON property selfLink
| 4430 4431 4432 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4430 def self_link @self_link end | 
#total_results ⇒ Fixnum
The total number of rows for the query, regardless of the number of rows in
the response.
Corresponds to the JSON property totalResults
| 4436 4437 4438 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4436 def total_results @total_results end | 
#totals_for_all_results ⇒ Hash<String,String>
Total values for the requested metrics over all the results, not just the
results returned in this response. The order of the metric totals is same as
the metric order specified in the request.
Corresponds to the JSON property totalsForAllResults
| 4443 4444 4445 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4443 def totals_for_all_results @totals_for_all_results end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4450 def update!(**args) @column_headers = args[:column_headers] if args.key?(:column_headers) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @profile_info = args[:profile_info] if args.key?(:profile_info) @query = args[:query] if args.key?(:query) @rows = args[:rows] if args.key?(:rows) @self_link = args[:self_link] if args.key?(:self_link) @total_results = args[:total_results] if args.key?(:total_results) @totals_for_all_results = args[:totals_for_all_results] if args.key?(:totals_for_all_results) end |