Class: Google::Apis::AnalyticsdataV1alpha::Row

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/analyticsdata_v1alpha/classes.rb,
generated/google/apis/analyticsdata_v1alpha/representations.rb,
generated/google/apis/analyticsdata_v1alpha/representations.rb

Overview

Report data for each row. For example if RunReportRequest contains: none " dimensions": [ ` "name": "eventName" `, ` "name": "countryId" ` ], "metrics": [ ` "name": "eventCount" ` ] One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and 15 as the eventCount, would be: none " dimensionValues": [ ` "value": "in_app_purchase" `, ` "value": "JP" ` ], " metricValues": [ ` "value": "15" ` ]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Row

Returns a new instance of Row.



1279
1280
1281
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1279

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

Instance Attribute Details

#dimension_valuesArray<Google::Apis::AnalyticsdataV1alpha::DimensionValue>

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. Corresponds to the JSON property dimensionValues



1272
1273
1274
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1272

def dimension_values
  @dimension_values
end

#metric_valuesArray<Google::Apis::AnalyticsdataV1alpha::MetricValue>

List of requested visible metric values. Corresponds to the JSON property metricValues



1277
1278
1279
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1277

def metric_values
  @metric_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1284
1285
1286
1287
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1284

def update!(**args)
  @dimension_values = args[:dimension_values] if args.key?(:dimension_values)
  @metric_values = args[:metric_values] if args.key?(:metric_values)
end