Class: Google::Apis::PlaydeveloperreportingV1beta1::GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetRequest

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

Overview

Request message for QueryCrashRateMetricSet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetRequest

Returns a new instance of GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetRequest.



654
655
656
# File 'lib/google/apis/playdeveloperreporting_v1beta1/classes.rb', line 654

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

Instance Attribute Details

#dimensionsArray<String>

Dimensions to slice the metrics by. Supported dimensions: * apiLevel ( string): the API level of Android that was running on the user's device. * versionCode (int64): version of the app that was running on the user's device.

  • deviceModel (string): unique identifier of the user's device model. * deviceType (string): the type (also known as form factor) of the user's device. * countryCode (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). Corresponds to the JSON property dimensions

Returns:

  • (Array<String>)


595
596
597
# File 'lib/google/apis/playdeveloperreporting_v1beta1/classes.rb', line 595

def dimensions
  @dimensions
end

#filterString

Filters to apply to data. The filtering expression follows AIP-160 standard and supports filtering by equality of all breakdown dimensions. Corresponds to the JSON property filter

Returns:

  • (String)


602
603
604
# File 'lib/google/apis/playdeveloperreporting_v1beta1/classes.rb', line 602

def filter
  @filter
end

#metricsArray<String>

Metrics to aggregate. Supported metrics: * crashRate (google.type. Decimal): Percentage of distinct users in the aggregation period that experienced at least one crash. If your app exhibits a crash rate equal to or higher than the threshold, it's in the bottom 25% of the top 1,000 apps on Google Play (by number of installs). * crashRate7dUserWeighted (google.type. Decimal): Rolling average value of crashRate in the last 7 days. The daily values are weighted by the count of distinct users for the day. * crashRate28dUserWeighted (google.type.Decimal): Rolling average value of crashRate in the last 28 days. The daily values are weighted by the count of distinct users for the day. * distinctUsers (google.type.Decimal): Count of distinct users in the aggregation period that were used as normalization value for the crashRate metric. A user is counted in this metric if they used the app in the foreground during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. Corresponds to the JSON property metrics

Returns:

  • (Array<String>)


621
622
623
# File 'lib/google/apis/playdeveloperreporting_v1beta1/classes.rb', line 621

def metrics
  @metrics
end

#page_sizeFixnum

Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100,000; values above 100,000 will be coerced to 100,000. Corresponds to the JSON property pageSize

Returns:

  • (Fixnum)


628
629
630
# File 'lib/google/apis/playdeveloperreporting_v1beta1/classes.rb', line 628

def page_size
  @page_size
end

#page_tokenString

A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token. Corresponds to the JSON property pageToken

Returns:

  • (String)


635
636
637
# File 'lib/google/apis/playdeveloperreporting_v1beta1/classes.rb', line 635

def page_token
  @page_token
end

#timeline_specGoogle::Apis::PlaydeveloperreportingV1beta1::GooglePlayDeveloperReportingV1beta1TimelineSpec

Specification of the time-related aggregation parameters of a timeline. Timelines have an aggregation period (DAILY, HOURLY, etc) which defines how events are aggregated in metrics. The points in a timeline are defined by the starting DateTime of the aggregation period. The duration is implicit in the AggregationPeriod. Hourly aggregation periods, when supported by a metric set, are always specified in UTC to avoid ambiguities around daylight saving time transitions, where an hour is skipped when adopting DST, and repeated when abandoning DST. For example, the timestamp '2021-11-07 01:00:00 America/ Los_Angeles' is ambiguous since it can correspond to '2021-11-07 08:00:00 UTC' or '2021-11-07 09:00:00 UTC'. Daily aggregation periods require specifying a timezone which will determine the precise instants of the start and the end of the day. Not all metric sets support all timezones, so make sure to check which timezones are supported by the metric set you want to query. Corresponds to the JSON property timelineSpec



652
653
654
# File 'lib/google/apis/playdeveloperreporting_v1beta1/classes.rb', line 652

def timeline_spec
  @timeline_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



659
660
661
662
663
664
665
666
# File 'lib/google/apis/playdeveloperreporting_v1beta1/classes.rb', line 659

def update!(**args)
  @dimensions = args[:dimensions] if args.key?(:dimensions)
  @filter = args[:filter] if args.key?(:filter)
  @metrics = args[:metrics] if args.key?(:metrics)
  @page_size = args[:page_size] if args.key?(:page_size)
  @page_token = args[:page_token] if args.key?(:page_token)
  @timeline_spec = args[:timeline_spec] if args.key?(:timeline_spec)
end