{"action":"opened","issue":{"url":"https://api.github.com/repos/fxstein/SentientHome/issues/7","labels_url":"https://api.github.com/repos/fxstein/SentientHome/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/fxstein/SentientHome/issues/7/comments","events_url":"https://api.github.com/repos/fxstein/SentientHome/issues/7/events","html_url":"https://github.com/fxstein/SentientHome/issues/7","id":64009284,"number":7,"title":"Rename reserved event store keywords in event handler","user":{"login":"fxstein","id":773967,"avatar_url":"https://avatars.githubusercontent.com/u/773967?v=3","gravatar_id":"","url":"https://api.github.com/users/fxstein","html_url":"https://github.com/fxstein","followers_url":"https://api.github.com/users/fxstein/followers","following_url":"https://api.github.com/users/fxstein/following{/other_user}","gists_url":"https://api.github.com/users/fxstein/gists{/gist_id}","starred_url":"https://api.github.com/users/fxstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxstein/subscriptions","organizations_url":"https://api.github.com/users/fxstein/orgs","repos_url":"https://api.github.com/users/fxstein/repos","events_url":"https://api.github.com/users/fxstein/events{/privacy}","received_events_url":"https://api.github.com/users/fxstein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-24T14:29:09Z","updated_at":"2015-03-24T14:29:09Z","closed_at":null,"body":"Certain field names like time are predefined in e.g. InfluxDB. To avoid event rejection at the event store we need to add a simple rename logic into the event handler, so individual datafeeds don't have to bother with it. \r\n\r\ne.g. turn 'time' fields into 'xtime' or 'shtime'\r\n\r\nExample error:\r\n\r\n```\r\n2015-03-24 07:21:13,449 connectionpool INFO: Starting new HTTP connection (1): influx\r\n2015-03-24 07:21:13,452 connectionpool DEBUG: \"POST /db/Home/series?time_precision=s&u=xxxx HTTP/1.1\" 400 100\r\n2015-03-24 07:21:13,453 sheventhandler WARNING: Event store response: <Response [400]>\r\n2015-03-24 07:21:13,453 sheventhandler WARNING: Event rejected by http://influx/db/Home/series?time_precision=s&u=xxxx\r\n2015-03-24 07:21:13,454 sheventhandler WARNING: Event data: [{'name': 'usgs.earthquake.feature', 'points': [['nc72416715', -122.8241653, 38.8161659, 2.62, 0.52, 'earthquake', 'md', -420, None, '7km NW of The Geysers, California', 'automatic', 82, 0.008273, 0.02, ',nc72416715,', 'M 0.5 - 7km NW of The Geysers, California', ',general-link,geoserve,nearby-cities,origin,phase-data,', None, 'nc', 10, ',nc,', None, 1427206729890, 0, '72416715', 4]], 'columns': ['id', 'long', 'lat', 'depth', 'mag', 'type', 'magtype', 'tz', 'felt', 'place', 'status', 'gap', 'dmin', 'rms', 'ids', 'title', 'types', 'cdi', 'net', 'nst', 'sources', 'alert', 'time', 'tsunami', 'code', 'sig']}]\r\n```"}}