Class: Google::Apis::AnalyticsV3::RealtimeData::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

Real time 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.


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

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

Instance Attribute Details

#dimensionsString

List of real time dimensions. Corresponds to the JSON property dimensions

Returns:

  • (String)

4360
4361
4362
# File 'generated/google/apis/analytics_v3/classes.rb', line 4360

def dimensions
  @dimensions
end

#filtersString

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

Returns:

  • (String)

4365
4366
4367
# File 'generated/google/apis/analytics_v3/classes.rb', line 4365

def filters
  @filters
end

#idsString

Unique table ID. Corresponds to the JSON property ids

Returns:

  • (String)

4370
4371
4372
# File 'generated/google/apis/analytics_v3/classes.rb', line 4370

def ids
  @ids
end

#max_resultsFixnum

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

Returns:

  • (Fixnum)

4375
4376
4377
# File 'generated/google/apis/analytics_v3/classes.rb', line 4375

def max_results
  @max_results
end

#metricsArray<String>

List of real time metrics. Corresponds to the JSON property metrics

Returns:

  • (Array<String>)

4380
4381
4382
# File 'generated/google/apis/analytics_v3/classes.rb', line 4380

def metrics
  @metrics
end

#sortArray<String>

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

Returns:

  • (Array<String>)

4385
4386
4387
# File 'generated/google/apis/analytics_v3/classes.rb', line 4385

def sort
  @sort
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4392
4393
4394
4395
4396
4397
4398
4399
# File 'generated/google/apis/analytics_v3/classes.rb', line 4392

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