Skip to content

Instantly share code, notes, and snippets.

@progrium
Created April 2, 2012 22:09
Show Gist options
  • Select an option

  • Save progrium/2287560 to your computer and use it in GitHub Desktop.

Select an option

Save progrium/2287560 to your computer and use it in GitHub Desktop.
ws = new WebSocket("ws://localhost:8181/v1/metric/get")
ws.onmessage = function (data) { console.log(data.data) }
ws.send(JSON.stringify({metric: "biz.calls", aggregate: "sum", step: 20, start: "2012-02-15T01:05:00Z", stop: "2012-02-15T02:05:00Z"}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment