Clone this wiki locally
var context = cubism.context(), // a default context cube = context.cube("http://cube.example.com");
Creates a new metric for the given Cube expression. For example, if you were using Cube to collect "request" events, you could query the number of request events by saying:
var requests = cube.metric("sum(request)");
For more information on metric expressions, see Cube's documentation.
Returns the URL of the Cube server; the first argument to the constructor.