Created
March 26, 2015 14:11
-
-
Save imsickofmaps/33cace694c0d7d702cb6 to your computer and use it in GitHub Desktop.
This file contains 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 go_http.metrics import MetricsApiClient | |
VUMI_GO_API_URL = "http://go.vumi.org/api/v1/go" | |
VUMI_GO_API_TOKEN = "" | |
client = MetricsApiClient(VUMI_GO_API_TOKEN, VUMI_GO_API_URL) | |
metric = 'stores.ndoh_prd_live.qa.sum.subscriptions.standard.active.last' | |
metric = 'stores.ndoh_prd_live.qa.sum.subscriptions.miscarriage.active.last' | |
metric = 'stores.ndoh_qa.qa.subscriptions.en.active.last' | |
client.get_metric(metric, '-1d', '1d', 'omit') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment