Class: Google::Apis::AnalyticsdataV1alpha::RunReportRequest

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

The request to generate a report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RunReportRequest

Returns a new instance of RunReportRequest.



1703
1704
1705
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1703

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

Instance Attribute Details

#cohort_specGoogle::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



1618
1619
1620
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1618

def cohort_spec
  @cohort_spec
end

#currency_codeString

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

Returns:

  • (String)


1624
1625
1626
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1624

def currency_code
  @currency_code
end

#date_rangesArray<Google::Apis::AnalyticsdataV1alpha::DateRange>

Date ranges of data to read. If multiple date ranges are requested, each response row will contain a zero based date range index. If two date ranges overlap, the event data for the overlapping days is included in the response rows for both date ranges. In a cohort request, this dateRanges must be unspecified. Corresponds to the JSON property dateRanges



1633
1634
1635
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1633

def date_ranges
  @date_ranges
end

#dimension_filterGoogle::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



1639
1640
1641
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1639

def dimension_filter
  @dimension_filter
end

#dimensionsArray<Google::Apis::AnalyticsdataV1alpha::Dimension>

The dimensions requested and displayed. Corresponds to the JSON property dimensions



1644
1645
1646
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1644

def dimensions
  @dimensions
end

#entityGoogle::Apis::AnalyticsdataV1alpha::Entity

The unique identifier of the property whose events are tracked. Corresponds to the JSON property entity



1649
1650
1651
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1649

def entity
  @entity
end

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

Returns:

  • (Boolean)


1656
1657
1658
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1656

def keep_empty_rows
  @keep_empty_rows
end

#limitFixnum

The number of rows to return. If unspecified, 10 rows are returned. If -1, all rows are returned. To learn more about this pagination parameter, see Pagination. Corresponds to the JSON property limit

Returns:

  • (Fixnum)


1665
1666
1667
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1665

def limit
  @limit
end

#metric_aggregationsArray<String>

Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)". Corresponds to the JSON property metricAggregations

Returns:

  • (Array<String>)


1671
1672
1673
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1671

def metric_aggregations
  @metric_aggregations
end

#metric_filterGoogle::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



1677
1678
1679
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1677

def metric_filter
  @metric_filter
end

#metricsArray<Google::Apis::AnalyticsdataV1alpha::Metric>

The metrics requested and displayed. Corresponds to the JSON property metrics



1682
1683
1684
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1682

def metrics
  @metrics
end

#offsetFixnum

The row count of the start row. The first row is counted as row 0. To learn more about this pagination parameter, see Pagination. Corresponds to the JSON property offset

Returns:

  • (Fixnum)


1689
1690
1691
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1689

def offset
  @offset
end

#order_bysArray<Google::Apis::AnalyticsdataV1alpha::OrderBy>

Specifies how rows are ordered in the response. Corresponds to the JSON property orderBys



1694
1695
1696
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1694

def order_bys
  @order_bys
end

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

Returns:

  • (Boolean)


1700
1701
1702
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1700

def return_property_quota
  @return_property_quota
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1708

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)
  @limit = args[:limit] if args.key?(:limit)
  @metric_aggregations = args[:metric_aggregations] if args.key?(:metric_aggregations)
  @metric_filter = args[:metric_filter] if args.key?(:metric_filter)
  @metrics = args[:metrics] if args.key?(:metrics)
  @offset = args[:offset] if args.key?(:offset)
  @order_bys = args[:order_bys] if args.key?(:order_bys)
  @return_property_quota = args[:return_property_quota] if args.key?(:return_property_quota)
end