{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/influxdb-python/issues/99","labels_url":"https://api.github.com/repos/influxdb/influxdb-python/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb-python/issues/99/comments","events_url":"https://api.github.com/repos/influxdb/influxdb-python/issues/99/events","html_url":"https://github.com/influxdb/influxdb-python/pull/99","id":54321349,"number":99,"title":"Adds a helper for adding data points","user":{"login":"ChristopherRabotin","id":4823784,"avatar_url":"https://avatars.githubusercontent.com/u/4823784?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristopherRabotin","html_url":"https://github.com/ChristopherRabotin","followers_url":"https://api.github.com/users/ChristopherRabotin/followers","following_url":"https://api.github.com/users/ChristopherRabotin/following{/other_user}","gists_url":"https://api.github.com/users/ChristopherRabotin/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristopherRabotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristopherRabotin/subscriptions","organizations_url":"https://api.github.com/users/ChristopherRabotin/orgs","repos_url":"https://api.github.com/users/ChristopherRabotin/repos","events_url":"https://api.github.com/users/ChristopherRabotin/events{/privacy}","received_events_url":"https://api.github.com/users/ChristopherRabotin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-14T13:24:06Z","updated_at":"2015-01-14T16:47:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/influxdb/influxdb-python/pulls/99","html_url":"https://github.com/influxdb/influxdb-python/pull/99","diff_url":"https://github.com/influxdb/influxdb-python/pull/99.diff","patch_url":"https://github.com/influxdb/influxdb-python/pull/99.patch"},"body":"Implements #89 .\r\nSubclassing this helper eases writing data points in bulk. All data points are immutable, insuring they do not get overwritten. Each subclass can write to its own database. The time series names can also be based on one or more defined fields.\r\n\r\nAnnotated example:\r\n```python\r\n    class MySeriesHelper(SeriesHelper):\r\n        class Meta:\r\n            # Meta class stores time series helper configuration.\r\n            client = TestSeriesHelper.client\r\n            # The client should be an instance of InfluxDBClient.\r\n            series_name = 'events.stats.{server_name}'\r\n            # The series name must be a string. Add dependent field names in curly brackets.\r\n            fields = ['time', 'server_name']\r\n            # Defines all the fields in this time series.\r\n            bulk_size = 5\r\n            # Defines the number of data points to store prior to writing on the wire.\r\n    \r\n    # The following will create *five* (immutable) data points.\r\n    # Since bulk_size is set to 5, upon the fifth construction call, *all* data\r\n    # points will be written on the wire via MySeriesHelper.Meta.client.\r\n    MySeriesHelper(server_name='us.east-1', time=159)\r\n    MySeriesHelper(server_name='us.east-1', time=158)\r\n    MySeriesHelper(server_name='us.east-1', time=157)\r\n    MySeriesHelper(server_name='us.east-1', time=156)\r\n    MySeriesHelper(server_name='us.east-1', time=155)\r\n    \r\n    # To manually submit data points which are not yet written, call commit:\r\n    MySeriesHelper.commit()\r\n    \r\n    # To inspect the JSON which will be written, call _json_body_():\r\n    MySeriesHelper._json_body_()\r\n```"},"comment":{"url":"https://api.github.com/repos/influxdb/influxdb-python/issues/comments/69947629","html_url":"https://github.com/influxdb/influxdb-python/pull/99#issuecomment-69947629","issue_url":"https://api.github.com/repos/influxdb/influxdb-python/issues/99","id":69947629,"user":{"login":"ReAzem","id":2706882,"avatar_url":"https://avatars.githubusercontent.com/u/2706882?v=3","gravatar_id":"","url":"https://api.github.com/users/ReAzem","html_url":"https://github.com/ReAzem","followers_url":"https://api.github.com/users/ReAzem/followers","following_url":"https://api.github.com/users/ReAzem/following{/other_user}","gists_url":"https://api.github.com/users/ReAzem/gists{/gist_id}","starred_url":"https://api.github.com/users/ReAzem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReAzem/subscriptions","organizations_url":"https://api.github.com/users/ReAzem/orgs","repos_url":"https://api.github.com/users/ReAzem/repos","events_url":"https://api.github.com/users/ReAzem/events{/privacy}","received_events_url":"https://api.github.com/users/ReAzem/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T16:47:33Z","updated_at":"2015-01-14T16:47:33Z","body":"> how I can find the traceback of the failed test on Travis CI's build?\r\n\r\nYou can find logs of your build [here](https://travis-ci.org/influxdb/influxdb-python/builds/46982815)"}}