Skip to content

Instantly share code, notes, and snippets.

@imsickofmaps
Created March 26, 2015 14:11
Show Gist options
  • Save imsickofmaps/33cace694c0d7d702cb6 to your computer and use it in GitHub Desktop.
Save imsickofmaps/33cace694c0d7d702cb6 to your computer and use it in GitHub Desktop.
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