Skip to content

Commit

Permalink
Added additional queries
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarx committed Oct 27, 2023
1 parent 7620bc8 commit 1eb96ab
Show file tree
Hide file tree
Showing 13 changed files with 73 additions and 1 deletion.
1 change: 1 addition & 0 deletions data-cache/beacontype_devicetype.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data-cache/landingpage_devicetype.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data-cache/navigationtype_devicetype.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data-cache/visibilitystate_devicetype.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data-output/beacontype_devicetype.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data-output/landingpage_devicetype.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data-output/navigationtype_devicetype.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data-output/visibilitystate_devicetype.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion queries/LCP_visibilitystate_devicetype.jsonl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"description": "Histogram of LCP per visibility state per device type for the last applicable date",
"datetype": "single",
"processingtype": "histogram",
"processingtype": "histogramPerDevice",
"extractmetric": "visibilitystate",
"extracthistogram": "LCPHISTOGRAM",
"sql": "
Expand Down
16 changes: 16 additions & 0 deletions queries/beacontype_devicetype.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"description": "Timeseries of the different beacon types per device type seen in the RUM Archive dataset",
"datetype": "timeseries",
"processingtype": "metricPerDevice",
"extractmetric": "beacontype",
"sql": "
SELECT DATE as date,
BEACONTYPE as beacontype,
DEVICETYPE as device,
COUNT(*) as rowcount,
SUM(BEACONS) as beaconcount
FROM `akamai-mpulse-rumarchive.rumarchive.rumarchive_page_loads`
WHERE {{TIMESERIES_DATES}}
GROUP BY DATE, DEVICETYPE, BEACONTYPE
ORDER BY DATE ASC, DEVICETYPE ASC, BEACONTYPE ASC"
}
16 changes: 16 additions & 0 deletions queries/landingpage_devicetype.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"description": "Timeseries of the whether or not a beacon was for the landingpage (1st page in a session) or not in the RUM Archive dataset",
"datetype": "timeseries",
"processingtype": "metricPerDevice",
"extractmetric": "landingpage",
"sql": "
SELECT DATE as date,
LANDINGPAGE as landingpage,
DEVICETYPE as device,
COUNT(*) as rowcount,
SUM(BEACONS) as beaconcount
FROM `akamai-mpulse-rumarchive.rumarchive.rumarchive_page_loads`
WHERE {{TIMESERIES_DATES}}
GROUP BY DATE, DEVICETYPE, LANDINGPAGE
ORDER BY DATE ASC, DEVICETYPE ASC, LANDINGPAGE ASC"
}
16 changes: 16 additions & 0 deletions queries/navigationtype_devicetype.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"description": "Timeseries of the different navigation types per device type seen in the RUM Archive dataset",
"datetype": "timeseries",
"processingtype": "metricPerDevice",
"extractmetric": "navigationtype",
"sql": "
SELECT DATE as date,
NAVIGATIONTYPE as navigationtype,
DEVICETYPE as device,
COUNT(*) as rowcount,
SUM(BEACONS) as beaconcount
FROM `akamai-mpulse-rumarchive.rumarchive.rumarchive_page_loads`
WHERE {{TIMESERIES_DATES}}
GROUP BY DATE, DEVICETYPE, NAVIGATIONTYPE
ORDER BY DATE ASC, DEVICETYPE ASC, NAVIGATIONTYPE ASC"
}
16 changes: 16 additions & 0 deletions queries/visibilitystate_devicetype.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"description": "Timeseries of the different visibility states per device type seen in the RUM Archive dataset",
"datetype": "timeseries",
"processingtype": "metricPerDevice",
"extractmetric": "visibilitystate",
"sql": "
SELECT DATE as date,
VISIBILITYSTATE as visibilitystate,
DEVICETYPE as device,
COUNT(*) as rowcount,
SUM(BEACONS) as beaconcount
FROM `akamai-mpulse-rumarchive.rumarchive.rumarchive_page_loads`
WHERE {{TIMESERIES_DATES}}
GROUP BY DATE, DEVICETYPE, VISIBILITYSTATE
ORDER BY DATE ASC, DEVICETYPE ASC, VISIBILITYSTATE ASC"
}

0 comments on commit 1eb96ab

Please sign in to comment.