{"action":"closed","issue":{"url":"https://api.github.com/repos/infiniteautomation/ma-core-public/issues/806","repository_url":"https://api.github.com/repos/infiniteautomation/ma-core-public","labels_url":"https://api.github.com/repos/infiniteautomation/ma-core-public/issues/806/labels{/name}","comments_url":"https://api.github.com/repos/infiniteautomation/ma-core-public/issues/806/comments","events_url":"https://api.github.com/repos/infiniteautomation/ma-core-public/issues/806/events","html_url":"https://github.com/infiniteautomation/ma-core-public/issues/806","id":171034926,"number":806,"title":"REST point-values endpoints for multiple data points","user":{"login":"terrypacker","id":3905204,"avatar_url":"https://avatars.githubusercontent.com/u/3905204?v=3","gravatar_id":"","url":"https://api.github.com/users/terrypacker","html_url":"https://github.com/terrypacker","followers_url":"https://api.github.com/users/terrypacker/followers","following_url":"https://api.github.com/users/terrypacker/following{/other_user}","gists_url":"https://api.github.com/users/terrypacker/gists{/gist_id}","starred_url":"https://api.github.com/users/terrypacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrypacker/subscriptions","organizations_url":"https://api.github.com/users/terrypacker/orgs","repos_url":"https://api.github.com/users/terrypacker/repos","events_url":"https://api.github.com/users/terrypacker/events{/privacy}","received_events_url":"https://api.github.com/users/terrypacker/received_events","type":"User","site_admin":false},"labels":[{"id":298085217,"url":"https://api.github.com/repos/infiniteautomation/ma-core-public/labels/New%20Feature","name":"New Feature","color":"c7def8","default":false},{"id":298080670,"url":"https://api.github.com/repos/infiniteautomation/ma-core-public/labels/Ready%20for%20Testing","name":"Ready for Testing","color":"009800","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/infiniteautomation/ma-core-public/milestones/16","html_url":"https://github.com/infiniteautomation/ma-core-public/milestones/2.7.x%20Bugs","labels_url":"https://api.github.com/repos/infiniteautomation/ma-core-public/milestones/16/labels","id":1440137,"number":16,"title":"2.7.x Bugs","description":"Bugs in the 2.7.x Release Stream","creator":{"login":"terrypacker","id":3905204,"avatar_url":"https://avatars.githubusercontent.com/u/3905204?v=3","gravatar_id":"","url":"https://api.github.com/users/terrypacker","html_url":"https://github.com/terrypacker","followers_url":"https://api.github.com/users/terrypacker/followers","following_url":"https://api.github.com/users/terrypacker/following{/other_user}","gists_url":"https://api.github.com/users/terrypacker/gists{/gist_id}","starred_url":"https://api.github.com/users/terrypacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrypacker/subscriptions","organizations_url":"https://api.github.com/users/terrypacker/orgs","repos_url":"https://api.github.com/users/terrypacker/repos","events_url":"https://api.github.com/users/terrypacker/events{/privacy}","received_events_url":"https://api.github.com/users/terrypacker/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":207,"state":"open","created_at":"2015-12-02T18:06:22Z","updated_at":"2016-11-11T00:53:04Z","due_on":"2016-12-31T10:00:00Z","closed_at":null},"comments":1,"created_at":"2016-08-14T00:31:58Z","updated_at":"2016-11-11T00:53:04Z","closed_at":"2016-11-11T00:53:04Z","body":"Add new endpoints:\n\n**Single Array Output** \n\n/point-values/{xids}/latest-point-values-single-array\n/point-values/{xids}/multiple-point-values-single-array\n\nThese return data as an array of point values with the point xid as the value member name:\n\nJSON\n\n```\n{\n  \"timestamp\" : 1470788397356,\n  \"Point2\" : true,\n  \"Point1\" : 60.44812130128162\n}\n```\n\nCSV\n\n```\n\"timestamp\",\"Point2\",\"Point1\"\n\"1470788402356\",\"false\",”51.421232449433745\"\n```\n\n**Multiple Arrays In a Map Output**\n\n/point-values/{xids}/latest-point-values-multiple-arrays\n/point-values/{xids}/multiple-point-values-multiple-arrays\n\nJSON\nThese return data as arrays inside of a map with the xid as the key.\n\nCSV\n\n```\n\"xid\",\"value\",\"timestamp\",\"annotation\"\n\"Point2\",\"0.0\",\"1470780000000\",\"No data for period\"\n\"Point2\",\"0.0\",\"1470783600000\",\"No data for period\"\n\"Point2\",\"true\",\"1470787200000\",\n\"Point2\",\"true\",\"1470790800000\",\n\"Point2\",\"false\",\"1470794400000\",\n\"Point1\",\"0.0\",\"1470780000000\",\"No data for period\"\n\"Point1\",\"0.0\",\"1470783600000\",\"No data for period\"\n\"Point1\",\"60.44812130128162\",\"1470787200000\",\n\"Point1\",\"64.08396404315866\",\"1470790800000\",\n\"Point1\",\"66.70668131460373\",\"1470794400000\",\n\n```\n\nAreas To Test\n- Numeric and NonNumeric Rollup types for all 4 data types.  If a Binary point is requested with a Numeric rollup then it will default to FIRST\n- useRendered flag\n- unitConversion flag\n- FFT is not available so don’t bother testing it\n- Rollup bins are correct and start/end bins have correct information in them\n- How the rollups behave, for example if there is no data in a period after a period with data the AVERAGE rollup will return the average of the previous period.  Is that what we want?\n\nExample URLS:\nhttp://localhost:8080/rest/v1/point-values/Point1,Point2/multiple-points-single-array?format=csv&from=2016-08-9T12:00:00.000-10:00&to=2016-08-10T00:00:00.000-10:00\nhttp://localhost:8080/rest/v1/point-values/Point1,Point2/multiple-points-single-array?from=2016-08-9T12:00:00.000-10:00&to=2016-08-10T00:00:00.000-10:00&rollup=AVERAGE&timePeriodType=HOURS&timePeriods=1\n"}}
{"actor":{"display_login":"terrypacker"}}