Last active
September 10, 2021 16:22
-
-
Save andrewchilds/11831dc82093e53d41af to your computer and use it in GitHub Desktop.
Revisions
-
andrewchilds revised this gist
Jun 2, 2017 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -15,3 +15,10 @@ FROM item_occurrence WHERE timestamp > unix_timestamp() - 60 * 60 * 24 * 7 GROUP BY 1 ORDER BY 2 DESC # List counts of arbitrary "statusCode" values from item #1234 SELECT body.message.extra.statusCode, count(body.message.extra.statusCode) FROM item_occurrence WHERE item.counter = 1234 GROUP BY 1 LIMIT 1000 -
andrewchilds revised this gist
Dec 18, 2015 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,3 +8,10 @@ ORDER BY 2 DESC SELECT client.javascript.code_version, min(timestamp), max(timestamp) FROM item_occurrence GROUP BY 1 # List top 100 user agent strings over last week SELECT client.javascript.browser, count(*) FROM item_occurrence WHERE timestamp > unix_timestamp() - 60 * 60 * 24 * 7 GROUP BY 1 ORDER BY 2 DESC -
andrewchilds created this gist
Jun 8, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ # List users by average and maximum session length. SELECT person, max(client.runtime_ms), avg(client.runtime_ms) FROM item_occurrence GROUP BY 1 ORDER BY 2 DESC # List active date ranges for each deploy. SELECT client.javascript.code_version, min(timestamp), max(timestamp) FROM item_occurrence GROUP BY 1