{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/unide/issues/20","repository_url":"https://api.github.com/repos/eclipse/unide","labels_url":"https://api.github.com/repos/eclipse/unide/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/unide/issues/20/comments","events_url":"https://api.github.com/repos/eclipse/unide/issues/20/events","html_url":"https://github.com/eclipse/unide/issues/20","id":276956285,"number":20,"title":"REST Server db index","user":{"login":"ameinhardt","id":26243798,"avatar_url":"https://avatars1.githubusercontent.com/u/26243798?v=4","gravatar_id":"","url":"https://api.github.com/users/ameinhardt","html_url":"https://github.com/ameinhardt","followers_url":"https://api.github.com/users/ameinhardt/followers","following_url":"https://api.github.com/users/ameinhardt/following{/other_user}","gists_url":"https://api.github.com/users/ameinhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/ameinhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameinhardt/subscriptions","organizations_url":"https://api.github.com/users/ameinhardt/orgs","repos_url":"https://api.github.com/users/ameinhardt/repos","events_url":"https://api.github.com/users/ameinhardt/events{/privacy}","received_events_url":"https://api.github.com/users/ameinhardt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/eclipse/unide/milestones/1","html_url":"https://github.com/eclipse/unide/milestone/1","labels_url":"https://api.github.com/repos/eclipse/unide/milestones/1/labels","id":2888446,"number":1,"title":"0.2.0","description":"Improvements on REST server for testbed and bindings","creator":{"login":"ameinhardt","id":26243798,"avatar_url":"https://avatars1.githubusercontent.com/u/26243798?v=4","gravatar_id":"","url":"https://api.github.com/users/ameinhardt","html_url":"https://github.com/ameinhardt","followers_url":"https://api.github.com/users/ameinhardt/followers","following_url":"https://api.github.com/users/ameinhardt/following{/other_user}","gists_url":"https://api.github.com/users/ameinhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/ameinhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameinhardt/subscriptions","organizations_url":"https://api.github.com/users/ameinhardt/orgs","repos_url":"https://api.github.com/users/ameinhardt/repos","events_url":"https://api.github.com/users/ameinhardt/events{/privacy}","received_events_url":"https://api.github.com/users/ameinhardt/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":2,"state":"open","created_at":"2017-11-05T11:16:26Z","updated_at":"2018-02-01T14:05:41Z","due_on":"2018-01-31T08:00:00Z","closed_at":null},"comments":1,"created_at":"2017-11-27T09:47:36Z","updated_at":"2018-02-01T14:05:40Z","closed_at":"2018-02-01T14:05:40Z","author_association":"CONTRIBUTOR","body":"In order to save measurements with identical deviceId and timestamp but different device property names, add such tag()\r\nhttps://github.com/eclipse/unide/blob/2a12a7b94215ac795c7222cc82671e476eb69cba/servers/rest/src/main/java/server/persistency/dao/MeasurementDAO.java#L102-L103\r\n\r\nalso for process shutoffvalues:\r\nhttps://github.com/eclipse/unide/blob/2a12a7b94215ac795c7222cc82671e476eb69cba/servers/rest/src/main/java/server/persistency/dao/ProcessDAO.java#L182-L186\r\nand special values:\r\nhttps://github.com/eclipse/unide/blob/2a12a7b94215ac795c7222cc82671e476eb69cba/servers/rest/src/main/java/server/persistency/dao/ProcessDAO.java#L229-L232\r\n\r\nif measurements() always hold the deviceId, do we need another tag deviceId?\r\nin [ProcessDao](https://github.com/eclipse/unide/blob/eec10c6d75a374df84a598f73d0321c5e9d004f4/servers/rest/src/main/java/server/persistency/dao/ProcessDAO.java#L368), [MachineMessageDao](https://github.com/eclipse/unide/blob/eec10c6d75a374df84a598f73d0321c5e9d004f4/servers/rest/src/main/java/server/persistency/dao/MachineMessageDAO.java#L111) and [MeasurementDao](https://github.com/eclipse/unide/blob/2a12a7b94215ac795c7222cc82671e476eb69cba/servers/rest/src/main/java/server/persistency/dao/MeasurementDAO.java#L166)"},"comment":{"url":"https://api.github.com/repos/eclipse/unide/issues/comments/362275346","html_url":"https://github.com/eclipse/unide/issues/20#issuecomment-362275346","issue_url":"https://api.github.com/repos/eclipse/unide/issues/20","id":362275346,"user":{"login":"ameinhardt","id":26243798,"avatar_url":"https://avatars1.githubusercontent.com/u/26243798?v=4","gravatar_id":"","url":"https://api.github.com/users/ameinhardt","html_url":"https://github.com/ameinhardt","followers_url":"https://api.github.com/users/ameinhardt/followers","following_url":"https://api.github.com/users/ameinhardt/following{/other_user}","gists_url":"https://api.github.com/users/ameinhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/ameinhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameinhardt/subscriptions","organizations_url":"https://api.github.com/users/ameinhardt/orgs","repos_url":"https://api.github.com/users/ameinhardt/repos","events_url":"https://api.github.com/users/ameinhardt/events{/privacy}","received_events_url":"https://api.github.com/users/ameinhardt/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T14:05:40Z","updated_at":"2018-02-01T14:05:40Z","author_association":"CONTRIBUTOR","body":"@davidgs: thanks, that's how we did it now!\r\nThe *DAOs are now called [*Comsumer](https://github.com/eclipse/unide/tree/master/servers/rest/src/main/java/server/receiver/influxdb).\r\nThe documentation for the influx mapping has been documented in [documentation - InfluxDB Schema Design](https://github.com/eclipse/unide/blob/master/servers/rest/src/main/docs/asciidoc/documentation.adoc#influxdb-schema-design)\r\nExample:\r\nhttps://github.com/eclipse/unide/blob/d0cba44ac7528df58ffc2632e8daa1684901373c/servers/rest/src/main/java/server/receiver/influxdb/MachineMessageConsumer.java#L50-L53"}}
{"actor":{"display_login":"ameinhardt"}}