Reveal(x) has an API, sc.Query(), that is used by the UI to display things like requested hostnames (DNS) and their counts. However, this API is not available to developers. Are there any plans to expose it? If not, is there a suggested method for obtaining this information. Another one is reclog.runQuery(). Both of these APIs are super useful, and the functionality is difficult to replicate without retrieving all records.
To give a concrete use case of what I am trying to accomplish programmatically: what are the top X hostnames that were requested over the last Y days across the enterprise?