Class: Google::Apis::AnalyticsdataV1beta::RunPivotReportResponse

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

Overview

The response pivot report table corresponding to a pivot request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RunPivotReportResponse

Returns a new instance of RunPivotReportResponse.



1497
1498
1499
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1497

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

Instance Attribute Details

#aggregatesArray<Google::Apis::AnalyticsdataV1beta::Row>

Aggregation of metric values. Can be totals, minimums, or maximums. The returned aggregations are controlled by the metric_aggregations in the pivot. The type of aggregation returned in each row is shown by the dimension_values which are set to "RESERVED_". Corresponds to the JSON property aggregates



1447
1448
1449
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1447

def aggregates
  @aggregates
end

#dimension_headersArray<Google::Apis::AnalyticsdataV1beta::DimensionHeader>

Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows. Corresponds to the JSON property dimensionHeaders



1453
1454
1455
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1453

def dimension_headers
  @dimension_headers
end

#kindString

Identifies what kind of resource this message is. This kind is always the fixed string "analyticsData#runPivotReport". Useful to distinguish between response types in JSON. Corresponds to the JSON property kind

Returns:

  • (String)


1460
1461
1462
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1460

def kind
  @kind
end

#metadataGoogle::Apis::AnalyticsdataV1beta::ResponseMetaData

Response's metadata carrying additional information about the report content. Corresponds to the JSON property metadata



1465
1466
1467
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1465

def 
  @metadata
end

#metric_headersArray<Google::Apis::AnalyticsdataV1beta::MetricHeader>

Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows. Corresponds to the JSON property metricHeaders



1471
1472
1473
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1471

def metric_headers
  @metric_headers
end

#pivot_headersArray<Google::Apis::AnalyticsdataV1beta::PivotHeader>

Summarizes the columns and rows created by a pivot. Each pivot in the request produces one header in the response. If we have a request like this: "pivots": ["fieldNames": ["country", "city"], "fieldNames": "eventName"] We will have the following pivotHeaders in the response: "pivotHeaders" : [" dimensionHeaders": [ "dimensionValues": [ "value": "United Kingdom", " value": "London" ] , "dimensionValues": [ "value": "Japan", "value": "Osaka" ] ], "dimensionHeaders": [ "dimensionValues": ["value": " session_start"] , "dimensionValues": ["value": "scroll"] ]] Corresponds to the JSON property pivotHeaders



1483
1484
1485
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1483

def pivot_headers
  @pivot_headers
end

#property_quotaGoogle::Apis::AnalyticsdataV1beta::PropertyQuota

Current state of all quotas for this Analytics Property. If any quota for a property is exhausted, all requests to that property will return Resource Exhausted errors. Corresponds to the JSON property propertyQuota



1490
1491
1492
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1490

def property_quota
  @property_quota
end

#rowsArray<Google::Apis::AnalyticsdataV1beta::Row>

Rows of dimension value combinations and metric values in the report. Corresponds to the JSON property rows



1495
1496
1497
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1495

def rows
  @rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1502

def update!(**args)
  @aggregates = args[:aggregates] if args.key?(:aggregates)
  @dimension_headers = args[:dimension_headers] if args.key?(:dimension_headers)
  @kind = args[:kind] if args.key?(:kind)
  @metadata = args[:metadata] if args.key?(:metadata)
  @metric_headers = args[:metric_headers] if args.key?(:metric_headers)
  @pivot_headers = args[:pivot_headers] if args.key?(:pivot_headers)
  @property_quota = args[:property_quota] if args.key?(:property_quota)
  @rows = args[:rows] if args.key?(:rows)
end