Skip to content

Instantly share code, notes, and snippets.


Mike Bulman mbulman

  • DataStax
  • Austin, TX
View GitHub Profile
mbulman /
Created Aug 22, 2012
Integrating Alerts via the OpsCenter REST API
import urllib, json, time
def getUrl(path):
""" Makes an OpsCenter API call to the given path """
url = 'http://localhost:8888/%s' % path
contents = urllib.urlopen(url).read()
return json.loads(contents)
def pollCluster(cluster_id):