{"action":"created","issue":{"url":"https://api.github.com/repos/laubed/pyMetric/issues/5","repository_url":"https://api.github.com/repos/laubed/pyMetric","labels_url":"https://api.github.com/repos/laubed/pyMetric/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/laubed/pyMetric/issues/5/comments","events_url":"https://api.github.com/repos/laubed/pyMetric/issues/5/events","html_url":"https://github.com/laubed/pyMetric/issues/5","id":153934530,"number":5,"title":"Populate linecharts with data","user":{"login":"laubed","id":3181348,"avatar_url":"https://avatars.githubusercontent.com/u/3181348?v=3","gravatar_id":"","url":"https://api.github.com/users/laubed","html_url":"https://github.com/laubed","followers_url":"https://api.github.com/users/laubed/followers","following_url":"https://api.github.com/users/laubed/following{/other_user}","gists_url":"https://api.github.com/users/laubed/gists{/gist_id}","starred_url":"https://api.github.com/users/laubed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laubed/subscriptions","organizations_url":"https://api.github.com/users/laubed/orgs","repos_url":"https://api.github.com/users/laubed/repos","events_url":"https://api.github.com/users/laubed/events{/privacy}","received_events_url":"https://api.github.com/users/laubed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"soerenuhrbach","id":18682112,"avatar_url":"https://avatars.githubusercontent.com/u/18682112?v=3","gravatar_id":"","url":"https://api.github.com/users/soerenuhrbach","html_url":"https://github.com/soerenuhrbach","followers_url":"https://api.github.com/users/soerenuhrbach/followers","following_url":"https://api.github.com/users/soerenuhrbach/following{/other_user}","gists_url":"https://api.github.com/users/soerenuhrbach/gists{/gist_id}","starred_url":"https://api.github.com/users/soerenuhrbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soerenuhrbach/subscriptions","organizations_url":"https://api.github.com/users/soerenuhrbach/orgs","repos_url":"https://api.github.com/users/soerenuhrbach/repos","events_url":"https://api.github.com/users/soerenuhrbach/events{/privacy}","received_events_url":"https://api.github.com/users/soerenuhrbach/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-05-10T06:44:51Z","updated_at":"2016-05-10T19:19:36Z","closed_at":null,"body":"Example Request:\r\nGET http://localhost:5000/metric/api/v1.0/metric/get?origin=laptop&key=cpu_usage&fromtime=1462861516&totime=1462862596\r\nResponse:\r\n```\r\n{\r\n  \"results\": [\r\n    {\r\n      \"Id\": \"585\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462862596\", \r\n      \"Value\": \"14.3\"\r\n    }, \r\n    {\r\n      \"Id\": \"584\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462862536\", \r\n      \"Value\": \"13.9\"\r\n    }, \r\n    {\r\n      \"Id\": \"583\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462862476\", \r\n      \"Value\": \"17.9\"\r\n    }, \r\n    {\r\n      \"Id\": \"582\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462862416\", \r\n      \"Value\": \"11.8\"\r\n    }, \r\n    {\r\n      \"Id\": \"581\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462862356\", \r\n      \"Value\": \"12.4\"\r\n    }, \r\n    {\r\n      \"Id\": \"580\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462862176\", \r\n      \"Value\": \"18.1\"\r\n    }, \r\n    {\r\n      \"Id\": \"579\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462862116\", \r\n      \"Value\": \"17.2\"\r\n    }, \r\n    {\r\n      \"Id\": \"578\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462862056\", \r\n      \"Value\": \"20.4\"\r\n    }, \r\n    {\r\n      \"Id\": \"577\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462861996\", \r\n      \"Value\": \"19.6\"\r\n    }, \r\n    {\r\n      \"Id\": \"576\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462861936\", \r\n      \"Value\": \"16.1\"\r\n    }, \r\n    {\r\n      \"Id\": \"575\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462861876\", \r\n      \"Value\": \"16.2\"\r\n    }, \r\n    {\r\n      \"Id\": \"574\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462861816\", \r\n      \"Value\": \"17.3\"\r\n    }, \r\n    {\r\n      \"Id\": \"573\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462861696\", \r\n      \"Value\": \"12.5\"\r\n    }, \r\n    {\r\n      \"Id\": \"572\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462861636\", \r\n      \"Value\": \"18.1\"\r\n    }, \r\n    {\r\n      \"Id\": \"571\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462861576\", \r\n      \"Value\": \"13.2\"\r\n    }, \r\n    {\r\n      \"Id\": \"570\", \r\n      \"Key\": \"cpu_usage\", \r\n      \"Origin\": \"laptop\", \r\n      \"Time\": \"1462861516\", \r\n      \"Value\": \"19.5\"\r\n    }\r\n  ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/laubed/pyMetric/issues/comments/218262062","html_url":"https://github.com/laubed/pyMetric/issues/5#issuecomment-218262062","issue_url":"https://api.github.com/repos/laubed/pyMetric/issues/5","id":218262062,"user":{"login":"laubed","id":3181348,"avatar_url":"https://avatars.githubusercontent.com/u/3181348?v=3","gravatar_id":"","url":"https://api.github.com/users/laubed","html_url":"https://github.com/laubed","followers_url":"https://api.github.com/users/laubed/followers","following_url":"https://api.github.com/users/laubed/following{/other_user}","gists_url":"https://api.github.com/users/laubed/gists{/gist_id}","starred_url":"https://api.github.com/users/laubed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laubed/subscriptions","organizations_url":"https://api.github.com/users/laubed/orgs","repos_url":"https://api.github.com/users/laubed/repos","events_url":"https://api.github.com/users/laubed/events{/privacy}","received_events_url":"https://api.github.com/users/laubed/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T19:19:36Z","updated_at":"2016-05-10T19:19:36Z","body":"data is now shown in the line chart but in reverse order. The way we add the data to the diagram is also not optimal"}}