{"action":"created","comment":{"url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/pulls/comments/85725768","pull_request_review_id":6423687,"id":85725768,"diff_hunk":"@@ -3,5 +3,46 @@\n Querying\n ========\n \n-.. note:: Querying is currently not yet implemented. When it is, this page\n-          will be updated.\n+Inflow contains a minimal abstraction over the ``/query`` endpoint of the\n+InfluxDB HTTP API.\n+\n+Getting a list of measurements is as simple as:\n+\n+.. literalinclude:: ../../examples/query_measurements.py\n+    :language: python\n+\n+Say you've got a measurement called ``temperature`` (just as in the example\n+above), which contains a ``value`` field, a ``location`` tag, and contains 2\n+values. To query that data you would call the ``query`` method as described in\n+the above example, which will return a list with the following structure:\n+\n+.. code-block:: python\n+\n+    [","path":"docs/source/querying.rst","position":21,"original_position":21,"commit_id":"4abb5bff1c0e63d403901774979ea8859b5078bd","original_commit_id":"4abb5bff1c0e63d403901774979ea8859b5078bd","user":{"login":"OrangeTux","id":1565144,"avatar_url":"https://avatars.githubusercontent.com/u/1565144?v=3","gravatar_id":"","url":"https://api.github.com/users/OrangeTux","html_url":"https://github.com/OrangeTux","followers_url":"https://api.github.com/users/OrangeTux/followers","following_url":"https://api.github.com/users/OrangeTux/following{/other_user}","gists_url":"https://api.github.com/users/OrangeTux/gists{/gist_id}","starred_url":"https://api.github.com/users/OrangeTux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrangeTux/subscriptions","organizations_url":"https://api.github.com/users/OrangeTux/orgs","repos_url":"https://api.github.com/users/OrangeTux/repos","events_url":"https://api.github.com/users/OrangeTux/events{/privacy}","received_events_url":"https://api.github.com/users/OrangeTux/received_events","type":"User","site_admin":false},"body":"I think the series name is missing here. The response looks like this:\r\n\r\n```\r\n{ \"temperature\": [\r\n     {\r\n            'time': '2016-01-10T00:01:00Z',\r\n            'value': 21.0,\r\n            'location': 'groningen'\r\n        },\r\n        {\r\n            'time': '2016-01-10T00:02:00Z',\r\n            'value': 23.0,\r\n            'location': 'groningen'\r\n        }\r\n   ]\r\n}\r\n```","created_at":"2016-10-31T12:04:41Z","updated_at":"2016-10-31T12:04:41Z","html_url":"https://github.com/AdvancedClimateSystems/inflow/pull/5#discussion_r85725768","pull_request_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/AdvancedClimateSystems/inflow/pulls/comments/85725768"},"html":{"href":"https://github.com/AdvancedClimateSystems/inflow/pull/5#discussion_r85725768"},"pull_request":{"href":"https://api.github.com/repos/AdvancedClimateSystems/inflow/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/pulls/5","id":91589983,"html_url":"https://github.com/AdvancedClimateSystems/inflow/pull/5","diff_url":"https://github.com/AdvancedClimateSystems/inflow/pull/5.diff","patch_url":"https://github.com/AdvancedClimateSystems/inflow/pull/5.patch","issue_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/issues/5","number":5,"state":"open","locked":false,"title":"2 querying","user":{"login":"jaapz","id":513050,"avatar_url":"https://avatars.githubusercontent.com/u/513050?v=3","gravatar_id":"","url":"https://api.github.com/users/jaapz","html_url":"https://github.com/jaapz","followers_url":"https://api.github.com/users/jaapz/followers","following_url":"https://api.github.com/users/jaapz/following{/other_user}","gists_url":"https://api.github.com/users/jaapz/gists{/gist_id}","starred_url":"https://api.github.com/users/jaapz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaapz/subscriptions","organizations_url":"https://api.github.com/users/jaapz/orgs","repos_url":"https://api.github.com/users/jaapz/repos","events_url":"https://api.github.com/users/jaapz/events{/privacy}","received_events_url":"https://api.github.com/users/jaapz/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-31T10:59:37Z","updated_at":"2016-10-31T12:04:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe00a9f7efe438946de9c03444f96488c101d8bc","assignee":{"login":"OrangeTux","id":1565144,"avatar_url":"https://avatars.githubusercontent.com/u/1565144?v=3","gravatar_id":"","url":"https://api.github.com/users/OrangeTux","html_url":"https://github.com/OrangeTux","followers_url":"https://api.github.com/users/OrangeTux/followers","following_url":"https://api.github.com/users/OrangeTux/following{/other_user}","gists_url":"https://api.github.com/users/OrangeTux/gists{/gist_id}","starred_url":"https://api.github.com/users/OrangeTux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrangeTux/subscriptions","organizations_url":"https://api.github.com/users/OrangeTux/orgs","repos_url":"https://api.github.com/users/OrangeTux/repos","events_url":"https://api.github.com/users/OrangeTux/events{/privacy}","received_events_url":"https://api.github.com/users/OrangeTux/received_events","type":"User","site_admin":false},"assignees":[{"login":"OrangeTux","id":1565144,"avatar_url":"https://avatars.githubusercontent.com/u/1565144?v=3","gravatar_id":"","url":"https://api.github.com/users/OrangeTux","html_url":"https://github.com/OrangeTux","followers_url":"https://api.github.com/users/OrangeTux/followers","following_url":"https://api.github.com/users/OrangeTux/following{/other_user}","gists_url":"https://api.github.com/users/OrangeTux/gists{/gist_id}","starred_url":"https://api.github.com/users/OrangeTux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrangeTux/subscriptions","organizations_url":"https://api.github.com/users/OrangeTux/orgs","repos_url":"https://api.github.com/users/OrangeTux/repos","events_url":"https://api.github.com/users/OrangeTux/events{/privacy}","received_events_url":"https://api.github.com/users/OrangeTux/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/pulls/5/commits","review_comments_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/pulls/5/comments","review_comment_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/issues/5/comments","statuses_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/statuses/4abb5bff1c0e63d403901774979ea8859b5078bd","head":{"label":"AdvancedClimateSystems:2-querying","ref":"2-querying","sha":"4abb5bff1c0e63d403901774979ea8859b5078bd","user":{"login":"AdvancedClimateSystems","id":11807797,"avatar_url":"https://avatars.githubusercontent.com/u/11807797?v=3","gravatar_id":"","url":"https://api.github.com/users/AdvancedClimateSystems","html_url":"https://github.com/AdvancedClimateSystems","followers_url":"https://api.github.com/users/AdvancedClimateSystems/followers","following_url":"https://api.github.com/users/AdvancedClimateSystems/following{/other_user}","gists_url":"https://api.github.com/users/AdvancedClimateSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/AdvancedClimateSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdvancedClimateSystems/subscriptions","organizations_url":"https://api.github.com/users/AdvancedClimateSystems/orgs","repos_url":"https://api.github.com/users/AdvancedClimateSystems/repos","events_url":"https://api.github.com/users/AdvancedClimateSystems/events{/privacy}","received_events_url":"https://api.github.com/users/AdvancedClimateSystems/received_events","type":"Organization","site_admin":false},"repo":{"id":70478752,"name":"inflow","full_name":"AdvancedClimateSystems/inflow","owner":{"login":"AdvancedClimateSystems","id":11807797,"avatar_url":"https://avatars.githubusercontent.com/u/11807797?v=3","gravatar_id":"","url":"https://api.github.com/users/AdvancedClimateSystems","html_url":"https://github.com/AdvancedClimateSystems","followers_url":"https://api.github.com/users/AdvancedClimateSystems/followers","following_url":"https://api.github.com/users/AdvancedClimateSystems/following{/other_user}","gists_url":"https://api.github.com/users/AdvancedClimateSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/AdvancedClimateSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdvancedClimateSystems/subscriptions","organizations_url":"https://api.github.com/users/AdvancedClimateSystems/orgs","repos_url":"https://api.github.com/users/AdvancedClimateSystems/repos","events_url":"https://api.github.com/users/AdvancedClimateSystems/events{/privacy}","received_events_url":"https://api.github.com/users/AdvancedClimateSystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AdvancedClimateSystems/inflow","description":"Simple python InfluxDB client library","fork":false,"url":"https://api.github.com/repos/AdvancedClimateSystems/inflow","forks_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/forks","keys_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/teams","hooks_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/hooks","issue_events_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/issues/events{/number}","events_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/events","assignees_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/assignees{/user}","branches_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/branches{/branch}","tags_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/tags","blobs_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/statuses/{sha}","languages_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/languages","stargazers_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/stargazers","contributors_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/contributors","subscribers_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/subscribers","subscription_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/subscription","commits_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/contents/{+path}","compare_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/merges","archive_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/downloads","issues_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/issues{/number}","pulls_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/pulls{/number}","milestones_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/milestones{/number}","notifications_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/labels{/name}","releases_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/releases{/id}","deployments_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/deployments","created_at":"2016-10-10T10:48:15Z","updated_at":"2016-10-28T11:00:50Z","pushed_at":"2016-10-31T11:42:34Z","git_url":"git://github.com/AdvancedClimateSystems/inflow.git","ssh_url":"git@github.com:AdvancedClimateSystems/inflow.git","clone_url":"https://github.com/AdvancedClimateSystems/inflow.git","svn_url":"https://github.com/AdvancedClimateSystems/inflow","homepage":null,"size":47,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"AdvancedClimateSystems:master","ref":"master","sha":"f7c2303f060d8a9b28b9d29bfc3c6051b9e8973f","user":{"login":"AdvancedClimateSystems","id":11807797,"avatar_url":"https://avatars.githubusercontent.com/u/11807797?v=3","gravatar_id":"","url":"https://api.github.com/users/AdvancedClimateSystems","html_url":"https://github.com/AdvancedClimateSystems","followers_url":"https://api.github.com/users/AdvancedClimateSystems/followers","following_url":"https://api.github.com/users/AdvancedClimateSystems/following{/other_user}","gists_url":"https://api.github.com/users/AdvancedClimateSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/AdvancedClimateSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdvancedClimateSystems/subscriptions","organizations_url":"https://api.github.com/users/AdvancedClimateSystems/orgs","repos_url":"https://api.github.com/users/AdvancedClimateSystems/repos","events_url":"https://api.github.com/users/AdvancedClimateSystems/events{/privacy}","received_events_url":"https://api.github.com/users/AdvancedClimateSystems/received_events","type":"Organization","site_admin":false},"repo":{"id":70478752,"name":"inflow","full_name":"AdvancedClimateSystems/inflow","owner":{"login":"AdvancedClimateSystems","id":11807797,"avatar_url":"https://avatars.githubusercontent.com/u/11807797?v=3","gravatar_id":"","url":"https://api.github.com/users/AdvancedClimateSystems","html_url":"https://github.com/AdvancedClimateSystems","followers_url":"https://api.github.com/users/AdvancedClimateSystems/followers","following_url":"https://api.github.com/users/AdvancedClimateSystems/following{/other_user}","gists_url":"https://api.github.com/users/AdvancedClimateSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/AdvancedClimateSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdvancedClimateSystems/subscriptions","organizations_url":"https://api.github.com/users/AdvancedClimateSystems/orgs","repos_url":"https://api.github.com/users/AdvancedClimateSystems/repos","events_url":"https://api.github.com/users/AdvancedClimateSystems/events{/privacy}","received_events_url":"https://api.github.com/users/AdvancedClimateSystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AdvancedClimateSystems/inflow","description":"Simple python InfluxDB client library","fork":false,"url":"https://api.github.com/repos/AdvancedClimateSystems/inflow","forks_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/forks","keys_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/teams","hooks_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/hooks","issue_events_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/issues/events{/number}","events_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/events","assignees_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/assignees{/user}","branches_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/branches{/branch}","tags_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/tags","blobs_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/statuses/{sha}","languages_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/languages","stargazers_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/stargazers","contributors_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/contributors","subscribers_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/subscribers","subscription_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/subscription","commits_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/contents/{+path}","compare_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/merges","archive_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/downloads","issues_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/issues{/number}","pulls_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/pulls{/number}","milestones_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/milestones{/number}","notifications_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/labels{/name}","releases_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/releases{/id}","deployments_url":"https://api.github.com/repos/AdvancedClimateSystems/inflow/deployments","created_at":"2016-10-10T10:48:15Z","updated_at":"2016-10-28T11:00:50Z","pushed_at":"2016-10-31T11:42:34Z","git_url":"git://github.com/AdvancedClimateSystems/inflow.git","ssh_url":"git@github.com:AdvancedClimateSystems/inflow.git","clone_url":"https://github.com/AdvancedClimateSystems/inflow.git","svn_url":"https://github.com/AdvancedClimateSystems/inflow","homepage":null,"size":47,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AdvancedClimateSystems/inflow/pulls/5"},"html":{"href":"https://github.com/AdvancedClimateSystems/inflow/pull/5"},"issue":{"href":"https://api.github.com/repos/AdvancedClimateSystems/inflow/issues/5"},"comments":{"href":"https://api.github.com/repos/AdvancedClimateSystems/inflow/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/AdvancedClimateSystems/inflow/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/AdvancedClimateSystems/inflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AdvancedClimateSystems/inflow/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/AdvancedClimateSystems/inflow/statuses/4abb5bff1c0e63d403901774979ea8859b5078bd"}}}}
{"actor":{"display_login":"OrangeTux"}}