{"action":"created","comment":{"url":"https://api.github.com/repos/influxdb/influxdb/pulls/comments/26430229","id":26430229,"diff_hunk":"@@ -175,6 +179,127 @@ func (h *Handler) serveQuery(w http.ResponseWriter, r *http.Request, user *influ\n \thttpResults(w, results, pretty)\n }\n \n+type Point struct {\n+\tName      string                 `json:\"name\"`\n+\tTimestamp time.Time              `json:\"timestamp\"`\n+\tTags      map[string]string      `json:\"tags\"`\n+\tFields    map[string]interface{} `json:\"fields\"`\n+}\n+\n+type Batch struct {\n+\tDatabase        string  `json:\"database\"`\n+\tRetentionPolicy string  `json:\"retentionPolicy\"`\n+\tPoints          []Point `json:\"points\"`\n+}\n+\n+func interfaceToString(v interface{}) string {\n+\tswitch t := v.(type) {\n+\tcase nil:\n+\t\treturn \"\"\n+\tcase bool:\n+\t\treturn fmt.Sprintf(\"%v\", v)\n+\tcase int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, uintptr:\n+\t\treturn fmt.Sprintf(\"%d\", t)\n+\tcase float32, float64:\n+\t\treturn fmt.Sprintf(\"%v\", t)\n+\tdefault:\n+\t\treturn fmt.Sprintf(\"%v\", t)\n+\t}\n+}\n+\n+// Return all the measurements from the given DB\n+func (h *Handler) showMeasurements(db string, user *influxdb.User) (error, []string) {","path":"httpd/handler.go","position":44,"original_position":44,"commit_id":"a342a1e3fd6f85765dc8a535adb4f18a5f7a5cd2","original_commit_id":"a342a1e3fd6f85765dc8a535adb4f18a5f7a5cd2","user":{"login":"corylanou","id":585100,"avatar_url":"https://avatars.githubusercontent.com/u/585100?v=3","gravatar_id":"","url":"https://api.github.com/users/corylanou","html_url":"https://github.com/corylanou","followers_url":"https://api.github.com/users/corylanou/followers","following_url":"https://api.github.com/users/corylanou/following{/other_user}","gists_url":"https://api.github.com/users/corylanou/gists{/gist_id}","starred_url":"https://api.github.com/users/corylanou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corylanou/subscriptions","organizations_url":"https://api.github.com/users/corylanou/orgs","repos_url":"https://api.github.com/users/corylanou/repos","events_url":"https://api.github.com/users/corylanou/events{/privacy}","received_events_url":"https://api.github.com/users/corylanou/received_events","type":"User","site_admin":false},"body":"you should return the error last `([]string, error)`","created_at":"2015-03-13T23:26:33Z","updated_at":"2015-03-13T23:26:33Z","html_url":"https://github.com/influxdb/influxdb/pull/1909#discussion_r26430229","pull_request_url":"https://api.github.com/repos/influxdb/influxdb/pulls/1909","_links":{"self":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/comments/26430229"},"html":{"href":"https://github.com/influxdb/influxdb/pull/1909#discussion_r26430229"},"pull_request":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/1909"}}},"pull_request":{"url":"https://api.github.com/repos/influxdb/influxdb/pulls/1909","id":30903340,"html_url":"https://github.com/influxdb/influxdb/pull/1909","diff_url":"https://github.com/influxdb/influxdb/pull/1909.diff","patch_url":"https://github.com/influxdb/influxdb/pull/1909.patch","issue_url":"https://api.github.com/repos/influxdb/influxdb/issues/1909","number":1909,"state":"open","locked":false,"title":"make a dump command","user":{"login":"rothrock","id":1278843,"avatar_url":"https://avatars.githubusercontent.com/u/1278843?v=3","gravatar_id":"","url":"https://api.github.com/users/rothrock","html_url":"https://github.com/rothrock","followers_url":"https://api.github.com/users/rothrock/followers","following_url":"https://api.github.com/users/rothrock/following{/other_user}","gists_url":"https://api.github.com/users/rothrock/gists{/gist_id}","starred_url":"https://api.github.com/users/rothrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rothrock/subscriptions","organizations_url":"https://api.github.com/users/rothrock/orgs","repos_url":"https://api.github.com/users/rothrock/repos","events_url":"https://api.github.com/users/rothrock/events{/privacy}","received_events_url":"https://api.github.com/users/rothrock/received_events","type":"User","site_admin":false},"body":"added a 'dump' command to the cli.\r\nI still need to see about getting the name of the db and the retention policy.\r\nThe idea is that the dump command outputs something that can be played back as input.","created_at":"2015-03-10T23:33:20Z","updated_at":"2015-03-13T23:26:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68cdb52c145f28d1ef07c424d412b58978e7e002","assignee":{"login":"rothrock","id":1278843,"avatar_url":"https://avatars.githubusercontent.com/u/1278843?v=3","gravatar_id":"","url":"https://api.github.com/users/rothrock","html_url":"https://github.com/rothrock","followers_url":"https://api.github.com/users/rothrock/followers","following_url":"https://api.github.com/users/rothrock/following{/other_user}","gists_url":"https://api.github.com/users/rothrock/gists{/gist_id}","starred_url":"https://api.github.com/users/rothrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rothrock/subscriptions","organizations_url":"https://api.github.com/users/rothrock/orgs","repos_url":"https://api.github.com/users/rothrock/repos","events_url":"https://api.github.com/users/rothrock/events{/privacy}","received_events_url":"https://api.github.com/users/rothrock/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/influxdb/influxdb/pulls/1909/commits","review_comments_url":"https://api.github.com/repos/influxdb/influxdb/pulls/1909/comments","review_comment_url":"https://api.github.com/repos/influxdb/influxdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/1909/comments","statuses_url":"https://api.github.com/repos/influxdb/influxdb/statuses/a342a1e3fd6f85765dc8a535adb4f18a5f7a5cd2","head":{"label":"influxdb:export","ref":"export","sha":"a342a1e3fd6f85765dc8a535adb4f18a5f7a5cd2","user":{"login":"influxdb","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdb","html_url":"https://github.com/influxdb","followers_url":"https://api.github.com/users/influxdb/followers","following_url":"https://api.github.com/users/influxdb/following{/other_user}","gists_url":"https://api.github.com/users/influxdb/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdb/subscriptions","organizations_url":"https://api.github.com/users/influxdb/orgs","repos_url":"https://api.github.com/users/influxdb/repos","events_url":"https://api.github.com/users/influxdb/events{/privacy}","received_events_url":"https://api.github.com/users/influxdb/received_events","type":"Organization","site_admin":false},"repo":{"id":13124802,"name":"influxdb","full_name":"influxdb/influxdb","owner":{"login":"influxdb","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdb","html_url":"https://github.com/influxdb","followers_url":"https://api.github.com/users/influxdb/followers","following_url":"https://api.github.com/users/influxdb/following{/other_user}","gists_url":"https://api.github.com/users/influxdb/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdb/subscriptions","organizations_url":"https://api.github.com/users/influxdb/orgs","repos_url":"https://api.github.com/users/influxdb/repos","events_url":"https://api.github.com/users/influxdb/events{/privacy}","received_events_url":"https://api.github.com/users/influxdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influxdb/influxdb","description":"Scalable datastore for metrics, events, and real-time analytics","fork":false,"url":"https://api.github.com/repos/influxdb/influxdb","forks_url":"https://api.github.com/repos/influxdb/influxdb/forks","keys_url":"https://api.github.com/repos/influxdb/influxdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdb/influxdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdb/influxdb/teams","hooks_url":"https://api.github.com/repos/influxdb/influxdb/hooks","issue_events_url":"https://api.github.com/repos/influxdb/influxdb/issues/events{/number}","events_url":"https://api.github.com/repos/influxdb/influxdb/events","assignees_url":"https://api.github.com/repos/influxdb/influxdb/assignees{/user}","branches_url":"https://api.github.com/repos/influxdb/influxdb/branches{/branch}","tags_url":"https://api.github.com/repos/influxdb/influxdb/tags","blobs_url":"https://api.github.com/repos/influxdb/influxdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdb/influxdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdb/influxdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdb/influxdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdb/influxdb/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdb/influxdb/languages","stargazers_url":"https://api.github.com/repos/influxdb/influxdb/stargazers","contributors_url":"https://api.github.com/repos/influxdb/influxdb/contributors","subscribers_url":"https://api.github.com/repos/influxdb/influxdb/subscribers","subscription_url":"https://api.github.com/repos/influxdb/influxdb/subscription","commits_url":"https://api.github.com/repos/influxdb/influxdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdb/influxdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdb/influxdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdb/influxdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdb/influxdb/contents/{+path}","compare_url":"https://api.github.com/repos/influxdb/influxdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdb/influxdb/merges","archive_url":"https://api.github.com/repos/influxdb/influxdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdb/influxdb/downloads","issues_url":"https://api.github.com/repos/influxdb/influxdb/issues{/number}","pulls_url":"https://api.github.com/repos/influxdb/influxdb/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdb/influxdb/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdb/influxdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdb/influxdb/labels{/name}","releases_url":"https://api.github.com/repos/influxdb/influxdb/releases{/id}","created_at":"2013-09-26T14:31:10Z","updated_at":"2015-03-13T23:09:01Z","pushed_at":"2015-03-13T23:18:36Z","git_url":"git://github.com/influxdb/influxdb.git","ssh_url":"git@github.com:influxdb/influxdb.git","clone_url":"https://github.com/influxdb/influxdb.git","svn_url":"https://github.com/influxdb/influxdb","homepage":"http://influxdb.com","size":37972,"stargazers_count":4734,"watchers_count":4734,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":397,"mirror_url":null,"open_issues_count":339,"forks":397,"open_issues":339,"watchers":4734,"default_branch":"master"}},"base":{"label":"influxdb:master","ref":"master","sha":"310ec6043cfe5d00ca39c7d6a9b293734a51fde3","user":{"login":"influxdb","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdb","html_url":"https://github.com/influxdb","followers_url":"https://api.github.com/users/influxdb/followers","following_url":"https://api.github.com/users/influxdb/following{/other_user}","gists_url":"https://api.github.com/users/influxdb/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdb/subscriptions","organizations_url":"https://api.github.com/users/influxdb/orgs","repos_url":"https://api.github.com/users/influxdb/repos","events_url":"https://api.github.com/users/influxdb/events{/privacy}","received_events_url":"https://api.github.com/users/influxdb/received_events","type":"Organization","site_admin":false},"repo":{"id":13124802,"name":"influxdb","full_name":"influxdb/influxdb","owner":{"login":"influxdb","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdb","html_url":"https://github.com/influxdb","followers_url":"https://api.github.com/users/influxdb/followers","following_url":"https://api.github.com/users/influxdb/following{/other_user}","gists_url":"https://api.github.com/users/influxdb/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdb/subscriptions","organizations_url":"https://api.github.com/users/influxdb/orgs","repos_url":"https://api.github.com/users/influxdb/repos","events_url":"https://api.github.com/users/influxdb/events{/privacy}","received_events_url":"https://api.github.com/users/influxdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influxdb/influxdb","description":"Scalable datastore for metrics, events, and real-time analytics","fork":false,"url":"https://api.github.com/repos/influxdb/influxdb","forks_url":"https://api.github.com/repos/influxdb/influxdb/forks","keys_url":"https://api.github.com/repos/influxdb/influxdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdb/influxdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdb/influxdb/teams","hooks_url":"https://api.github.com/repos/influxdb/influxdb/hooks","issue_events_url":"https://api.github.com/repos/influxdb/influxdb/issues/events{/number}","events_url":"https://api.github.com/repos/influxdb/influxdb/events","assignees_url":"https://api.github.com/repos/influxdb/influxdb/assignees{/user}","branches_url":"https://api.github.com/repos/influxdb/influxdb/branches{/branch}","tags_url":"https://api.github.com/repos/influxdb/influxdb/tags","blobs_url":"https://api.github.com/repos/influxdb/influxdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdb/influxdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdb/influxdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdb/influxdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdb/influxdb/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdb/influxdb/languages","stargazers_url":"https://api.github.com/repos/influxdb/influxdb/stargazers","contributors_url":"https://api.github.com/repos/influxdb/influxdb/contributors","subscribers_url":"https://api.github.com/repos/influxdb/influxdb/subscribers","subscription_url":"https://api.github.com/repos/influxdb/influxdb/subscription","commits_url":"https://api.github.com/repos/influxdb/influxdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdb/influxdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdb/influxdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdb/influxdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdb/influxdb/contents/{+path}","compare_url":"https://api.github.com/repos/influxdb/influxdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdb/influxdb/merges","archive_url":"https://api.github.com/repos/influxdb/influxdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdb/influxdb/downloads","issues_url":"https://api.github.com/repos/influxdb/influxdb/issues{/number}","pulls_url":"https://api.github.com/repos/influxdb/influxdb/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdb/influxdb/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdb/influxdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdb/influxdb/labels{/name}","releases_url":"https://api.github.com/repos/influxdb/influxdb/releases{/id}","created_at":"2013-09-26T14:31:10Z","updated_at":"2015-03-13T23:09:01Z","pushed_at":"2015-03-13T23:18:36Z","git_url":"git://github.com/influxdb/influxdb.git","ssh_url":"git@github.com:influxdb/influxdb.git","clone_url":"https://github.com/influxdb/influxdb.git","svn_url":"https://github.com/influxdb/influxdb","homepage":"http://influxdb.com","size":37972,"stargazers_count":4734,"watchers_count":4734,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":397,"mirror_url":null,"open_issues_count":339,"forks":397,"open_issues":339,"watchers":4734,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/1909"},"html":{"href":"https://github.com/influxdb/influxdb/pull/1909"},"issue":{"href":"https://api.github.com/repos/influxdb/influxdb/issues/1909"},"comments":{"href":"https://api.github.com/repos/influxdb/influxdb/issues/1909/comments"},"review_comments":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/1909/comments"},"review_comment":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/1909/commits"},"statuses":{"href":"https://api.github.com/repos/influxdb/influxdb/statuses/a342a1e3fd6f85765dc8a535adb4f18a5f7a5cd2"}}}}