Skip to content

Instantly share code, notes, and snippets.

@shawnbutts
Last active May 19, 2016 13:27
Show Gist options
  • Save shawnbutts/5a15659d7bafeff1af7c2f779dbcca23 to your computer and use it in GitHub Desktop.
Save shawnbutts/5a15659d7bafeff1af7c2f779dbcca23 to your computer and use it in GitHub Desktop.
import netuitive
import time
ApiClient = netuitive.Client(api_key='aaaaaaa9956110211e594444697f922ec7b')
MyElement = netuitive.Element()
timestamp = int(time.mktime(time.gmtime()))
# metricId utc time value
MyElement.add_sample('app.error', timestamp, 1)
ApiClient.post(MyElement)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment