Skip to content

Instantly share code, notes, and snippets.

@imosquera
Created March 14, 2012 20:17
Show Gist options
  • Select an option

  • Save imosquera/2039208 to your computer and use it in GitHub Desktop.

Select an option

Save imosquera/2039208 to your computer and use it in GitHub Desktop.
EventTracker Client code
self.tracker_client = EventTrackerClient(host=EventTrackerClient.HOST_PROD)
one_month = timedelta(days=90)
end_date = datetime.now()
start_date = end_date - one_month
self.tracker_client.event_counts(bucket="ssz_new_users", label="app_id_1234", start_date, end_date)
self.tracker_client = EventTrackerClient(host=EventTrackerClient.HOST_PROD)
self.tracker_client.add_event(bucket='ssz_notifications', label='user_id_423343', value_dict={'application_id':1232} )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment