REST Resource: vitals.excessivewakeuprate
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Recurso: ExcessiveWakeupRateMetricSet
Recurso singleton que representa o conjunto de métricas de despertar excessivo.
Esse conjunto de métricas contém dados de contagem de despertar do AlarmManager combinados com dados de estado do processo para produzir uma métrica normalizada independente das contagens de usuários.
Períodos de agregação aceitos:
DAILY
: as métricas são agregadas em intervalos de datas do calendário. Devido a restrições históricas, o único fuso horário compatível é America/Los_Angeles
.
Métricas compatíveis:
excessiveWakeupRate
(google.type.Decimal
): porcentagem de usuários distintos no período de agregação que tiveram mais de 10 ativações por hora.
excessiveWakeupRate7dUserWeighted
(google.type.Decimal
): valor da média contínua de excessiveWakeupRate
nos últimos sete dias. Os valores diários são ponderados pela contagem de usuários distintos do dia.
excessiveWakeupRate28dUserWeighted
(google.type.Decimal
): valor da média contínua de excessiveWakeupRate
nos últimos 28 dias. Os valores diários são ponderados pela contagem de usuários distintos do dia.
distinctUsers
(google.type.Decimal
): contagem de usuários distintos no período de agregação que foram usados como valor de normalização para a métrica excessiveWakeupRate
. Um usuário é contabilizado nessa métrica se o app estava realizando alguma tarefa no dispositivo, ou seja, não apenas o uso ativo em primeiro plano, mas também o trabalho em segundo plano. Não agregue mais essa contagem, porque isso pode fazer com que os usuários sejam contados várias vezes. O valor é arredondado para o múltiplo mais próximo de 10, 100, 1.000 ou 1.000.000, dependendo da magnitude do valor.
Dimensões aceitas:
apiLevel
(string
): o nível da API do Android que estava em execução no dispositivo do usuário, por exemplo, 26.
versionCode
(int64
): versão do app que estava sendo executada no dispositivo do usuário.
deviceModel
(string
): identificador exclusivo do modelo do dispositivo do usuário. O formato do identificador é "deviceBrand/device", em que deviceBrand corresponde a Build.BRAND e device corresponde a Build.DEVICE, por exemplo, google/coral.
deviceBrand
(string
): identificador exclusivo da marca do dispositivo do usuário, por exemplo, google.
deviceType
(string
): o tipo (também conhecido como formato) do dispositivo do usuário, por exemplo, PHONE.
countryCode
(string
): o país ou a região do dispositivo do usuário com base no endereço IP, representado como um código ISO-3166 de duas letras (por exemplo, US para os Estados Unidos).
deviceRamBucket
(int64
): RAM do dispositivo, em MB, em intervalos (3 GB, 4 GB etc.).
deviceSocMake
(string
): marca do principal sistema em um chip do dispositivo, por exemplo, Samsung. Referência
deviceSocModel
(string
): modelo do principal sistema em um chip do dispositivo, por exemplo, "Exynos 2100". Referência
deviceCpuMake
(string
): marca da CPU do dispositivo, por exemplo, Qualcomm.
deviceCpuModel
(string
): modelo da CPU do dispositivo, por exemplo, "Kryo 240".
deviceGpuMake
(string
): fabricante da GPU do dispositivo, por exemplo, ARM.
deviceGpuModel
(string
): modelo da GPU do dispositivo, por exemplo, Mali.
deviceGpuVersion
(string
): versão da GPU do dispositivo, por exemplo, T750.
deviceVulkanVersion
(string
): versão do Vulkan do dispositivo, por exemplo, "4198400".
deviceGlEsVersion
(string
): versão do OpenGL ES do dispositivo, por exemplo, "196610".
deviceScreenSize
(string
): tamanho da tela do dispositivo, por exemplo, NORMAL, LARGE.
deviceScreenDpi
(string
): densidade da tela do dispositivo, por exemplo, mdpi, hdpi.
Permissões necessárias: para acessar esse recurso, o usuário que faz a chamada precisa da permissão Ver informações do app (somente leitura).
Representação JSON |
{
"name": string,
"freshnessInfo": {
object (FreshnessInfo )
}
} |
Campos |
name |
string
Identificador. O nome do recurso. Formato: apps/{app}/excessiveWakeupRateMetricSet
|
freshnessInfo |
object (FreshnessInfo )
Resumo sobre a atualização de dados neste recurso.
|
Métodos |
|
Descreve as propriedades do conjunto de métricas. |
|
Consulta as métricas no conjunto de métricas. |
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-26 UTC.
[null,null,["Última atualização 2025-07-26 UTC."],[[["\u003cp\u003eThe ExcessiveWakeupRateMetricSet resource provides insights into the frequency of AlarmManager wakeups within an app, helping developers identify potential battery drain issues.\u003c/p\u003e\n"],["\u003cp\u003eMetrics include the percentage of users experiencing excessive wakeups, rolling averages, and the total number of distinct users considered.\u003c/p\u003e\n"],["\u003cp\u003eData can be segmented by various dimensions like API level, app version, device characteristics, and location, offering granular analysis.\u003c/p\u003e\n"],["\u003cp\u003eOnly daily aggregation is supported, with metrics aggregated in calendar date intervals in the \u003ccode\u003eAmerica/Los_Angeles\u003c/code\u003e timezone.\u003c/p\u003e\n"],["\u003cp\u003eTo access this resource, the user needs the \u003cem\u003eView app information (read-only)\u003c/em\u003e permission for the specific app.\u003c/p\u003e\n"]]],["The ExcessiveWakeupRateMetricSet resource provides metrics on AlarmManager wakeup counts, normalized by user activity. It supports daily aggregation in the `America/Los_Angeles` timezone. Key metrics include `excessiveWakeupRate`, along with 7 and 28-day user-weighted rolling averages, and `distinctUsers`. Supported dimensions for analysis encompass device details like API level, version code, model, brand, type, country code, RAM, CPU, GPU and Screen information. Users require *View app information* permission to access. It includes methods to describe the properties of and query the metrics.\n"],null,["# REST Resource: vitals.excessivewakeuprate\n\n- [Resource: ExcessiveWakeupRateMetricSet](#ExcessiveWakeupRateMetricSet)\n - [JSON representation](#ExcessiveWakeupRateMetricSet.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: ExcessiveWakeupRateMetricSet\n--------------------------------------\n\nSingleton resource representing the set of Excessive Weakeups metrics.\n\nThis metric set contains AlarmManager wakeup counts data combined with process state data to produce a normalized metric independent of user counts.\n\n**Supported aggregation periods:**\n\n- [DAILY](/play/developer/reporting/reference/rest/v1beta1/AggregationPeriod#ENUM_VALUES.DAILY): metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`.\n\n**Supported metrics:**\n\n- `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour.\n- `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.\n- `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.\n- `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.\n\n**Supported dimensions:**\n\n- `apiLevel` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): the API level of Android that was running on the user's device, e.g., 26.\n- `versionCode` ([int64](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.int64_value)): version of the app that was running on the user's device.\n- `deviceModel` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): 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.\n- `deviceBrand` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): unique identifier of the user's device brand, e.g., google.\n- `deviceType` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): the type (also known as form factor) of the user's device, e.g., PHONE.\n- `countryCode` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): 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).\n- `deviceRamBucket` ([int64](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.int64_value)): RAM of the device, in MB, in buckets (3GB, 4GB, etc.).\n- `deviceSocMake` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER)\n- `deviceSocModel` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL)\n- `deviceCpuMake` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): Make of the device's CPU, e.g., Qualcomm.\n- `deviceCpuModel` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): Model of the device's CPU, e.g., \"Kryo 240\".\n- `deviceGpuMake` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): Make of the device's GPU, e.g., ARM.\n- `deviceGpuModel` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): Model of the device's GPU, e.g., Mali.\n- `deviceGpuVersion` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): Version of the device's GPU, e.g., T750.\n- `deviceVulkanVersion` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): Vulkan version of the device, e.g., \"4198400\".\n- `deviceGlEsVersion` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): OpenGL ES version of the device, e.g., \"196610\".\n- `deviceScreenSize` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): Screen size of the device, e.g., NORMAL, LARGE.\n- `deviceScreenDpi` ([string](/play/developer/reporting/reference/rest/v1beta1/anomalies#DimensionValue.FIELDS.string_value)): Screen density of the device, e.g., mdpi, hdpi.\n\n**Required permissions** : to access this resource, the calling user needs the *View app information (read-only)* permission for the app.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"freshnessInfo\": { object (/play/developer/reporting/reference/rest/v1beta1/FreshnessInfo) } } ``` |\n\n| Fields ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Identifier. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet |\n| `freshnessInfo` | `object (`[FreshnessInfo](/play/developer/reporting/reference/rest/v1beta1/FreshnessInfo)`)` Summary about data freshness in this resource. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------------------------|---------------------------------------------|\n| ### [get](/play/developer/reporting/reference/rest/v1beta1/vitals.excessivewakeuprate/get) | Describes the properties of the metric set. |\n| ### [query](/play/developer/reporting/reference/rest/v1beta1/vitals.excessivewakeuprate/query) | Queries the metrics in the metric set. |"]]