Class: Google::Apis::AnalyticsdataV1alpha::RunPivotReportRequest
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1alpha::RunPivotReportRequest
- 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
The request to generate a pivot report.
Instance Attribute Summary collapse
-
#cohort_spec ⇒ Google::Apis::AnalyticsdataV1alpha::CohortSpec
Specification of cohorts for a cohort report.
-
#currency_code ⇒ String
A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-
#date_ranges ⇒ Array<Google::Apis::AnalyticsdataV1alpha::DateRange>
The date range to retrieve event data for the report.
-
#dimension_filter ⇒ Google::Apis::AnalyticsdataV1alpha::FilterExpression
To express dimension or metric filters.
-
#dimensions ⇒ Array<Google::Apis::AnalyticsdataV1alpha::Dimension>
The dimensions requested.
-
#entity ⇒ Google::Apis::AnalyticsdataV1alpha::Entity
The unique identifier of the property whose events are tracked.
-
#keep_empty_rows ⇒ Boolean
(also: #keep_empty_rows?)
If false or unspecified, each row with all metrics equal to 0 will not be returned.
-
#metric_filter ⇒ Google::Apis::AnalyticsdataV1alpha::FilterExpression
To express dimension or metric filters.
-
#metrics ⇒ Array<Google::Apis::AnalyticsdataV1alpha::Metric>
The metrics requested, at least one metric needs to be specified.
-
#pivots ⇒ Array<Google::Apis::AnalyticsdataV1alpha::Pivot>
Describes the visual format of the report's dimensions in columns or rows.
-
#return_property_quota ⇒ Boolean
(also: #return_property_quota?)
Toggles whether to return the current state of this Analytics Property's quota.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RunPivotReportRequest
constructor
A new instance of RunPivotReportRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RunPivotReportRequest
Returns a new instance of RunPivotReportRequest.
1377 1378 1379 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1377 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cohort_spec ⇒ Google::Apis::AnalyticsdataV1alpha::CohortSpec
Specification of cohorts for a cohort report. Cohort reports can be used for
example to create a time series of user retention for the cohort. For example,
you could select the cohort of users that were acquired in the first week of
September and follow that cohort for the next six weeks. Selecting the users
acquired in the first week of September cohort is specified in the cohort
object. Following that cohort for the next six weeks is specified in the
cohortsRange
object. The report response could show a weekly time series
where say your app has retained 60% of this cohort after three weeks and 25%
of this cohort after six weeks. These two percentages can be calculated by the
metric cohortActiveUsers/cohortTotalUsers
and will be separate rows in the
report.
Corresponds to the JSON property cohortSpec
1307 1308 1309 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1307 def cohort_spec @cohort_spec end |
#currency_code ⇒ String
A currency code in ISO4217 format, such as "AED", "USD", "JPY". If the field
is empty, the report uses the entity's default currency.
Corresponds to the JSON property currencyCode
1313 1314 1315 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1313 def currency_code @currency_code end |
#date_ranges ⇒ Array<Google::Apis::AnalyticsdataV1alpha::DateRange>
The date range to retrieve event data for the report. If multiple date ranges
are specified, event data from each date range is used in the report. A
special dimension with field name "dateRange" can be included in a Pivot's
field names; if included, the report compares between date ranges. In a cohort
request, this dateRanges
must be unspecified.
Corresponds to the JSON property dateRanges
1322 1323 1324 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1322 def date_ranges @date_ranges end |
#dimension_filter ⇒ Google::Apis::AnalyticsdataV1alpha::FilterExpression
To express dimension or metric filters. The fields in the same
FilterExpression need to be either all dimensions or all metrics.
Corresponds to the JSON property dimensionFilter
1328 1329 1330 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1328 def dimension_filter @dimension_filter end |
#dimensions ⇒ Array<Google::Apis::AnalyticsdataV1alpha::Dimension>
The dimensions requested. All defined dimensions must be used by one of the
following: dimension_expression, dimension_filter, pivots, order_bys.
Corresponds to the JSON property dimensions
1334 1335 1336 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1334 def dimensions @dimensions end |
#entity ⇒ Google::Apis::AnalyticsdataV1alpha::Entity
The unique identifier of the property whose events are tracked.
Corresponds to the JSON property entity
1339 1340 1341 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1339 def entity @entity end |
#keep_empty_rows ⇒ Boolean Also known as: keep_empty_rows?
If false or unspecified, each row with all metrics equal to 0 will not be
returned. If true, these rows will be returned if they are not separately
removed by a filter.
Corresponds to the JSON property keepEmptyRows
1346 1347 1348 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1346 def keep_empty_rows @keep_empty_rows end |
#metric_filter ⇒ Google::Apis::AnalyticsdataV1alpha::FilterExpression
To express dimension or metric filters. The fields in the same
FilterExpression need to be either all dimensions or all metrics.
Corresponds to the JSON property metricFilter
1353 1354 1355 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1353 def metric_filter @metric_filter end |
#metrics ⇒ Array<Google::Apis::AnalyticsdataV1alpha::Metric>
The metrics requested, at least one metric needs to be specified. All defined
metrics must be used by one of the following: metric_expression, metric_filter,
order_bys.
Corresponds to the JSON property metrics
1360 1361 1362 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1360 def metrics @metrics end |
#pivots ⇒ Array<Google::Apis::AnalyticsdataV1alpha::Pivot>
Describes the visual format of the report's dimensions in columns or rows. The
union of the fieldNames (dimension names) in all pivots must be a subset of
dimension names defined in Dimensions. No two pivots can share a dimension. A
dimension is only visible if it appears in a pivot.
Corresponds to the JSON property pivots
1368 1369 1370 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1368 def pivots @pivots end |
#return_property_quota ⇒ Boolean Also known as: return_property_quota?
Toggles whether to return the current state of this Analytics Property's quota.
Quota is returned in PropertyQuota.
Corresponds to the JSON property returnPropertyQuota
1374 1375 1376 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1374 def return_property_quota @return_property_quota end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1382 def update!(**args) @cohort_spec = args[:cohort_spec] if args.key?(:cohort_spec) @currency_code = args[:currency_code] if args.key?(:currency_code) @date_ranges = args[:date_ranges] if args.key?(:date_ranges) @dimension_filter = args[:dimension_filter] if args.key?(:dimension_filter) @dimensions = args[:dimensions] if args.key?(:dimensions) @entity = args[:entity] if args.key?(:entity) @keep_empty_rows = args[:keep_empty_rows] if args.key?(:keep_empty_rows) @metric_filter = args[:metric_filter] if args.key?(:metric_filter) @metrics = args[:metrics] if args.key?(:metrics) @pivots = args[:pivots] if args.key?(:pivots) @return_property_quota = args[:return_property_quota] if args.key?(:return_property_quota) end |