Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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.