You can apply functions to metric queries in the graph editor, as long as you use the JSON editor.
The general format is:
function(metric{scope} [by {filter}])
In case of binary operators (+, -, /, *), the format is:
| /* The API controller | |
| Exports 3 methods: | |
| * post - Creates a new thread | |
| * list - Returns a list of threads | |
| * show - Displays a thread and its posts | |
| */ | |
| var Thread = require('../models/thread.js'); | |
| var Post = require('../models/post.js'); |