Class: Google::Apis::AnalyticsV3::RealtimeData

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analytics_v3/classes.rb,
lib/google/apis/analytics_v3/representations.rb,
lib/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RealtimeData

Returns a new instance of RealtimeData.



4419
4420
4421
# File 'lib/google/apis/analytics_v3/classes.rb', line 4419

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

Instance Attribute Details

#column_headersArray<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



4372
4373
4374
# File 'lib/google/apis/analytics_v3/classes.rb', line 4372

def column_headers
  @column_headers
end

#idString

Unique ID for this data response. Corresponds to the JSON property id

Returns:

  • (String)


4377
4378
4379
# File 'lib/google/apis/analytics_v3/classes.rb', line 4377

def id
  @id
end

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


4382
4383
4384
# File 'lib/google/apis/analytics_v3/classes.rb', line 4382

def kind
  @kind
end

#profile_infoGoogle::Apis::AnalyticsV3::RealtimeData::ProfileInfo

Information for the view (profile), for which the real time data was requested. Corresponds to the JSON property profileInfo



4387
4388
4389
# File 'lib/google/apis/analytics_v3/classes.rb', line 4387

def profile_info
  @profile_info
end

#queryGoogle::Apis::AnalyticsV3::RealtimeData::Query

Real time data request query parameters. Corresponds to the JSON property query



4392
4393
4394
# File 'lib/google/apis/analytics_v3/classes.rb', line 4392

def query
  @query
end

#rowsArray<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

Returns:

  • (Array<Array<String>>)


4399
4400
4401
# File 'lib/google/apis/analytics_v3/classes.rb', line 4399

def rows
  @rows
end

Link to this page. Corresponds to the JSON property selfLink

Returns:

  • (String)


4404
4405
4406
# File 'lib/google/apis/analytics_v3/classes.rb', line 4404

def self_link
  @self_link
end

#total_resultsFixnum

The total number of rows for the query, regardless of the number of rows in the response. Corresponds to the JSON property totalResults

Returns:

  • (Fixnum)


4410
4411
4412
# File 'lib/google/apis/analytics_v3/classes.rb', line 4410

def total_results
  @total_results
end

#totals_for_all_resultsHash<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

Returns:

  • (Hash<String,String>)


4417
4418
4419
# File 'lib/google/apis/analytics_v3/classes.rb', line 4417

def totals_for_all_results
  @totals_for_all_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
# File 'lib/google/apis/analytics_v3/classes.rb', line 4424

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