{"action":"opened","number":643,"pull_request":{"url":"https://api.github.com/repos/rackerlabs/blueflood/pulls/643","id":61671218,"html_url":"https://github.com/rackerlabs/blueflood/pull/643","diff_url":"https://github.com/rackerlabs/blueflood/pull/643.diff","patch_url":"https://github.com/rackerlabs/blueflood/pull/643.patch","issue_url":"https://api.github.com/repos/rackerlabs/blueflood/issues/643","number":643,"state":"open","locked":false,"title":"New api /metric_name/search","user":{"login":"ChandraAddala","id":1525859,"avatar_url":"https://avatars.githubusercontent.com/u/1525859?v=3","gravatar_id":"","url":"https://api.github.com/users/ChandraAddala","html_url":"https://github.com/ChandraAddala","followers_url":"https://api.github.com/users/ChandraAddala/followers","following_url":"https://api.github.com/users/ChandraAddala/following{/other_user}","gists_url":"https://api.github.com/users/ChandraAddala/gists{/gist_id}","starred_url":"https://api.github.com/users/ChandraAddala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChandraAddala/subscriptions","organizations_url":"https://api.github.com/users/ChandraAddala/orgs","repos_url":"https://api.github.com/users/ChandraAddala/repos","events_url":"https://api.github.com/users/ChandraAddala/events{/privacy}","received_events_url":"https://api.github.com/users/ChandraAddala/received_events","type":"User","site_admin":false},"body":"I had made changes to API as documented in the wiki https://one.rackspace.com/display/cloudmetrics/Blueflood+finder+performance+issues#Bluefloodfinderperformanceissues-APIdesign(final)\r\n\r\n     for metric names: foo.bar.xxx,\r\n                       foo.bar.baz.qux,\r\n                       foo.bar with enum values [one, two]\r\n     \r\n     for query=foo.bar.*, returns the below list of metric names\r\n     \r\n     {\"foo.bar.xxx\", true}\r\n     {\"foo.bar.baz\", false} \r\n     {\"foo.bar.one\", true}   <- From enum metric foo.bar.baz\r\n     {\"foo.bar.two\", true}   <- From enum metric foo.bar.baz\r\n\r\nTo produce these results, for query = foo.bar.\\*, we query ES to get the below metric indexes.\r\n1) Previous level(foo.bar): If there are complete metrics at this level, \".\\*\" in the query could be for an enum value.\r\n2) Current level(foo.bar.\\*): If there are complete metrics at this level, is_leaf would be false if it is an enum metric.\r\n3) Next level(foo.bar.\\*.\\*). To get the next level of token and also to figure out if it has subsequent next level.\r\n","created_at":"2016-03-04T06:08:34Z","updated_at":"2016-03-04T06:08:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rackerlabs/blueflood/pulls/643/commits","review_comments_url":"https://api.github.com/repos/rackerlabs/blueflood/pulls/643/comments","review_comment_url":"https://api.github.com/repos/rackerlabs/blueflood/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rackerlabs/blueflood/issues/643/comments","statuses_url":"https://api.github.com/repos/rackerlabs/blueflood/statuses/6d5287df4e911599011c42ba15d2f4a18dc86858","head":{"label":"ChandraAddala:new-api-next-token","ref":"new-api-next-token","sha":"6d5287df4e911599011c42ba15d2f4a18dc86858","user":{"login":"ChandraAddala","id":1525859,"avatar_url":"https://avatars.githubusercontent.com/u/1525859?v=3","gravatar_id":"","url":"https://api.github.com/users/ChandraAddala","html_url":"https://github.com/ChandraAddala","followers_url":"https://api.github.com/users/ChandraAddala/followers","following_url":"https://api.github.com/users/ChandraAddala/following{/other_user}","gists_url":"https://api.github.com/users/ChandraAddala/gists{/gist_id}","starred_url":"https://api.github.com/users/ChandraAddala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChandraAddala/subscriptions","organizations_url":"https://api.github.com/users/ChandraAddala/orgs","repos_url":"https://api.github.com/users/ChandraAddala/repos","events_url":"https://api.github.com/users/ChandraAddala/events{/privacy}","received_events_url":"https://api.github.com/users/ChandraAddala/received_events","type":"User","site_admin":false},"repo":{"id":45928272,"name":"blueflood","full_name":"ChandraAddala/blueflood","owner":{"login":"ChandraAddala","id":1525859,"avatar_url":"https://avatars.githubusercontent.com/u/1525859?v=3","gravatar_id":"","url":"https://api.github.com/users/ChandraAddala","html_url":"https://github.com/ChandraAddala","followers_url":"https://api.github.com/users/ChandraAddala/followers","following_url":"https://api.github.com/users/ChandraAddala/following{/other_user}","gists_url":"https://api.github.com/users/ChandraAddala/gists{/gist_id}","starred_url":"https://api.github.com/users/ChandraAddala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChandraAddala/subscriptions","organizations_url":"https://api.github.com/users/ChandraAddala/orgs","repos_url":"https://api.github.com/users/ChandraAddala/repos","events_url":"https://api.github.com/users/ChandraAddala/events{/privacy}","received_events_url":"https://api.github.com/users/ChandraAddala/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ChandraAddala/blueflood","description":"A distributed system designed to ingest and process time series data","fork":true,"url":"https://api.github.com/repos/ChandraAddala/blueflood","forks_url":"https://api.github.com/repos/ChandraAddala/blueflood/forks","keys_url":"https://api.github.com/repos/ChandraAddala/blueflood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChandraAddala/blueflood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChandraAddala/blueflood/teams","hooks_url":"https://api.github.com/repos/ChandraAddala/blueflood/hooks","issue_events_url":"https://api.github.com/repos/ChandraAddala/blueflood/issues/events{/number}","events_url":"https://api.github.com/repos/ChandraAddala/blueflood/events","assignees_url":"https://api.github.com/repos/ChandraAddala/blueflood/assignees{/user}","branches_url":"https://api.github.com/repos/ChandraAddala/blueflood/branches{/branch}","tags_url":"https://api.github.com/repos/ChandraAddala/blueflood/tags","blobs_url":"https://api.github.com/repos/ChandraAddala/blueflood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChandraAddala/blueflood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChandraAddala/blueflood/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChandraAddala/blueflood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChandraAddala/blueflood/statuses/{sha}","languages_url":"https://api.github.com/repos/ChandraAddala/blueflood/languages","stargazers_url":"https://api.github.com/repos/ChandraAddala/blueflood/stargazers","contributors_url":"https://api.github.com/repos/ChandraAddala/blueflood/contributors","subscribers_url":"https://api.github.com/repos/ChandraAddala/blueflood/subscribers","subscription_url":"https://api.github.com/repos/ChandraAddala/blueflood/subscription","commits_url":"https://api.github.com/repos/ChandraAddala/blueflood/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChandraAddala/blueflood/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChandraAddala/blueflood/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChandraAddala/blueflood/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChandraAddala/blueflood/contents/{+path}","compare_url":"https://api.github.com/repos/ChandraAddala/blueflood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChandraAddala/blueflood/merges","archive_url":"https://api.github.com/repos/ChandraAddala/blueflood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChandraAddala/blueflood/downloads","issues_url":"https://api.github.com/repos/ChandraAddala/blueflood/issues{/number}","pulls_url":"https://api.github.com/repos/ChandraAddala/blueflood/pulls{/number}","milestones_url":"https://api.github.com/repos/ChandraAddala/blueflood/milestones{/number}","notifications_url":"https://api.github.com/repos/ChandraAddala/blueflood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChandraAddala/blueflood/labels{/name}","releases_url":"https://api.github.com/repos/ChandraAddala/blueflood/releases{/id}","deployments_url":"https://api.github.com/repos/ChandraAddala/blueflood/deployments","created_at":"2015-11-10T17:25:47Z","updated_at":"2016-02-03T15:45:28Z","pushed_at":"2016-03-04T06:04:38Z","git_url":"git://github.com/ChandraAddala/blueflood.git","ssh_url":"git@github.com:ChandraAddala/blueflood.git","clone_url":"https://github.com/ChandraAddala/blueflood.git","svn_url":"https://github.com/ChandraAddala/blueflood","homepage":"http://www.blueflood.io","size":9190,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rackerlabs:master","ref":"master","sha":"b49c0e85e720747e557ad2b5d123a0a369053297","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":10081109,"name":"blueflood","full_name":"rackerlabs/blueflood","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/blueflood","description":"A distributed system designed to ingest and process time series data","fork":false,"url":"https://api.github.com/repos/rackerlabs/blueflood","forks_url":"https://api.github.com/repos/rackerlabs/blueflood/forks","keys_url":"https://api.github.com/repos/rackerlabs/blueflood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/blueflood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/blueflood/teams","hooks_url":"https://api.github.com/repos/rackerlabs/blueflood/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/blueflood/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/blueflood/events","assignees_url":"https://api.github.com/repos/rackerlabs/blueflood/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/blueflood/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/blueflood/tags","blobs_url":"https://api.github.com/repos/rackerlabs/blueflood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/blueflood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/blueflood/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/blueflood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/blueflood/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/blueflood/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/blueflood/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/blueflood/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/blueflood/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/blueflood/subscription","commits_url":"https://api.github.com/repos/rackerlabs/blueflood/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/blueflood/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/blueflood/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/blueflood/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackerlabs/blueflood/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/blueflood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/blueflood/merges","archive_url":"https://api.github.com/repos/rackerlabs/blueflood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/blueflood/downloads","issues_url":"https://api.github.com/repos/rackerlabs/blueflood/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/blueflood/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/blueflood/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/blueflood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/blueflood/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/blueflood/releases{/id}","deployments_url":"https://api.github.com/repos/rackerlabs/blueflood/deployments","created_at":"2013-05-15T14:50:39Z","updated_at":"2016-03-03T00:13:27Z","pushed_at":"2016-03-03T20:34:57Z","git_url":"git://github.com/rackerlabs/blueflood.git","ssh_url":"git@github.com:rackerlabs/blueflood.git","clone_url":"https://github.com/rackerlabs/blueflood.git","svn_url":"https://github.com/rackerlabs/blueflood","homepage":"http://www.blueflood.io","size":12413,"stargazers_count":408,"watchers_count":408,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":56,"mirror_url":null,"open_issues_count":31,"forks":56,"open_issues":31,"watchers":408,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/blueflood/pulls/643"},"html":{"href":"https://github.com/rackerlabs/blueflood/pull/643"},"issue":{"href":"https://api.github.com/repos/rackerlabs/blueflood/issues/643"},"comments":{"href":"https://api.github.com/repos/rackerlabs/blueflood/issues/643/comments"},"review_comments":{"href":"https://api.github.com/repos/rackerlabs/blueflood/pulls/643/comments"},"review_comment":{"href":"https://api.github.com/repos/rackerlabs/blueflood/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rackerlabs/blueflood/pulls/643/commits"},"statuses":{"href":"https://api.github.com/repos/rackerlabs/blueflood/statuses/6d5287df4e911599011c42ba15d2f4a18dc86858"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":7,"additions":778,"deletions":597,"changed_files":16}}