Skip to content

Instantly share code, notes, and snippets.

@boq
Last active December 5, 2015 21:12
Show Gist options
  • Select an option

  • Save boq/be8a196b2d5d5121ce8a to your computer and use it in GitHub Desktop.

Select an option

Save boq/be8a196b2d5d5121ce8a to your computer and use it in GitHub Desktop.
OpenEye has very basic API for querying daily stats (collected for all reports).
Note: results are updated and generated in real time, even though it looks like collection of static files
http://openeye.openmods.info/counters/dimension/[dimension].[type]
> returns allowed range of queries.
http://openeye.openmods.info/counters/[date]/[counter].[type]
> queries values of counter. Results will be returned in random order.
http://openeye.openmods.info/counters/[date]/[counter].[sort].[type]
> queries values of counter. Results will be sorted according to [sort].
[dimension]
dates
counters
[date]
anything returned by /counters/dimension/dates.*
Note: 'total' is sum over all dates
[counter]
anything returned by /counters/dimension/counters.*
[sort]
key_asc (ka)
key_desc (kd)
value_asc (va)
value_desc (vd)
[type]
txt
json
csv
examples:
http://openeye.openmods.info/counters/dimension/counters.txt
http://openeye.openmods.info/counters/total/runtime-forge.txt
http://openeye.openmods.info/counters/2015-12-05/java.vd.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment