-
-
Save deavial/68c0b134918d6aa58280f9d41d4d97fc to your computer and use it in GitHub Desktop.
Rollbar RQL Cheat Sheet
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
# 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 | |
# 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 | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment