Last active
May 19, 2016 13:27
-
-
Save shawnbutts/5a15659d7bafeff1af7c2f779dbcca23 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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