{"action":"created","issue":{"url":"https://api.github.com/repos/caskdata/cdap/issues/2787","labels_url":"https://api.github.com/repos/caskdata/cdap/issues/2787/labels{/name}","comments_url":"https://api.github.com/repos/caskdata/cdap/issues/2787/comments","events_url":"https://api.github.com/repos/caskdata/cdap/issues/2787/events","html_url":"https://github.com/caskdata/cdap/pull/2787","id":82094806,"number":2787,"title":"CDAP-2466: CLI for metrics search and query","user":{"login":"jwang47","id":1084704,"avatar_url":"https://avatars.githubusercontent.com/u/1084704?v=3","gravatar_id":"","url":"https://api.github.com/users/jwang47","html_url":"https://github.com/jwang47","followers_url":"https://api.github.com/users/jwang47/followers","following_url":"https://api.github.com/users/jwang47/following{/other_user}","gists_url":"https://api.github.com/users/jwang47/gists{/gist_id}","starred_url":"https://api.github.com/users/jwang47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwang47/subscriptions","organizations_url":"https://api.github.com/users/jwang47/orgs","repos_url":"https://api.github.com/users/jwang47/repos","events_url":"https://api.github.com/users/jwang47/events{/privacy}","received_events_url":"https://api.github.com/users/jwang47/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/caskdata/cdap/labels/3.1","name":"3.1","color":"14d940"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/caskdata/cdap/milestones/6","html_url":"https://github.com/caskdata/cdap/milestones/3.1.0","labels_url":"https://api.github.com/repos/caskdata/cdap/milestones/6/labels","id":1099347,"number":6,"title":"3.1.0","description":null,"creator":{"login":"jwang47","id":1084704,"avatar_url":"https://avatars.githubusercontent.com/u/1084704?v=3","gravatar_id":"","url":"https://api.github.com/users/jwang47","html_url":"https://github.com/jwang47","followers_url":"https://api.github.com/users/jwang47/followers","following_url":"https://api.github.com/users/jwang47/following{/other_user}","gists_url":"https://api.github.com/users/jwang47/gists{/gist_id}","starred_url":"https://api.github.com/users/jwang47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwang47/subscriptions","organizations_url":"https://api.github.com/users/jwang47/orgs","repos_url":"https://api.github.com/users/jwang47/repos","events_url":"https://api.github.com/users/jwang47/events{/privacy}","received_events_url":"https://api.github.com/users/jwang47/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":33,"state":"open","created_at":"2015-05-06T23:17:15Z","updated_at":"2015-06-05T22:58:10Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-05-28T19:41:31Z","updated_at":"2015-06-05T23:24:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/caskdata/cdap/pulls/2787","html_url":"https://github.com/caskdata/cdap/pull/2787","diff_url":"https://github.com/caskdata/cdap/pull/2787.diff","patch_url":"https://github.com/caskdata/cdap/pull/2787.patch"},"body":"https://issues.cask.co/browse/CDAP-2466\r\nhttp://builds.cask.co/browse/CDAP-DUT1923-4\r\n\r\n```\r\ncdap (http://localhost:10000/default)> search metric tags \"namespace=default\"\r\napp=CountRandom\r\napp=HelloWorld\r\napp=Netlens\r\napp=PurchaseHistory\r\napp=TwitterSentiment\r\napp=Wise\r\napp=WordCount\r\napp=etlBatch\r\ncomponent=gateway\r\ndataset=TimeSeriesTable\r\ndataset=TotalCounts\r\ndataset=anomalies\r\ndataset=anomalyCounters\r\ndataset=bounceCountStore\r\ndataset=cloudera\r\ndataset=converted_stream\r\ndataset=counters\r\ndataset=frequentCustomers\r\ndataset=history\r\ndataset=pageViewStore\r\ndataset=purchases\r\ndataset=randomTable\r\ndataset=system.queue\r\ndataset=topN\r\ndataset=trafficCounters\r\ndataset=uniqueCount\r\ndataset=uniqueCounters\r\ndataset=userProfiles\r\ndataset=whom\r\ndataset=wordAssocs\r\ndataset=wordCounts\r\ndataset=wordStats\r\nstream=boo\r\nstream=cloudwick\r\nstream=foo\r\nstream=intuit\r\nstream=logEventStream\r\nstream=logs\r\nstream=mark\r\nstream=myStream\r\nstream=nithin\r\nstream=purchaseStream\r\nstream=searslog\r\nstream=test\r\nstream=who\r\nstream=wordStream\r\nstream=xyz\r\n\r\ncdap (http://localhost:10000/default)> search metric tags \"namespace=default stream=test\"\r\n\r\ncdap (http://localhost:10000/default)> search metric names \"namespace=default stream=test\"\r\nsystem.collect.bytes\r\nsystem.collect.events\r\n\r\ncdap (http://localhost:10000/default)> get metric value system.collect.events \"namespace=default stream=test\" start now-60m end now\r\nStart time: 1432838322\r\nEnd time: 1432841922\r\n\r\nSeries: system.collect.events\r\n+====================+\r\n| timestamp  | value |\r\n+====================+\r\n| 1432841894 | 1     |\r\n| 1432841901 | 1     |\r\n| 1432841916 | 3     |\r\n| 1432841917 | 4     |\r\n| 1432841918 | 3     |\r\n| 1432841919 | 1     |\r\n| 1432841920 | 1     |\r\n+====================+\r\n\r\ncdap (http://localhost:10000/default)> get metric value system.collect.events \"namespace=default stream=test\"\r\nStart time: 0\r\nEnd time: 1432841934\r\n\r\nSeries: system.collect.events\r\n+===================+\r\n| timestamp | value |\r\n+===================+\r\n| 0         | 10014 |\r\n+===================+\r\n```"},"comment":{"url":"https://api.github.com/repos/caskdata/cdap/issues/comments/109480414","html_url":"https://github.com/caskdata/cdap/pull/2787#issuecomment-109480414","issue_url":"https://api.github.com/repos/caskdata/cdap/issues/2787","id":109480414,"user":{"login":"abaranau","id":434133,"avatar_url":"https://avatars.githubusercontent.com/u/434133?v=3","gravatar_id":"","url":"https://api.github.com/users/abaranau","html_url":"https://github.com/abaranau","followers_url":"https://api.github.com/users/abaranau/followers","following_url":"https://api.github.com/users/abaranau/following{/other_user}","gists_url":"https://api.github.com/users/abaranau/gists{/gist_id}","starred_url":"https://api.github.com/users/abaranau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abaranau/subscriptions","organizations_url":"https://api.github.com/users/abaranau/orgs","repos_url":"https://api.github.com/users/abaranau/repos","events_url":"https://api.github.com/users/abaranau/events{/privacy}","received_events_url":"https://api.github.com/users/abaranau/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T23:24:19Z","updated_at":"2015-06-05T23:24:19Z","body":"Other than above, the format looks fine"}}