There are several ways to query your data. This document will show you some example NRQL queries from mobile monitoring data. To see descriptions of the mobile-reported events and attributes available, see Mobile events.
Mobile, MobileSession, and MobileCrash event query examples
Mobile queries allow you to understand and compare a wide variety of mobile data, including interactions, location, device profile, app version, crashes, and performance.
These examples use queries made on the Mobile, MobileSession, and MobileCrash event types:
SELECT uniqueCount(uuid)FROM Mobile SINCE 1day ago FACET name
SELECT uniqueCount(uuid)FROM MobileSession WHERE countryCode='CN' FACET regionCode SINCE 7 days ago
SELECT uniqueCount(uuid)FROM MobileSession FACET osVersion SINCE 7 days ago
SELECT percentile(sessionDuration,90)FROM MobileSession since 1day ago compare with2 days ago
SELECT histogram(memUsageMb)FROM MobileSession WHERE sessionDuration >5
For earlier versions, starting with Android version 5.14.0 or iOS version 5.14.0, you must enable the feature. Upgrade to the latest Android or iOS version, or add the required feature flag to your app.
Below are some NRQL queries that address common use cases. Use the MobileRequest attributes to make your own NRQL queries. The last two examples use MobileRequestError events in addition to MobileRequest to get an error rate.