-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new query for user agent versions. Made query building with dynam…
…ic dates more robust.
- Loading branch information
Showing
4 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"description": "Timeseries of the different versions per user agent per device type, ordered by occurrence seen in the RUM Archive dataset", | ||
"datetype": "timeseries", | ||
"processingtype": "groupedMetricPerDevice", | ||
"extractmetric": "version", | ||
"groupby": "family", | ||
"comments": "We exclude null values here due to the already high cardinality of results. We manually select the 'interesting' user agents for the same reason.", | ||
"sql": " | ||
SELECT DATE as date, | ||
USERAGENTVERSION as version, | ||
USERAGENTFAMILY as family, | ||
DEVICETYPE as device, | ||
COUNT(*) as rowcount, | ||
SUM(BEACONS) as beaconcount | ||
FROM `akamai-mpulse-rumarchive.rumarchive.rumarchive_page_loads` | ||
WHERE DEVICETYPE IS NOT NULL and USERAGENTFAMILY IS NOT NULL AND USERAGENTVERSION IS NOT NULL AND {{TIMESERIES_DATES}} | ||
AND USERAGENTFAMILY in ('Chrome', 'Chrome Mobile', 'Chrome Mobile WebView', 'Chrome Mobile iOS', 'Safari', 'Mobile Safari', 'Mobile Safari UI/WKWebView', 'Edge', 'Facebook', 'Firefox', 'Firefox Mobile', 'Opera', 'Opera Mini', 'Samsung Internet', 'Instagram') | ||
GROUP BY DATE, DEVICETYPE, USERAGENTFAMILY, USERAGENTVERSION | ||
ORDER BY DATE ASC, DEVICETYPE ASC, USERAGENTFAMILY ASC, beaconcount DESC" | ||
} |