Created
November 4, 2014 18:19
-
-
Save technovangelist/4326e9adde324874f6a2 to your computer and use it in GitHub Desktop.
Simplest code to create a metric on Google App Engine using Python
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
from dogapi import dog_http_api as api | |
api.api_key = 'YOUR_API_KEY' | |
api.application_key = 'YOUR_APPLICATION_KEY' | |
# Submit a single point with a timestamp of `now` | |
api.metric('page.views', 1000) | |
#see more examples here: http://docs.datadoghq.com/api/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment