- [Resource: AnonRssAndSwapMemoryUsageMetricSet](https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/vitals.anonrssandswapmemoryusage#AnonRssAndSwapMemoryUsageMetricSet)
  - [JSON representation](https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/vitals.anonrssandswapmemoryusage#AnonRssAndSwapMemoryUsageMetricSet.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/vitals.anonrssandswapmemoryusage#METHODS_SUMMARY)

## Resource: AnonRssAndSwapMemoryUsageMetricSet

Singleton resource representing the set of Anon RSS and Swap Memory Usage metrics.

This metric set contains anon RSS and swap memory usage data combined with usage data.

**Supported aggregation periods:**

- `https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/AggregationPeriod#ENUM_VALUES.DAILY`: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`.

**Supported metrics:**

- `anonRssAndSwapMemoryUsageP50` (`google.type.Decimal`): 50th percentile of anon RSS and swap memory usage.
- `anonRssAndSwapMemoryUsageP75` (`google.type.Decimal`): 75th percentile of anon RSS and swap memory usage.
- `anonRssAndSwapMemoryUsageP90` (`google.type.Decimal`): 90th percentile of anon RSS and swap memory usage.
- `anonRssAndSwapMemoryUsageP95` (`google.type.Decimal`): 95th percentile of anon RSS and swap memory usage.
- `anonRssAndSwapMemoryUsageP99` (`google.type.Decimal`): 99th percentile of anon RSS and swap memory usage.
- `distinctUsers` (`google.type.Decimal`): Count of distinct users for which memory metrics were reported during the aggregation period.

**Supported dimensions:**

- `apiLevel` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): the API level of Android that was running on the user's device, e.g., 26.
- `versionCode` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.int64_value`): version of the app that was running on the user's device.
- `deviceModel` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/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.
- `deviceBrand` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): unique identifier of the user's device brand, e.g., google.
- `deviceType` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): the type (also known as form factor) of the user's device, e.g., PHONE.
- `countryCode` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/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).
- `deviceRamBucket` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.int64_value`): RAM of the device, in MB, in buckets (3GB, 4GB, etc.).
- `deviceSocMake` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): Make of the device's primary system-on-chip, e.g., Samsung.
- `deviceSocModel` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): Model of the device's primary system-on-chip, e.g., "Exynos 2100".
- `deviceCpuMake` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): Make of the device's CPU, e.g., Qualcomm.
- `deviceCpuModel` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): Model of the device's CPU, e.g., "Kryo 240".
- `deviceGpuMake` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): Make of the device's GPU, e.g., ARM.
- `deviceGpuModel` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): Model of the device's GPU, e.g., Mali.
- `deviceGpuVersion` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): Version of the device's GPU, e.g., T750.
- `deviceVulkanVersion` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): Vulkan version of the device, e.g., "4198400".
- `deviceGlEsVersion` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): OpenGL ES version of the device, e.g., "196610".
- `deviceScreenSize` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): Screen size of the device, e.g., NORMAL, LARGE.
- `deviceScreenDpi` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): Screen density of the device, e.g., mdpi, hdpi.
- `processName` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): the name of the process that was running, e.g., com.example.app.
- `appState` (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/anomalies#DimensionValue.FIELDS.string_value`): the state of the app when memory was collected, e.g., FOREGROUND.

**Required permissions** : to access this resource, the calling user needs the *View app information (read-only)* permission for the app.

| JSON representation |
|---|
| ``` { "name": string, "freshnessInfo": { object (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/FreshnessInfo`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. \* The resource name. Format: apps/{app}/anonRssAndSwapMemoryUsageMetricSet |
| `freshnessInfo` | ``object (`https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/FreshnessInfo`)`` Output only. \* Summary about data freshness in this resource. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/vitals.anonrssandswapmemoryusage/get` | Describes the properties of the metric set. |
| ### `https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/vitals.anonrssandswapmemoryusage/query` | Queries the metrics in the metric set. |