From 27dec4b541efc91241a846b501be34ad5b1620c5 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 12 Mar 2024 02:42:45 +0000 Subject: [PATCH] feat: Automated regeneration of PlayDeveloperReporting client --- clients/play_developer_reporting/README.md | 2 +- .../v1beta1/api/apps.ex | 172 ++++ .../v1beta1/api/vitals.ex | 742 +++++++++++++++++- .../v1beta1/connection.ex | 5 +- .../v1beta1/metadata.ex | 2 +- ...lay_developer_reporting_v1beta1_anomaly.ex | 2 +- ...r_reporting_v1beta1_anr_rate_metric_set.ex | 4 +- ...le_play_developer_reporting_v1beta1_app.ex | 57 ++ ...developer_reporting_v1beta1_app_version.ex | 53 ++ ...reporting_v1beta1_crash_rate_metric_set.ex | 4 +- ...ing_v1beta1_decimal_confidence_interval.ex | 58 ++ ...y_developer_reporting_v1beta1_device_id.ex | 54 ++ ..._reporting_v1beta1_device_model_summary.ex | 64 ++ ...eporting_v1beta1_error_count_metric_set.ex | 62 ++ ...developer_reporting_v1beta1_error_issue.ex | 124 +++ ...eveloper_reporting_v1beta1_error_report.ex | 96 +++ ...1beta1_excessive_wakeup_rate_metric_set.ex | 4 +- ...eveloper_reporting_v1beta1_metric_value.ex | 10 + ..._developer_reporting_v1beta1_os_version.ex | 51 ++ ...beta1_query_anr_rate_metric_set_request.ex | 12 +- ...ta1_query_crash_rate_metric_set_request.ex | 12 +- ...a1_query_error_count_metric_set_request.ex | 74 ++ ...1_query_error_count_metric_set_response.ex | 65 ++ ...xcessive_wakeup_rate_metric_set_request.ex | 10 +- ..._slow_rendering_rate_metric_set_request.ex | 78 ++ ...slow_rendering_rate_metric_set_response.ex | 65 ++ ...uery_slow_start_rate_metric_set_request.ex | 78 ++ ...ery_slow_start_rate_metric_set_response.ex | 65 ++ ...ground_wakelock_rate_metric_set_request.ex | 10 +- ...lay_developer_reporting_v1beta1_release.ex | 54 ++ ...eporting_v1beta1_release_filter_options.ex | 60 ++ ...v1beta1_search_accessible_apps_response.ex | 64 ++ ...ng_v1beta1_search_error_issues_response.ex | 65 ++ ...g_v1beta1_search_error_reports_response.ex | 65 ++ ..._v1beta1_slow_rendering_rate_metric_set.ex | 62 ++ ...ting_v1beta1_slow_start_rate_metric_set.ex | 62 ++ ...uck_background_wakelock_rate_metric_set.ex | 4 +- ..._play_developer_reporting_v1beta1_track.ex | 66 ++ clients/play_developer_reporting/mix.exs | 2 +- 39 files changed, 2500 insertions(+), 39 deletions(-) create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/api/apps.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_app.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_app_version.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_decimal_confidence_interval.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_device_id.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_device_model_summary.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_error_count_metric_set.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_error_issue.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_error_report.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_os_version.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_error_count_metric_set_request.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_error_count_metric_set_response.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_rendering_rate_metric_set_request.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_rendering_rate_metric_set_response.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_start_rate_metric_set_request.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_start_rate_metric_set_response.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_release.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_release_filter_options.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_search_accessible_apps_response.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_search_error_issues_response.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_search_error_reports_response.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_slow_rendering_rate_metric_set.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_slow_start_rate_metric_set.ex create mode 100644 clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_track.ex diff --git a/clients/play_developer_reporting/README.md b/clients/play_developer_reporting/README.md index 38a59ed206..3636ea6f99 100644 --- a/clients/play_developer_reporting/README.md +++ b/clients/play_developer_reporting/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_play_developer_reporting, "~> 0.2"}] + [{:google_api_play_developer_reporting, "~> 0.3"}] end ``` diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/api/apps.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/api/apps.ex new file mode 100644 index 0000000000..c6b055a64b --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/api/apps.ex @@ -0,0 +1,172 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Api.Apps do + @moduledoc """ + API calls for all endpoints tagged `Apps`. + """ + + alias GoogleApi.PlayDeveloperReporting.V1beta1.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Describes filtering options for releases. + + ## Parameters + + * `connection` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Name of the resource, i.e. app the filtering options are for. Format: apps/{app} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ReleaseFilterOptions{}}` on success + * `{:error, info}` on failure + """ + @spec playdeveloperreporting_apps_fetch_release_filter_options( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ReleaseFilterOptions.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def playdeveloperreporting_apps_fetch_release_filter_options( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1beta1/{+name}:fetchReleaseFilterOptions", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ReleaseFilterOptions{} + ] + ) + end + + @doc """ + Searches for Apps accessible by the user. + + ## Parameters + + * `connection` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Connection.t`) - Connection to server + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:pageSize` (*type:* `integer()`) - The maximum number of apps to return. The service may return fewer than this value. If unspecified, at most 50 apps will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `:pageToken` (*type:* `String.t`) - A page token, received from a previous `SearchAccessibleApps` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchAccessibleApps` must match the call that provided the page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchAccessibleAppsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec playdeveloperreporting_apps_search(Tesla.Env.client(), keyword(), keyword()) :: + {:ok, + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchAccessibleAppsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def playdeveloperreporting_apps_search(connection, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1beta1/apps:search", %{}) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchAccessibleAppsResponse{} + ] + ) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/api/vitals.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/api/vitals.ex index 61de935cf1..a9bd9f8381 100644 --- a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/api/vitals.ex +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/api/vitals.ex @@ -337,6 +337,412 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Api.Vitals do ) end + @doc """ + Describes the properties of the metrics set. + + ## Parameters + + * `connection` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Name of the errors metric set. Format: apps/{app}/errorCountMetricSet + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet{}}` on success + * `{:error, info}` on failure + """ + @spec playdeveloperreporting_vitals_errors_counts_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def playdeveloperreporting_vitals_errors_counts_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1beta1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet{} + ] + ) + end + + @doc """ + Queries the metrics in the metrics set. + + ## Parameters + + * `connection` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name. Format: apps/{app}/errorCountMetricSet + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse{}}` on success + * `{:error, info}` on failure + """ + @spec playdeveloperreporting_vitals_errors_counts_query( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def playdeveloperreporting_vitals_errors_counts_query( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1beta1/{+name}:query", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse{} + ] + ) + end + + @doc """ + Searches all error issues in which reports have been grouped. + + ## Parameters + + * `connection` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Parent resource of the error issues, indicating the application for which they were received. Format: apps/{app} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - A selection predicate to retrieve only a subset of the issues. Counts in the returned error issues will only reflect occurrences that matched the filter. For filtering basics, please check [AIP-160](https://google.aip.dev/160). ** Supported field names:** * `apiLevel`: Matches error issues that occurred in the requested Android versions (specified as the numeric API level) only. Example: `apiLevel = 28 OR apiLevel = 29`. * `versionCode`: Matches error issues that occurred in the requested app version codes only. Example: `versionCode = 123 OR versionCode = 456`. * `deviceModel`: Matches error issues that occurred in the requested devices. Example: `deviceModel = "google/walleye" OR deviceModel = "google/marlin"`. * `deviceBrand`: Matches error issues that occurred in the requested device brands. Example: `deviceBrand = "Google". * `deviceType`: Matches error issues that occurred in the requested device types. Example: `deviceType = "PHONE"`. * `errorIssueType`: Matches error issues of the requested types only. Valid candidates: `CRASH`, `ANR`. Example: `errorIssueType = CRASH OR errorIssueType = ANR`. * `appProcessState`: Matches error issues on the process state of an app, indicating whether an app runs in the foreground (user-visible) or background. Valid candidates: `FOREGROUND`, `BACKGROUND`. Example: `appProcessState = FOREGROUND`. * `isUserPerceived`: Matches error issues that are user-perceived. It is not accompanied by any operators. Example: `isUserPerceived`. ** Supported operators:** * Comparison operators: The only supported comparison operator is equality. The filtered field must appear on the left hand side of the comparison. * Logical Operators: Logical operators `AND` and `OR` can be used to build complex filters following a conjunctive normal form (CNF), i.e., conjunctions of disjunctions. The `OR` operator takes precedence over `AND` so the use of parenthesis is not necessary when building CNF. The `OR` operator is only supported to build disjunctions that apply to the same field, e.g., `versionCode = 123 OR errorIssueType = ANR` is not a valid filter. ** Examples ** Some valid filtering expressions: * `versionCode = 123 AND errorIssueType = ANR` * `versionCode = 123 AND errorIssueType = OR errorIssueType = CRASH` * `versionCode = 123 AND (errorIssueType = OR errorIssueType = CRASH)` + * `:"interval.endTime.day"` (*type:* `integer()`) - Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day. + * `:"interval.endTime.hours"` (*type:* `integer()`) - Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value "24:00:00" for scenarios like business closing time. + * `:"interval.endTime.minutes"` (*type:* `integer()`) - Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * `:"interval.endTime.month"` (*type:* `integer()`) - Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. + * `:"interval.endTime.nanos"` (*type:* `integer()`) - Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. + * `:"interval.endTime.seconds"` (*type:* `integer()`) - Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds. + * `:"interval.endTime.timeZone.id"` (*type:* `String.t`) - IANA Time Zone Database time zone, e.g. "America/New_York". + * `:"interval.endTime.timeZone.version"` (*type:* `String.t`) - Optional. IANA Time Zone Database version number, e.g. "2019a". + * `:"interval.endTime.utcOffset"` (*type:* `String.t`) - UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }. + * `:"interval.endTime.year"` (*type:* `integer()`) - Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. + * `:"interval.startTime.day"` (*type:* `integer()`) - Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day. + * `:"interval.startTime.hours"` (*type:* `integer()`) - Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value "24:00:00" for scenarios like business closing time. + * `:"interval.startTime.minutes"` (*type:* `integer()`) - Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * `:"interval.startTime.month"` (*type:* `integer()`) - Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. + * `:"interval.startTime.nanos"` (*type:* `integer()`) - Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. + * `:"interval.startTime.seconds"` (*type:* `integer()`) - Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds. + * `:"interval.startTime.timeZone.id"` (*type:* `String.t`) - IANA Time Zone Database time zone, e.g. "America/New_York". + * `:"interval.startTime.timeZone.version"` (*type:* `String.t`) - Optional. IANA Time Zone Database version number, e.g. "2019a". + * `:"interval.startTime.utcOffset"` (*type:* `String.t`) - UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }. + * `:"interval.startTime.year"` (*type:* `integer()`) - Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. + * `:orderBy` (*type:* `String.t`) - Specifies a field that will be used to order the results. ** Supported dimensions:** * `errorReportCount`: Orders issues by number of error reports. * `distinctUsers`: Orders issues by number of unique affected users. ** Supported operations:** * `asc` for ascending order. * `desc` for descending order. Format: A field and an operation, e.g., `errorReportCount desc` *Note:* currently only one field is supported at a time. + * `:pageSize` (*type:* `integer()`) - The maximum number of error issues to return. The service may return fewer than this value. If unspecified, at most 50 error issues will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `:pageToken` (*type:* `String.t`) - 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. + * `:sampleErrorReportLimit` (*type:* `integer()`) - Optional. Number of sample error reports to return per ErrorIssue. If unspecified, 0 will be used. *Note:* currently only 0 and 1 are supported. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec playdeveloperreporting_vitals_errors_issues_search( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def playdeveloperreporting_vitals_errors_issues_search( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :"interval.endTime.day" => :query, + :"interval.endTime.hours" => :query, + :"interval.endTime.minutes" => :query, + :"interval.endTime.month" => :query, + :"interval.endTime.nanos" => :query, + :"interval.endTime.seconds" => :query, + :"interval.endTime.timeZone.id" => :query, + :"interval.endTime.timeZone.version" => :query, + :"interval.endTime.utcOffset" => :query, + :"interval.endTime.year" => :query, + :"interval.startTime.day" => :query, + :"interval.startTime.hours" => :query, + :"interval.startTime.minutes" => :query, + :"interval.startTime.month" => :query, + :"interval.startTime.nanos" => :query, + :"interval.startTime.seconds" => :query, + :"interval.startTime.timeZone.id" => :query, + :"interval.startTime.timeZone.version" => :query, + :"interval.startTime.utcOffset" => :query, + :"interval.startTime.year" => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query, + :sampleErrorReportLimit => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1beta1/{+parent}/errorIssues:search", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse{} + ] + ) + end + + @doc """ + Searches all error reports received for an app. + + ## Parameters + + * `connection` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Parent resource of the reports, indicating the application for which they were received. Format: apps/{app} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - A selection predicate to retrieve only a subset of the reports. For filtering basics, please check [AIP-160](https://google.aip.dev/160). ** Supported field names:** * `apiLevel`: Matches error reports that occurred in the requested Android versions (specified as the numeric API level) only. Example: `apiLevel = 28 OR apiLevel = 29`. * `versionCode`: Matches error reports that occurred in the requested app version codes only. Example: `versionCode = 123 OR versionCode = 456`. * `deviceModel`: Matches error issues that occurred in the requested devices. Example: `deviceModel = "google/walleye" OR deviceModel = "google/marlin"`. * `deviceBrand`: Matches error issues that occurred in the requested device brands. Example: `deviceBrand = "Google". * `deviceType`: Matches error reports that occurred in the requested device types. Example: `deviceType = "PHONE"`. * `errorIssueType`: Matches error reports of the requested types only. Valid candidates: `JAVA_CRASH`, `NATIVE_CRASH`, `ANR`. Example: `errorIssueType = JAVA_CRASH OR errorIssueType = NATIVE_CRASH`. * `errorIssueId`: Matches error reports belonging to the requested error issue ids only. Example: `errorIssueId = 1234 OR errorIssueId = 4567`. * `errorReportId`: Matches error reports with the requested error report id. Example: `errorReportId = 1234 OR errorReportId = 4567`. * `appProcessState`: Matches error reports on the process state of an app, indicating whether an app runs in the foreground (user-visible) or background. Valid candidates: `FOREGROUND`, `BACKGROUND`. Example: `appProcessState = FOREGROUND`. * `isUserPerceived`: Matches error reports that are user-perceived. It is not accompanied by any operators. Example: `isUserPerceived`. ** Supported operators:** * Comparison operators: The only supported comparison operator is equality. The filtered field must appear on the left hand side of the comparison. * Logical Operators: Logical operators `AND` and `OR` can be used to build complex filters following a conjunctive normal form (CNF), i.e., conjunctions of disjunctions. The `OR` operator takes precedence over `AND` so the use of parenthesis is not necessary when building CNF. The `OR` operator is only supported to build disjunctions that apply to the same field, e.g., `versionCode = 123 OR versionCode = ANR`. The filter expression `versionCode = 123 OR errorIssueType = ANR` is not valid. ** Examples ** Some valid filtering expressions: * `versionCode = 123 AND errorIssueType = ANR` * `versionCode = 123 AND errorIssueType = OR errorIssueType = CRASH` * `versionCode = 123 AND (errorIssueType = OR errorIssueType = CRASH)` + * `:"interval.endTime.day"` (*type:* `integer()`) - Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day. + * `:"interval.endTime.hours"` (*type:* `integer()`) - Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value "24:00:00" for scenarios like business closing time. + * `:"interval.endTime.minutes"` (*type:* `integer()`) - Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * `:"interval.endTime.month"` (*type:* `integer()`) - Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. + * `:"interval.endTime.nanos"` (*type:* `integer()`) - Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. + * `:"interval.endTime.seconds"` (*type:* `integer()`) - Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds. + * `:"interval.endTime.timeZone.id"` (*type:* `String.t`) - IANA Time Zone Database time zone, e.g. "America/New_York". + * `:"interval.endTime.timeZone.version"` (*type:* `String.t`) - Optional. IANA Time Zone Database version number, e.g. "2019a". + * `:"interval.endTime.utcOffset"` (*type:* `String.t`) - UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }. + * `:"interval.endTime.year"` (*type:* `integer()`) - Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. + * `:"interval.startTime.day"` (*type:* `integer()`) - Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day. + * `:"interval.startTime.hours"` (*type:* `integer()`) - Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value "24:00:00" for scenarios like business closing time. + * `:"interval.startTime.minutes"` (*type:* `integer()`) - Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * `:"interval.startTime.month"` (*type:* `integer()`) - Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. + * `:"interval.startTime.nanos"` (*type:* `integer()`) - Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. + * `:"interval.startTime.seconds"` (*type:* `integer()`) - Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds. + * `:"interval.startTime.timeZone.id"` (*type:* `String.t`) - IANA Time Zone Database time zone, e.g. "America/New_York". + * `:"interval.startTime.timeZone.version"` (*type:* `String.t`) - Optional. IANA Time Zone Database version number, e.g. "2019a". + * `:"interval.startTime.utcOffset"` (*type:* `String.t`) - UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }. + * `:"interval.startTime.year"` (*type:* `integer()`) - Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. + * `:pageSize` (*type:* `integer()`) - The maximum number of reports to return. The service may return fewer than this value. If unspecified, at most 50 reports will be returned. The maximum value is 100; values above 100 will be coerced to 100. + * `:pageToken` (*type:* `String.t`) - A page token, received from a previous `SearchErrorReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchErrorReports` must match the call that provided the page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec playdeveloperreporting_vitals_errors_reports_search( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def playdeveloperreporting_vitals_errors_reports_search( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :"interval.endTime.day" => :query, + :"interval.endTime.hours" => :query, + :"interval.endTime.minutes" => :query, + :"interval.endTime.month" => :query, + :"interval.endTime.nanos" => :query, + :"interval.endTime.seconds" => :query, + :"interval.endTime.timeZone.id" => :query, + :"interval.endTime.timeZone.version" => :query, + :"interval.endTime.utcOffset" => :query, + :"interval.endTime.year" => :query, + :"interval.startTime.day" => :query, + :"interval.startTime.hours" => :query, + :"interval.startTime.minutes" => :query, + :"interval.startTime.month" => :query, + :"interval.startTime.nanos" => :query, + :"interval.startTime.seconds" => :query, + :"interval.startTime.timeZone.id" => :query, + :"interval.startTime.timeZone.version" => :query, + :"interval.startTime.utcOffset" => :query, + :"interval.startTime.year" => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1beta1/{+parent}/errorReports:search", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse{} + ] + ) + end + @doc """ Describes the properties of the metric set. @@ -360,21 +766,177 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Api.Vitals do ## Returns - * `{:ok, %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet{}}` on success + * `{:ok, %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet{}}` on success + * `{:error, info}` on failure + """ + @spec playdeveloperreporting_vitals_excessivewakeuprate_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def playdeveloperreporting_vitals_excessivewakeuprate_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1beta1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet{} + ] + ) + end + + @doc """ + Queries the metrics in the metric set. + + ## Parameters + + * `connection` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse{}}` on success * `{:error, info}` on failure """ - @spec playdeveloperreporting_vitals_excessivewakeuprate_get( + @spec playdeveloperreporting_vitals_excessivewakeuprate_query( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, - GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet.t()} + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def playdeveloperreporting_vitals_excessivewakeuprate_get( + def playdeveloperreporting_vitals_excessivewakeuprate_query( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1beta1/{+name}:query", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse{} + ] + ) + end + + @doc """ + Describes the properties of the metric set. + + ## Parameters + + * `connection` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name. Format: apps/{app}/slowRenderingRateMetricSet + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet{}}` on success + * `{:error, info}` on failure + """ + @spec playdeveloperreporting_vitals_slowrenderingrate_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def playdeveloperreporting_vitals_slowrenderingrate_get( connection, name, optional_params \\ [], @@ -409,7 +971,7 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Api.Vitals do opts ++ [ struct: - %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet{} + %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet{} ] ) end @@ -420,7 +982,7 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Api.Vitals do ## Parameters * `connection` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Required. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet + * `name` (*type:* `String.t`) - Required. The resource name. Format: apps/{app}/slowRenderingRateMetricSet * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -433,26 +995,26 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Api.Vitals do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:body` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest.t`) - + * `:body` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse{}}` on success + * `{:ok, %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse{}}` on success * `{:error, info}` on failure """ - @spec playdeveloperreporting_vitals_excessivewakeuprate_query( + @spec playdeveloperreporting_vitals_slowrenderingrate_query( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, - GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse.t()} + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def playdeveloperreporting_vitals_excessivewakeuprate_query( + def playdeveloperreporting_vitals_slowrenderingrate_query( connection, name, optional_params \\ [], @@ -488,7 +1050,163 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Api.Vitals do opts ++ [ struct: - %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse{} + %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse{} + ] + ) + end + + @doc """ + Describes the properties of the metric set. + + ## Parameters + + * `connection` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name. Format: apps/{app}/slowStartRateMetricSet + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet{}}` on success + * `{:error, info}` on failure + """ + @spec playdeveloperreporting_vitals_slowstartrate_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def playdeveloperreporting_vitals_slowstartrate_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1beta1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet{} + ] + ) + end + + @doc """ + Queries the metrics in the metric set. + + ## Parameters + + * `connection` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name. Format: apps/{app}/slowStartRateMetricSet + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse{}}` on success + * `{:error, info}` on failure + """ + @spec playdeveloperreporting_vitals_slowstartrate_query( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def playdeveloperreporting_vitals_slowstartrate_query( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1beta1/{+name}:query", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse{} ] ) end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/connection.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/connection.ex index deee70b2c1..35b35d6dd3 100644 --- a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/connection.ex +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/connection.ex @@ -23,7 +23,10 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Connection do @type t :: Tesla.Env.client() use GoogleApi.Gax.Connection, - scopes: [], + scopes: [ + # See metrics and data about the apps in your Google Play Developer account + "https://www.googleapis.com/auth/playdeveloperreporting" + ], otp_app: :google_api_play_developer_reporting, base_url: "https://playdeveloperreporting.googleapis.com/" end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/metadata.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/metadata.ex index f690e56166..b18d845dbd 100644 --- a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/metadata.ex +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1 do API client metadata for GoogleApi.PlayDeveloperReporting.V1beta1. """ - @discovery_revision "20221103" + @discovery_revision "20240310" def discovery_revision(), do: @discovery_revision end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_anomaly.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_anomaly.ex index 5f79b8a77c..d6a4deeb48 100644 --- a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_anomaly.ex +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_anomaly.ex @@ -24,7 +24,7 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo * `dimensions` (*type:* `list(GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DimensionValue.t)`, *default:* `nil`) - Combination of dimensions in which the anomaly was detected. * `metric` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1MetricValue.t`, *default:* `nil`) - Metric where the anomaly was detected, together with the anomalous value. * `metricSet` (*type:* `String.t`, *default:* `nil`) - Metric set resource where the anomaly was detected. - * `name` (*type:* `String.t`, *default:* `nil`) - Name of the anomaly. Format: apps/{app}/anomalies/{anomaly} + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Name of the anomaly. Format: apps/{app}/anomalies/{anomaly} * `timelineSpec` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t`, *default:* `nil`) - Timeline specification that covers the anomaly period. """ diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_anr_rate_metric_set.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_anr_rate_metric_set.ex index 33fe562939..8a2b57f053 100644 --- a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_anr_rate_metric_set.ex +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_anr_rate_metric_set.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1AnrRateMetricSet do @moduledoc """ - Singleton resource representing the set of ANR (Application not responding) metrics. This metric set contains ANRs data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `anrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one ANR. * `anrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `anrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one user-perceived ANR. User-perceived ANRs are currently those of 'Input dispatching' type. * `userPerceivedAnrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` 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 `anrRate` and `userPerceivedAnrRate` metrics. 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. **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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains unnormalized version (absolute counts) of crashes. * vitals.errors contains normalized metrics about crashes, another stability metric. + Singleton resource representing the set of ANR (Application not responding) metrics. This metric set contains ANRs data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. * HOURLY: metrics are aggregated in hourly intervals. The default and only supported timezone is `UTC`. **Supported metrics:** * `anrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one ANR. * `anrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `anrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `userPerceivedAnrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one user-perceived ANR. User-perceived ANRs are currently those of 'Input dispatching' type. * `userPerceivedAnrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `userPerceivedAnrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` 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 `anrRate` and `userPerceivedAnrRate` metrics. 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. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains unnormalized version (absolute counts) of crashes. * vitals.errors contains normalized metrics about crashes, another stability metric. ## Attributes * `freshnessInfo` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1FreshnessInfo.t`, *default:* `nil`) - Summary about data freshness in this resource. - * `name` (*type:* `String.t`, *default:* `nil`) - The resource name. Format: apps/{app}/anrRateMetricSet + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name. Format: apps/{app}/anrRateMetricSet """ use GoogleApi.Gax.ModelBase diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_app.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_app.ex new file mode 100644 index 0000000000..e9a1b14583 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_app.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1App do + @moduledoc """ + A representation of an app in the Play Store. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - Title of the app. This is the latest title as set in the Play Console and may not yet have been reviewed, so might not match the Play Store. Example: `Google Maps`. + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name. Format: apps/{app} + * `packageName` (*type:* `String.t`, *default:* `nil`) - Package name of the app. Example: `com.example.app123`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :name => String.t() | nil, + :packageName => String.t() | nil + } + + field(:displayName) + field(:name) + field(:packageName) +end + +defimpl Poison.Decoder, + for: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1App do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1App.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1App do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_app_version.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_app_version.ex new file mode 100644 index 0000000000..2a0ed9ab56 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_app_version.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1AppVersion do + @moduledoc """ + Representations of an app version. + + ## Attributes + + * `versionCode` (*type:* `String.t`, *default:* `nil`) - Numeric version code of the app version (set by the app's developer). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :versionCode => String.t() | nil + } + + field(:versionCode) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1AppVersion do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1AppVersion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1AppVersion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_crash_rate_metric_set.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_crash_rate_metric_set.ex index 82699b2921..2a53d2c1c7 100644 --- a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_crash_rate_metric_set.ex +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_crash_rate_metric_set.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1CrashRateMetricSet do @moduledoc """ - Singleton resource representing the set of crashrate metrics. This metric set contains crashes data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `crashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash. * `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. * `userPerceivedCrashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash while they were actively using your app (a user-perceived crash). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedCrashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` 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` and `userPerceivedCrashRate` metrics. A user is counted in this metric if they used the app actively during the aggregation period. An app is considered to be in active use if it is displaying any activity or executing any foreground service. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. **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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains unnormalized version (absolute counts) of crashes. * vitals.errors contains normalized metrics about ANRs, another stability metric. + Singleton resource representing the set of crashrate metrics. This metric set contains crashes data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. * HOURLY: metrics are aggregated in hourly intervals. The default and only supported timezone is `UTC`. **Supported metrics:** * `crashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash. * `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. Not supported in HOURLY granularity. * `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. Not supported in HOURLY granularity. * `userPerceivedCrashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash while they were actively using your app (a user-perceived crash). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedCrashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `userPerceivedCrashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `crashRate` and `userPerceivedCrashRate` metrics. A user is counted in this metric if they used the app actively during the aggregation period. An app is considered to be in active use if it is displaying any activity or executing any foreground service. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains unnormalized version (absolute counts) of crashes. * vitals.errors contains normalized metrics about ANRs, another stability metric. ## Attributes * `freshnessInfo` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1FreshnessInfo.t`, *default:* `nil`) - Summary about data freshness in this resource. - * `name` (*type:* `String.t`, *default:* `nil`) - The resource name. Format: apps/{app}/crashRateMetricSet + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name. Format: apps/{app}/crashRateMetricSet """ use GoogleApi.Gax.ModelBase diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_decimal_confidence_interval.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_decimal_confidence_interval.ex new file mode 100644 index 0000000000..8f4a665b12 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_decimal_confidence_interval.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval do + @moduledoc """ + Represents the confidence interval of a metric. + + ## Attributes + + * `lowerBound` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GoogleTypeDecimal.t`, *default:* `nil`) - The confidence interval's lower bound. + * `upperBound` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GoogleTypeDecimal.t`, *default:* `nil`) - The confidence interval's upper bound. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lowerBound => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GoogleTypeDecimal.t() | nil, + :upperBound => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GoogleTypeDecimal.t() | nil + } + + field(:lowerBound, as: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GoogleTypeDecimal) + field(:upperBound, as: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GoogleTypeDecimal) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_device_id.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_device_id.ex new file mode 100644 index 0000000000..7f76371c57 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_device_id.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DeviceId do + @moduledoc """ + Identifier of a device. + + ## Attributes + + * `buildBrand` (*type:* `String.t`, *default:* `nil`) - Value of Build.BRAND. + * `buildDevice` (*type:* `String.t`, *default:* `nil`) - Value of Build.DEVICE. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :buildBrand => String.t() | nil, + :buildDevice => String.t() | nil + } + + field(:buildBrand) + field(:buildDevice) +end + +defimpl Poison.Decoder, + for: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DeviceId do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DeviceId.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DeviceId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_device_model_summary.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_device_model_summary.ex new file mode 100644 index 0000000000..d3f0a5e13f --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_device_model_summary.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DeviceModelSummary do + @moduledoc """ + Summary of a device + + ## Attributes + + * `deviceId` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DeviceId.t`, *default:* `nil`) - Identifier of the device. + * `deviceUri` (*type:* `String.t`, *default:* `nil`) - Link to the device in Play Device Catalog. + * `marketingName` (*type:* `String.t`, *default:* `nil`) - Display name of the device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceId => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DeviceId.t() + | nil, + :deviceUri => String.t() | nil, + :marketingName => String.t() | nil + } + + field(:deviceId, + as: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DeviceId + ) + + field(:deviceUri) + field(:marketingName) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DeviceModelSummary do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DeviceModelSummary.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DeviceModelSummary do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_error_count_metric_set.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_error_count_metric_set.ex new file mode 100644 index 0000000000..d0a5592e6d --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_error_count_metric_set.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet do + @moduledoc """ + Singleton resource representing the set of error report metrics. This metric set contains un-normalized error report counts. **Supported aggregation periods:** * HOURLY: metrics are aggregated in hourly intervals. The default and only supported timezone is `UTC`. * DAILY: metrics are aggregated in calendar date intervals. The default and only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `errorReportCount` (`google.type.Decimal`): Absolute count of individual error reports that have been received for an app. * `distinctUsers` (`google.type.Decimal`): Count of distinct users for which reports have been received. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. This value is not rounded, however it may be an approximation. **Required dimension:** This dimension must be always specified in all requests in the `dimensions` field in query requests. * `reportType` (string): the type of error. The value should correspond to one of the possible values in ErrorType. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceType` (string): identifier of the device's form factor, e.g., PHONE. * `issueId` (string): the id an error was assigned to. The value should correspond to the `{issue}` component of the issue name. * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors.counts contains normalized metrics about Crashes, another stability metric. * vitals.errors.counts contains normalized metrics about ANRs, another stability metric. + + ## Attributes + + * `freshnessInfo` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1FreshnessInfo.t`, *default:* `nil`) - Summary about data freshness in this resource. + * `name` (*type:* `String.t`, *default:* `nil`) - The resource name. Format: apps/{app}/errorCountMetricSet + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :freshnessInfo => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1FreshnessInfo.t() + | nil, + :name => String.t() | nil + } + + field(:freshnessInfo, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1FreshnessInfo + ) + + field(:name) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_error_issue.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_error_issue.ex new file mode 100644 index 0000000000..b727cc5233 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_error_issue.ex @@ -0,0 +1,124 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorIssue do + @moduledoc """ + A group of related ErrorReports received for an app. Similar error reports are grouped together into issues with a likely identical root cause. **Please note:** this resource is currently in Alpha. There could be changes to the issue grouping that would result in similar but more recent error reports being assigned to different issues. This could also cause some issues disappearing entirely and being replaced by new ones. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. + + ## Attributes + + * `cause` (*type:* `String.t`, *default:* `nil`) - Cause of the issue. Depending on the type this can be either: * APPLICATION_NOT_RESPONDING: the type of ANR that occurred, e.g., 'Input dispatching timed out'. * CRASH: for Java unhandled exception errors, the type of the innermost exception that was thrown, e.g., IllegalArgumentException. For signals in native code, the signal that was raised, e.g. SIGSEGV. + * `distinctUsers` (*type:* `String.t`, *default:* `nil`) - An estimate of the number of unique users who have experienced this issue (only considering occurrences matching the filters and within the requested time period). + * `distinctUsersPercent` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GoogleTypeDecimal.t`, *default:* `nil`) - An estimated percentage of users affected by any issue that are affected by this issue (only considering occurrences matching the filters and within the requested time period). + * `errorReportCount` (*type:* `String.t`, *default:* `nil`) - The total number of error reports in this issue (only considering occurrences matching the filters and within the requested time period). + * `firstAppVersion` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1AppVersion.t`, *default:* `nil`) - The earliest (inclusive) app version appearing in this ErrorIssue in the requested time period (only considering occurrences matching the filters). + * `firstOsVersion` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1OsVersion.t`, *default:* `nil`) - The smallest OS version in which this error cluster has occurred in the requested time period (only considering occurrences matching the filters and within the requested time period). + * `issueUri` (*type:* `String.t`, *default:* `nil`) - Link to the issue in Android vitals in the Play Console. + * `lastAppVersion` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1AppVersion.t`, *default:* `nil`) - The latest (inclusive) app version appearing in this ErrorIssue in the requested time period (only considering occurrences matching the filters). + * `lastErrorReportTime` (*type:* `DateTime.t`, *default:* `nil`) - Start of the hour during which the last error report in this issue occurred. + * `lastOsVersion` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1OsVersion.t`, *default:* `nil`) - The latest OS version in which this error cluster has occurred in the requested time period (only considering occurrences matching the filters and within the requested time period). + * `location` (*type:* `String.t`, *default:* `nil`) - Location where the issue happened. Depending on the type this can be either: * APPLICATION_NOT_RESPONDING: the name of the activity or service that stopped responding. * CRASH: the likely method name that caused the error. + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of the issue. Format: apps/{app}/{issue} + * `sampleErrorReports` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Sample error reports which belong to this ErrorIssue. *Note:* currently a maximum of 1 per ErrorIssue is supported. Format: "apps/{app}/{report}" + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the errors grouped in this issue. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cause => String.t() | nil, + :distinctUsers => String.t() | nil, + :distinctUsersPercent => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GoogleTypeDecimal.t() | nil, + :errorReportCount => String.t() | nil, + :firstAppVersion => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1AppVersion.t() + | nil, + :firstOsVersion => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1OsVersion.t() + | nil, + :issueUri => String.t() | nil, + :lastAppVersion => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1AppVersion.t() + | nil, + :lastErrorReportTime => DateTime.t() | nil, + :lastOsVersion => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1OsVersion.t() + | nil, + :location => String.t() | nil, + :name => String.t() | nil, + :sampleErrorReports => list(String.t()) | nil, + :type => String.t() | nil + } + + field(:cause) + field(:distinctUsers) + + field(:distinctUsersPercent, + as: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GoogleTypeDecimal + ) + + field(:errorReportCount) + + field(:firstAppVersion, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1AppVersion + ) + + field(:firstOsVersion, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1OsVersion + ) + + field(:issueUri) + + field(:lastAppVersion, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1AppVersion + ) + + field(:lastErrorReportTime, as: DateTime) + + field(:lastOsVersion, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1OsVersion + ) + + field(:location) + field(:name) + field(:sampleErrorReports, type: :list) + field(:type) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorIssue do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorIssue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorIssue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_error_report.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_error_report.ex new file mode 100644 index 0000000000..d01d38e5dc --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_error_report.ex @@ -0,0 +1,96 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorReport do + @moduledoc """ + An error report received for an app. There reports are produced by the Android platform code when a (potentially fatal) error condition is detected. Identical reports from many users will be deduplicated and coalesced into a single ErrorReport. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. + + ## Attributes + + * `appVersion` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1AppVersion.t`, *default:* `nil`) - The app version on which an event in this error report occurred on. + * `deviceModel` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DeviceModelSummary.t`, *default:* `nil`) - A device model on which an event in this error report occurred on. + * `eventTime` (*type:* `DateTime.t`, *default:* `nil`) - Start of the hour during which the latest event in this error report occurred. + * `issue` (*type:* `String.t`, *default:* `nil`) - The issue this report was associated with. **Please note:** this resource is currently in Alpha. There could be changes to the issue grouping that would result in similar but more recent error reports being assigned to a different issue. + * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the report. Format: apps/{app}/{report} + * `osVersion` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1OsVersion.t`, *default:* `nil`) - The OS version on which an event in this error report occurred on. + * `reportText` (*type:* `String.t`, *default:* `nil`) - Textual representation of the error report. These textual reports are produced by the platform. The reports are then sanitized and filtered to remove any potentially sensitive information. Although their format is fairly stable, they are not entirely meant for machine consumption and we cannot guarantee that there won't be subtle changes to the formatting that may break systems trying to parse information out of the reports. + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the error for which this report was generated. + * `vcsInformation` (*type:* `String.t`, *default:* `nil`) - Version control system information from BUNDLE-METADATA/version-control-info.textproto or META-INF/version-control-info.textproto of the app bundle or APK, respectively. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appVersion => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1AppVersion.t() + | nil, + :deviceModel => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DeviceModelSummary.t() + | nil, + :eventTime => DateTime.t() | nil, + :issue => String.t() | nil, + :name => String.t() | nil, + :osVersion => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1OsVersion.t() + | nil, + :reportText => String.t() | nil, + :type => String.t() | nil, + :vcsInformation => String.t() | nil + } + + field(:appVersion, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1AppVersion + ) + + field(:deviceModel, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DeviceModelSummary + ) + + field(:eventTime, as: DateTime) + field(:issue) + field(:name) + + field(:osVersion, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1OsVersion + ) + + field(:reportText) + field(:type) + field(:vcsInformation) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorReport do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorReport.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorReport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_excessive_wakeup_rate_metric_set.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_excessive_wakeup_rate_metric_set.ex index 8409395338..13e4954e1f 100644 --- a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_excessive_wakeup_rate_metric_set.ex +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_excessive_wakeup_rate_metric_set.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet do @moduledoc """ - Singleton resource representing the set of Excessive Weakeups metrics. This metric set contains AlarmManager wakeup counts data combined with process state data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` 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 `excessiveWakeupRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. **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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. + Singleton resource representing the set of Excessive Weakeups metrics. This metric set contains AlarmManager wakeup counts data combined with process state data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` 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 `excessiveWakeupRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. ## Attributes * `freshnessInfo` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1FreshnessInfo.t`, *default:* `nil`) - Summary about data freshness in this resource. - * `name` (*type:* `String.t`, *default:* `nil`) - The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet """ use GoogleApi.Gax.ModelBase diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_metric_value.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_metric_value.ex index 744a3efe25..5dbb9df2a1 100644 --- a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_metric_value.ex +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_metric_value.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo ## Attributes * `decimalValue` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GoogleTypeDecimal.t`, *default:* `nil`) - Actual value, represented as a decimal number. + * `decimalValueConfidenceInterval` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval.t`, *default:* `nil`) - Confidence interval of a value that is of type `type.Decimal`. * `metric` (*type:* `String.t`, *default:* `nil`) - Name of the metric. """ @@ -30,10 +31,19 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo @type t :: %__MODULE__{ :decimalValue => GoogleApi.PlayDeveloperReporting.V1beta1.Model.GoogleTypeDecimal.t() | nil, + :decimalValueConfidenceInterval => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval.t() + | nil, :metric => String.t() | nil } field(:decimalValue, as: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GoogleTypeDecimal) + + field(:decimalValueConfidenceInterval, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval + ) + field(:metric) end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_os_version.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_os_version.ex new file mode 100644 index 0000000000..012a9e0913 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_os_version.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1OsVersion do + @moduledoc """ + Representation of an OS version. + + ## Attributes + + * `apiLevel` (*type:* `String.t`, *default:* `nil`) - Numeric version code of the OS - API level + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :apiLevel => String.t() | nil + } + + field(:apiLevel) +end + +defimpl Poison.Decoder, + for: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1OsVersion do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1OsVersion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1OsVersion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_anr_rate_metric_set_request.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_anr_rate_metric_set_request.ex index 9cd53faa35..c8811d1829 100644 --- a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_anr_rate_metric_set_request.ex +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_anr_rate_metric_set_request.ex @@ -21,12 +21,13 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo ## Attributes - * `dimensions` (*type:* `list(String.t)`, *default:* `nil`) - 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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. + * `dimensions` (*type:* `list(String.t)`, *default:* `nil`) - Dimensions to slice the metrics by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. * `filter` (*type:* `String.t`, *default:* `nil`) - Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions. - * `metrics` (*type:* `list(String.t)`, *default:* `nil`) - Metrics to aggregate. **Supported metrics:** * `anrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one ANR. * `anrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `anrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one user-perceived ANR. User-perceived ANRs are currently those of 'Input dispatching' type. * `userPerceivedAnrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` 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 `anrRate` and `userPerceivedAnrRate` metrics. 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. + * `metrics` (*type:* `list(String.t)`, *default:* `nil`) - Metrics to aggregate. **Supported metrics:** * `anrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one ANR. * `anrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `anrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `userPerceivedAnrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one user-perceived ANR. User-perceived ANRs are currently those of 'Input dispatching' type. * `userPerceivedAnrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `userPerceivedAnrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. Not . supported in HOURLY granularity. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `anrRate` and `userPerceivedAnrRate` metrics. 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. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. * `pageSize` (*type:* `integer()`, *default:* `nil`) - 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. * `pageToken` (*type:* `String.t`, *default:* `nil`) - 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. - * `timelineSpec` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t`, *default:* `nil`) - Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the default and only supported timezone is `America/Los_Angeles`. + * `timelineSpec` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t`, *default:* `nil`) - Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the default and only supported timezone is `America/Los_Angeles`. * HOURLY: metrics are aggregated in hourly intervals. The default and only supported timezone is `UTC`. + * `userCohort` (*type:* `String.t`, *default:* `nil`) - User view to select. The output data will correspond to the selected view. **Supported values:** * `OS_PUBLIC` To select data from all publicly released Android versions. This is the default. Supports all the above dimensions. * `APP_TESTERS` To select data from users who have opted in to be testers. Supports all the above dimensions. * `OS_BETA` To select data from beta android versions only, excluding data from released android versions. Only the following dimensions are supported: * `versionCode` (int64): version of the app that was running on the user's device. * `osBuild` (string): OS build of the user's device, e.g., "T1B2.220916.004". """ use GoogleApi.Gax.ModelBase @@ -39,7 +40,8 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo :pageToken => String.t() | nil, :timelineSpec => GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t() - | nil + | nil, + :userCohort => String.t() | nil } field(:dimensions, type: :list) @@ -52,6 +54,8 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo as: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec ) + + field(:userCohort) end defimpl Poison.Decoder, diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_crash_rate_metric_set_request.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_crash_rate_metric_set_request.ex index 6f52ce877b..6523046180 100644 --- a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_crash_rate_metric_set_request.ex +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_crash_rate_metric_set_request.ex @@ -21,12 +21,13 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo ## Attributes - * `dimensions` (*type:* `list(String.t)`, *default:* `nil`) - 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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. + * `dimensions` (*type:* `list(String.t)`, *default:* `nil`) - Dimensions to slice the metrics by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. * `filter` (*type:* `String.t`, *default:* `nil`) - Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions. - * `metrics` (*type:* `list(String.t)`, *default:* `nil`) - Metrics to aggregate. **Supported metrics:** * `crashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash. * `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. * `userPerceivedCrashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash while they were actively using your app (a user-perceived crash). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedCrashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` 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` and `userPerceivedCrashRate` metrics. A user is counted in this metric if they used the app actively during the aggregation period. An app is considered to be in active use if it is displaying any activity or executing any foreground service. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. + * `metrics` (*type:* `list(String.t)`, *default:* `nil`) - Metrics to aggregate. **Supported metrics:** * `crashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash. * `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. Not supported in HOURLY granularity. * `userPerceivedCrashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash while they were actively using your app (a user-perceived crash). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedCrashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `userPerceivedCrashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `crashRate` and `userPerceivedCrashRate` metrics. A user is counted in this metric if they used the app actively during the aggregation period. An app is considered to be in active use if it is displaying any activity or executing any foreground service. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. * `pageSize` (*type:* `integer()`, *default:* `nil`) - 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. * `pageToken` (*type:* `String.t`, *default:* `nil`) - 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. - * `timelineSpec` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t`, *default:* `nil`) - Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the default and only supported timezone is `America/Los_Angeles`. + * `timelineSpec` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t`, *default:* `nil`) - Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the default and only supported timezone is `America/Los_Angeles`. * HOURLY: metrics are aggregated in hourly intervals. The default and only supported timezone is `UTC`. + * `userCohort` (*type:* `String.t`, *default:* `nil`) - User view to select. The output data will correspond to the selected view. **Supported values:** * `OS_PUBLIC` To select data from all publicly released Android versions. This is the default. Supports all the above dimensions. * `APP_TESTERS` To select data from users who have opted in to be testers. Supports all the above dimensions. * `OS_BETA` To select data from beta android versions only, excluding data from released android versions. Only the following dimensions are supported: * `versionCode` (int64): version of the app that was running on the user's device. * `osBuild` (string): OS build of the user's device, e.g., "T1B2.220916.004". """ use GoogleApi.Gax.ModelBase @@ -39,7 +40,8 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo :pageToken => String.t() | nil, :timelineSpec => GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t() - | nil + | nil, + :userCohort => String.t() | nil } field(:dimensions, type: :list) @@ -52,6 +54,8 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo as: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec ) + + field(:userCohort) end defimpl Poison.Decoder, diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_error_count_metric_set_request.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_error_count_metric_set_request.ex new file mode 100644 index 0000000000..816c81329c --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_error_count_metric_set_request.ex @@ -0,0 +1,74 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest do + @moduledoc """ + Request message for QueryErrorCountMetricSet. + + ## Attributes + + * `dimensions` (*type:* `list(String.t)`, *default:* `nil`) - Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): identifier of the device's form factor, e.g., PHONE. * `reportType` (string): the type of error. The value should correspond to one of the possible values in ErrorType. * `isUserPerceived` (string): denotes whether error is user perceived or not, USER_PERCEIVED or NOT_USER_PERCEIVED. * `issueId` (string): the id an error was assigned to. The value should correspond to the `{issue}` component of the issue name. * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. + * `filter` (*type:* `String.t`, *default:* `nil`) - Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions. + * `metrics` (*type:* `list(String.t)`, *default:* `nil`) - Metrics to aggregate. **Supported metrics:** * `errorReportCount` (`google.type.Decimal`): Absolute count of individual error reports that have been received for an app. * `distinctUsers` (`google.type.Decimal`): Count of distinct users for which reports have been received. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. This value is not rounded, however it may be an approximation. + * `pageSize` (*type:* `integer()`, *default:* `nil`) - Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000. + * `pageToken` (*type:* `String.t`, *default:* `nil`) - 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. + * `timelineSpec` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t`, *default:* `nil`) - Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. The default and only supported timezone is `America/Los_Angeles`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dimensions => list(String.t()) | nil, + :filter => String.t() | nil, + :metrics => list(String.t()) | nil, + :pageSize => integer() | nil, + :pageToken => String.t() | nil, + :timelineSpec => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t() + | nil + } + + field(:dimensions, type: :list) + field(:filter) + field(:metrics, type: :list) + field(:pageSize) + field(:pageToken) + + field(:timelineSpec, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_error_count_metric_set_response.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_error_count_metric_set_response.ex new file mode 100644 index 0000000000..fb25c69769 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_error_count_metric_set_response.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse do + @moduledoc """ + Error counts query response. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Continuation token to fetch the next page of data. + * `rows` (*type:* `list(GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1MetricsRow.t)`, *default:* `nil`) - Returned rows. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :rows => + list( + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1MetricsRow.t() + ) + | nil + } + + field(:nextPageToken) + + field(:rows, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1MetricsRow, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_excessive_wakeup_rate_metric_set_request.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_excessive_wakeup_rate_metric_set_request.ex index aa01cbc545..a8d12044b4 100644 --- a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_excessive_wakeup_rate_metric_set_request.ex +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_excessive_wakeup_rate_metric_set_request.ex @@ -21,12 +21,13 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo ## Attributes - * `dimensions` (*type:* `list(String.t)`, *default:* `nil`) - Dimensions to slice the data 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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. + * `dimensions` (*type:* `list(String.t)`, *default:* `nil`) - Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. * `filter` (*type:* `String.t`, *default:* `nil`) - Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions. - * `metrics` (*type:* `list(String.t)`, *default:* `nil`) - Metrics to aggregate. **Supported metrics:** * `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` 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 `excessiveWakeupRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. + * `metrics` (*type:* `list(String.t)`, *default:* `nil`) - Metrics to aggregate. **Supported metrics:** * `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` 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 `excessiveWakeupRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. * `pageSize` (*type:* `integer()`, *default:* `nil`) - Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000. * `pageToken` (*type:* `String.t`, *default:* `nil`) - 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. * `timelineSpec` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t`, *default:* `nil`) - Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. + * `userCohort` (*type:* `String.t`, *default:* `nil`) - User view to select. The output data will correspond to the selected view. **Supported values:** * `OS_PUBLIC` To select data from all publicly released Android versions. This is the default. Supports all the above dimensions. * `APP_TESTERS` To select data from users who have opted in to be testers. Supports all the above dimensions. * `OS_BETA` To select data from beta android versions only, excluding data from released android versions. Only the following dimensions are supported: * `versionCode` (int64): version of the app that was running on the user's device. * `osBuild` (string): OS build of the user's device, e.g., "T1B2.220916.004". """ use GoogleApi.Gax.ModelBase @@ -39,7 +40,8 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo :pageToken => String.t() | nil, :timelineSpec => GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t() - | nil + | nil, + :userCohort => String.t() | nil } field(:dimensions, type: :list) @@ -52,6 +54,8 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo as: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec ) + + field(:userCohort) end defimpl Poison.Decoder, diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_rendering_rate_metric_set_request.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_rendering_rate_metric_set_request.ex new file mode 100644 index 0000000000..7159c08b56 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_rendering_rate_metric_set_request.ex @@ -0,0 +1,78 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest do + @moduledoc """ + Request message for QuerySlowRenderingRateMetricSet. + + ## Attributes + + * `dimensions` (*type:* `list(String.t)`, *default:* `nil`) - Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. + * `filter` (*type:* `String.t`, *default:* `nil`) - Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions. + * `metrics` (*type:* `list(String.t)`, *default:* `nil`) - Metrics to aggregate. **Supported metrics:** * `slowRenderingRate20Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow rendering. * `slowRenderingRate20Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate20Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow rendering. * `slowRenderingRate30Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` 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 `slowRenderingRate20Fps`/`slowRenderingRate30Fps` metric. A user is counted in this metric if their app was launched in the device. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. + * `pageSize` (*type:* `integer()`, *default:* `nil`) - Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000. + * `pageToken` (*type:* `String.t`, *default:* `nil`) - 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. + * `timelineSpec` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t`, *default:* `nil`) - Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. + * `userCohort` (*type:* `String.t`, *default:* `nil`) - User view to select. The output data will correspond to the selected view. **Supported values:** * `OS_PUBLIC` To select data from all publicly released Android versions. This is the default. Supports all the above dimensions. * `APP_TESTERS` To select data from users who have opted in to be testers. Supports all the above dimensions. * `OS_BETA` To select data from beta Android versions only, excluding data from released Android versions. Only the following dimensions are supported: * `versionCode` (int64): version of the app that was running on the user's device. * `osBuild` (string): OS build of the user's device, e.g., "T1B2.220916.004". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dimensions => list(String.t()) | nil, + :filter => String.t() | nil, + :metrics => list(String.t()) | nil, + :pageSize => integer() | nil, + :pageToken => String.t() | nil, + :timelineSpec => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t() + | nil, + :userCohort => String.t() | nil + } + + field(:dimensions, type: :list) + field(:filter) + field(:metrics, type: :list) + field(:pageSize) + field(:pageToken) + + field(:timelineSpec, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec + ) + + field(:userCohort) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_rendering_rate_metric_set_response.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_rendering_rate_metric_set_response.ex new file mode 100644 index 0000000000..4bfb66dec5 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_rendering_rate_metric_set_response.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse do + @moduledoc """ + Response message for QuerySlowRenderingRateMetricSet. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Continuation token to fetch the next page of data. + * `rows` (*type:* `list(GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1MetricsRow.t)`, *default:* `nil`) - Returned rows of data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :rows => + list( + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1MetricsRow.t() + ) + | nil + } + + field(:nextPageToken) + + field(:rows, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1MetricsRow, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_start_rate_metric_set_request.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_start_rate_metric_set_request.ex new file mode 100644 index 0000000000..b92de22e61 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_start_rate_metric_set_request.ex @@ -0,0 +1,78 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest do + @moduledoc """ + Request message for QuerySlowStartRateMetricSet. + + ## Attributes + + * `dimensions` (*type:* `list(String.t)`, *default:* `nil`) - Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. + * `filter` (*type:* `String.t`, *default:* `nil`) - Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions. + * `metrics` (*type:* `list(String.t)`, *default:* `nil`) - Metrics to aggregate. **Supported metrics:** * `slowStartRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow start. * `slowStartRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowStartRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` 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 `slowStartRate` metric. A user is counted in this metric if their app was launched in the device. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. + * `pageSize` (*type:* `integer()`, *default:* `nil`) - Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000. + * `pageToken` (*type:* `String.t`, *default:* `nil`) - 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. + * `timelineSpec` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t`, *default:* `nil`) - Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. + * `userCohort` (*type:* `String.t`, *default:* `nil`) - User view to select. The output data will correspond to the selected view. **Supported values:** * `OS_PUBLIC` To select data from all publicly released Android versions. This is the default. Supports all the above dimensions. * `APP_TESTERS` To select data from users who have opted in to be testers. Supports all the above dimensions. * `OS_BETA` To select data from beta Android versions only, excluding data from released Android versions. Only the following dimensions are supported: * `versionCode` (int64): version of the app that was running on the user's device. * `osBuild` (string): OS build of the user's device, e.g., "T1B2.220916.004". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dimensions => list(String.t()) | nil, + :filter => String.t() | nil, + :metrics => list(String.t()) | nil, + :pageSize => integer() | nil, + :pageToken => String.t() | nil, + :timelineSpec => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t() + | nil, + :userCohort => String.t() | nil + } + + field(:dimensions, type: :list) + field(:filter) + field(:metrics, type: :list) + field(:pageSize) + field(:pageToken) + + field(:timelineSpec, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec + ) + + field(:userCohort) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_start_rate_metric_set_response.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_start_rate_metric_set_response.ex new file mode 100644 index 0000000000..442c38aec5 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_slow_start_rate_metric_set_response.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse do + @moduledoc """ + Response message for QuerySlowStartRateMetricSet. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Continuation token to fetch the next page of data. + * `rows` (*type:* `list(GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1MetricsRow.t)`, *default:* `nil`) - Returned rows of data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :rows => + list( + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1MetricsRow.t() + ) + | nil + } + + field(:nextPageToken) + + field(:rows, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1MetricsRow, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_stuck_background_wakelock_rate_metric_set_request.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_stuck_background_wakelock_rate_metric_set_request.ex index bd1ee8b27a..0c3c56db2f 100644 --- a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_stuck_background_wakelock_rate_metric_set_request.ex +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_query_stuck_background_wakelock_rate_metric_set_request.ex @@ -21,12 +21,13 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo ## Attributes - * `dimensions` (*type:* `list(String.t)`, *default:* `nil`) - Dimensions to slice the data 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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. + * `dimensions` (*type:* `list(String.t)`, *default:* `nil`) - Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. * `filter` (*type:* `String.t`, *default:* `nil`) - Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions. - * `metrics` (*type:* `list(String.t)`, *default:* `nil`) - Metrics to aggregate. **Supported metrics:** * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a wakelock held in the background for longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` 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 `stuckBgWakelockRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. + * `metrics` (*type:* `list(String.t)`, *default:* `nil`) - Metrics to aggregate. **Supported metrics:** * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a wakelock held in the background for longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` 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 `stuckBgWakelockRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. * `pageSize` (*type:* `integer()`, *default:* `nil`) - Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000. * `pageToken` (*type:* `String.t`, *default:* `nil`) - 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. * `timelineSpec` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t`, *default:* `nil`) - Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. + * `userCohort` (*type:* `String.t`, *default:* `nil`) - User view to select. The output data will correspond to the selected view. **Supported values:** * `OS_PUBLIC` To select data from all publicly released Android versions. This is the default. Supports all the above dimensions. * `APP_TESTERS` To select data from users who have opted in to be testers. Supports all the above dimensions. * `OS_BETA` To select data from beta android versions only, excluding data from released android versions. Only the following dimensions are supported: * `versionCode` (int64): version of the app that was running on the user's device. * `osBuild` (string): OS build of the user's device, e.g., "T1B2.220916.004". """ use GoogleApi.Gax.ModelBase @@ -39,7 +40,8 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo :pageToken => String.t() | nil, :timelineSpec => GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec.t() - | nil + | nil, + :userCohort => String.t() | nil } field(:dimensions, type: :list) @@ -52,6 +54,8 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperRepo as: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1TimelineSpec ) + + field(:userCohort) end defimpl Poison.Decoder, diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_release.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_release.ex new file mode 100644 index 0000000000..65060319f3 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_release.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1Release do + @moduledoc """ + A representation of an app release. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - Readable identifier of the release. + * `versionCodes` (*type:* `list(String.t)`, *default:* `nil`) - The version codes contained in this release. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :versionCodes => list(String.t()) | nil + } + + field(:displayName) + field(:versionCodes, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1Release do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1Release.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1Release do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_release_filter_options.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_release_filter_options.ex new file mode 100644 index 0000000000..3a9c845bcf --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_release_filter_options.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ReleaseFilterOptions do + @moduledoc """ + A set of filtering options for releases and version codes specific to an app. + + ## Attributes + + * `tracks` (*type:* `list(GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1Track.t)`, *default:* `nil`) - List of tracks to filter releases over. Provides the grouping of version codes under releases and tracks. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :tracks => + list( + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1Track.t() + ) + | nil + } + + field(:tracks, + as: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1Track, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ReleaseFilterOptions do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ReleaseFilterOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ReleaseFilterOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_search_accessible_apps_response.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_search_accessible_apps_response.ex new file mode 100644 index 0000000000..5945bebaa6 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_search_accessible_apps_response.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchAccessibleAppsResponse do + @moduledoc """ + Response message for SearchAccessibleApps. + + ## Attributes + + * `apps` (*type:* `list(GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1App.t)`, *default:* `nil`) - The apps accessible to the user calling the endpoint. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :apps => + list( + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1App.t() + ) + | nil, + :nextPageToken => String.t() | nil + } + + field(:apps, + as: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1App, + type: :list + ) + + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchAccessibleAppsResponse do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchAccessibleAppsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchAccessibleAppsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_search_error_issues_response.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_search_error_issues_response.ex new file mode 100644 index 0000000000..6607313aa5 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_search_error_issues_response.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse do + @moduledoc """ + Response with a paginated list of issues that matched the request. + + ## Attributes + + * `errorIssues` (*type:* `list(GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorIssue.t)`, *default:* `nil`) - ErrorIssues that were found. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Continuation token to fetch the next page of data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :errorIssues => + list( + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorIssue.t() + ) + | nil, + :nextPageToken => String.t() | nil + } + + field(:errorIssues, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorIssue, + type: :list + ) + + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_search_error_reports_response.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_search_error_reports_response.ex new file mode 100644 index 0000000000..72959753f1 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_search_error_reports_response.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse do + @moduledoc """ + Response with a paginated list of error reports matching the search query. + + ## Attributes + + * `errorReports` (*type:* `list(GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorReport.t)`, *default:* `nil`) - Error reports that were found. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Page token to fetch the next page of reports. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :errorReports => + list( + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorReport.t() + ) + | nil, + :nextPageToken => String.t() | nil + } + + field(:errorReports, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1ErrorReport, + type: :list + ) + + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_slow_rendering_rate_metric_set.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_slow_rendering_rate_metric_set.ex new file mode 100644 index 0000000000..0cf350e21c --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_slow_rendering_rate_metric_set.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet do + @moduledoc """ + Singleton resource representing the set of Slow Rendering metrics. This metric set contains low-level rendering data captured by SurafeFlinger. Sessions are evaluated based on the present-to-present histogram of frames handled by any SurfaceFlinger layer owned by the app. A slow session is a session where more than 25% of frames for the session did not meet the metric's target frame rate (either 20fps, or 30fps). *NOTE:* This metric set is only available for games. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `slowRenderingRate20Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had slow rendering. * `slowRenderingRate20Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate20Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had slow rendering. * `slowRenderingRate30Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` 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 `slowRenderingRate20Fps`/`slowRenderingRate30Fps` metric. A user is counted in this metric if their app rendered any frames. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. + + ## Attributes + + * `freshnessInfo` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1FreshnessInfo.t`, *default:* `nil`) - Summary about data freshness in this resource. + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name. Format: apps/{app}/slowRenderingRateMetricSet + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :freshnessInfo => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1FreshnessInfo.t() + | nil, + :name => String.t() | nil + } + + field(:freshnessInfo, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1FreshnessInfo + ) + + field(:name) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_slow_start_rate_metric_set.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_slow_start_rate_metric_set.ex new file mode 100644 index 0000000000..79fbd7c6b8 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_slow_start_rate_metric_set.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet do + @moduledoc """ + Singleton resource representing the set of Slow Start metrics. This metric set contains Activity start duration data. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `slowStartRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow start. * `slowStartRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowStartRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` 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 `slowStartRate` metric. A user is counted in this metric if their app was launched in the device. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Required dimension:** This dimension must be specified with each request for the request to be valid. * `startType` (string): the type of start that was measured. Valid types are `HOT`, `WARM` and `COLD`. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. + + ## Attributes + + * `freshnessInfo` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1FreshnessInfo.t`, *default:* `nil`) - Summary about data freshness in this resource. + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name. Format: apps/{app}/slowStartRateMetricSet + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :freshnessInfo => + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1FreshnessInfo.t() + | nil, + :name => String.t() | nil + } + + field(:freshnessInfo, + as: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1FreshnessInfo + ) + + field(:name) +end + +defimpl Poison.Decoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_stuck_background_wakelock_rate_metric_set.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_stuck_background_wakelock_rate_metric_set.ex index 45a9f58be9..600b986e7f 100644 --- a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_stuck_background_wakelock_rate_metric_set.ex +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_stuck_background_wakelock_rate_metric_set.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet do @moduledoc """ - Singleton resource representing the set of Stuck Background Wakelocks metrics. This metric set contains PowerManager wakelock duration data combined with process state data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a wakelock held in the background for longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` 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 `stuckBgWakelockRate` metric. A user is counted in this metric if their app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. **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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. + Singleton resource representing the set of Stuck Background Wakelocks metrics. This metric set contains PowerManager wakelock duration data combined with process state data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a wakelock held in the background for longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` 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 `stuckBgWakelockRate` metric. A user is counted in this metric if their app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `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). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., "Exynos 2100". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., "196610". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. ## Attributes * `freshnessInfo` (*type:* `GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1FreshnessInfo.t`, *default:* `nil`) - Summary about data freshness in this resource. - * `name` (*type:* `String.t`, *default:* `nil`) - The resource name. Format: apps/{app}/stuckBackgroundWakelockRateMetricSet + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name. Format: apps/{app}/stuckBackgroundWakelockRateMetricSet """ use GoogleApi.Gax.ModelBase diff --git a/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_track.ex b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_track.ex new file mode 100644 index 0000000000..8aca63b820 --- /dev/null +++ b/clients/play_developer_reporting/lib/google_api/play_developer_reporting/v1beta1/model/google_play_developer_reporting_v1beta1_track.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1Track do + @moduledoc """ + A representation of a Play release track. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - Readable identifier of the track. + * `servingReleases` (*type:* `list(GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1Release.t)`, *default:* `nil`) - Represents all active releases in the track. + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the track. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :servingReleases => + list( + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1Release.t() + ) + | nil, + :type => String.t() | nil + } + + field(:displayName) + + field(:servingReleases, + as: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1Release, + type: :list + ) + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1Track do + def decode(value, options) do + GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1Track.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.PlayDeveloperReporting.V1beta1.Model.GooglePlayDeveloperReportingV1beta1Track do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/play_developer_reporting/mix.exs b/clients/play_developer_reporting/mix.exs index 86e284ea36..cba291d9d3 100644 --- a/clients/play_developer_reporting/mix.exs +++ b/clients/play_developer_reporting/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.PlayDeveloperReporting.Mixfile do use Mix.Project - @version "0.2.4" + @version "0.3.0" def project() do [