{"action":"created","comment":{"url":"https://api.github.com/repos/caskdata/cdap/pulls/comments/25121057","id":25121057,"diff_hunk":"@@ -17,17 +17,163 @@\n package co.cask.cdap.gateway.handlers;\n \n import co.cask.cdap.common.conf.Constants;\n+import co.cask.cdap.proto.Id;\n+import co.cask.common.http.HttpRequest;\n+import co.cask.common.http.HttpRequests;\n+import co.cask.common.http.HttpResponse;\n+import com.google.common.collect.Lists;\n+import com.google.gson.JsonArray;\n+import com.google.gson.JsonElement;\n+import com.google.gson.JsonParser;\n+import org.junit.Assert;\n+import org.junit.Test;\n \n import java.net.MalformedURLException;\n import java.net.URISyntaxException;\n import java.net.URL;\n+import java.util.List;\n+import java.util.concurrent.TimeUnit;\n \n /**\n  * Tests v3 stream endpoints with default namespace\n  */\n public class StreamHandlerTestV3 extends StreamHandlerTest {\n   @Override\n-  protected URL constructPath(String path) throws URISyntaxException, MalformedURLException {\n-    return getEndPoint(String.format(\"/v3/namespaces/%s/%s\", Constants.DEFAULT_NAMESPACE, path)).toURL();\n+  protected URL createURL(String path) throws URISyntaxException, MalformedURLException {\n+    return createURL(Constants.DEFAULT_NAMESPACE, path);\n   }\n+\n+  private URL createURL(String namespace, String path) throws URISyntaxException, MalformedURLException {\n+    return getEndPoint(String.format(\"/v3/namespaces/%s/%s\", namespace, path)).toURL();\n+  }\n+\n+  @Test\n+  public void testNamespacedStreamEvents() throws Exception {\n+    // Create two streams with the same name, in different namespaces.\n+    String streamName = \"testNamespacedMetrics\";\n+    Id.Stream streamId1 = Id.Stream.from(\"namespace1\", streamName);\n+    Id.Stream streamId2 = Id.Stream.from(\"namespace2\", streamName);\n+\n+    createStream(streamId1);\n+    createStream(streamId2);\n+\n+    List<String> eventsSentToStream1 = Lists.newArrayList();\n+    // Enqueue 10 entries to the stream in the first namespace\n+    for (int i = 0; i < 10; ++i) {\n+      String body = streamId1.getNamespaceId() + Integer.toString(i);\n+      sendEvent(streamId1, body);\n+      eventsSentToStream1.add(body);\n+    }\n+\n+    List<String> eventsSentToStream2 = Lists.newArrayList();\n+    // Enqueue only 5 entries to the stream in the second namespace, decrementing the value each time\n+    for (int i = 0; i > -5; --i) {\n+      String body = streamId1.getNamespaceId() + Integer.toString(i);\n+      sendEvent(streamId2, body);\n+      eventsSentToStream2.add(body);\n+    }\n+\n+    // Test that even though the stream names are the same, the events ingested into the individual streams\n+    // are exactly what are fetched from the individual streams.\n+    List<String> eventsFetchedFromStream1 = fetchEvents(streamId1);\n+    Assert.assertEquals(eventsSentToStream1, eventsFetchedFromStream1);\n+\n+    List<String> eventsFetchedFromStream2 = fetchEvents(streamId2);\n+    Assert.assertEquals(eventsSentToStream2, eventsFetchedFromStream2);\n+  }\n+\n+  @Test\n+  public void testNamespacedMetrics() throws Exception {\n+    // Create two streams with the same name, in different namespaces.\n+    String streamName = \"testNamespacedMetrics\";\n+    Id.Stream streamId1 = Id.Stream.from(\"namespace1\", streamName);\n+    Id.Stream streamId2 = Id.Stream.from(\"namespace2\", streamName);\n+\n+    createStream(streamId1);\n+    createStream(streamId2);\n+\n+    // Enqueue 10 entries to the stream in the first namespace\n+    for (int i = 0; i < 10; ++i) {\n+      sendEvent(streamId1, Integer.toString(i));\n+    }\n+\n+    // Enqueue only 2 entries to the stream in the second namespace\n+    for (int i = 0; i < 2; ++i) {\n+      sendEvent(streamId2, Integer.toString(i));\n+    }\n+\n+    // Check metrics to verify that the metric for events processed is specific to each stream\n+    checkEventsProcessed(streamId1, 10, 10);\n+    checkEventsProcessed(streamId2, 2, 10);\n+  }\n+\n+\n+  private void createStream(Id.Stream streamId) throws Exception {\n+    URL url = createURL(streamId.getNamespaceId(), \"streams/\" + streamId.getName());\n+    HttpRequest request = HttpRequest.put(url).build();\n+    HttpResponse response = HttpRequests.execute(request);\n+    Assert.assertEquals(200, response.getResponseCode());\n+  }\n+\n+  private void sendEvent(Id.Stream streamId, String body) throws Exception {\n+    URL url = createURL(streamId.getNamespaceId(), \"streams/\" + streamId.getName());\n+    HttpRequest request = HttpRequest.post(url).withBody(body).build();\n+    HttpResponse response = HttpRequests.execute(request);\n+    Assert.assertEquals(200, response.getResponseCode());\n+  }\n+\n+  private List<String> fetchEvents(Id.Stream streamId) throws Exception {\n+    URL url = createURL(streamId.getNamespaceId(), \"streams/\" + streamId.getName() + \"/events\");\n+    HttpRequest request = HttpRequest.get(url).build();\n+    HttpResponse response = HttpRequests.execute(request);\n+    Assert.assertEquals(200, response.getResponseCode());\n+\n+\n+    List<String> events = Lists.newArrayList();\n+    JsonArray jsonArray = new JsonParser().parse(response.getResponseBodyAsString()).getAsJsonArray();\n+    for (JsonElement jsonElement : jsonArray) {\n+      events.add(jsonElement.getAsJsonObject().get(\"body\").getAsString());\n+    }\n+    return events;\n+  }\n+  \n+  private void checkEventsProcessed(Id.Stream streamId, int expectedCount, int retries) throws Exception {\n+    for (int i = 0; i < retries; i++) {\n+      int numProcessed = getNumProcessed(streamId);\n+      if (numProcessed == expectedCount) {\n+        return;\n+      }\n+      TimeUnit.SECONDS.sleep(1);\n+    }\n+    Assert.assertEquals(expectedCount, getNumProcessed(streamId));\n+  }\n+\n+\n+  private int getNumProcessed(Id.Stream streamId) throws Exception {\n+    String path = String.format(\"/v3/metrics/query?metric=system.collect.events&context=ns.%s.str.%s\",\n+                                streamId.getNamespaceId(), streamId.getName());\n+    System.out.println(path);\n+    HttpRequest request = HttpRequest.post(getEndPoint(path).toURL()).build();\n+    HttpResponse response = HttpRequests.execute(request);\n+    Assert.assertEquals(200, response.getResponseCode());\n+    System.out.println(response.getResponseBodyAsString());\n+    return getNumEventsFromResponse(response.getResponseBodyAsString());\n+  }\n+\n+  private int getNumEventsFromResponse(String response) {\n+    // response format:\n+    // [{\"measureName\":\"system.collect.events\",\"tagValues\":{},\"timeValues\":[{\"timestamp\":0,\"value\":12}]}]\n+\n+    JsonElement jsonResponse = new JsonParser().parse(response);","path":"cdap-gateway/src/test/java/co/cask/cdap/gateway/handlers/StreamHandlerTestV3.java","position":null,"original_position":153,"commit_id":"289edc80f5236aca4ac3fb94c8f8d2c858be1c0f","original_commit_id":"ce3184d790eab0557fc0324110468ee96378b1d3","user":{"login":"anwar6953","id":2440977,"avatar_url":"https://avatars.githubusercontent.com/u/2440977?v=3","gravatar_id":"","url":"https://api.github.com/users/anwar6953","html_url":"https://github.com/anwar6953","followers_url":"https://api.github.com/users/anwar6953/followers","following_url":"https://api.github.com/users/anwar6953/following{/other_user}","gists_url":"https://api.github.com/users/anwar6953/gists{/gist_id}","starred_url":"https://api.github.com/users/anwar6953/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anwar6953/subscriptions","organizations_url":"https://api.github.com/users/anwar6953/orgs","repos_url":"https://api.github.com/users/anwar6953/repos","events_url":"https://api.github.com/users/anwar6953/events{/privacy}","received_events_url":"https://api.github.com/users/anwar6953/received_events","type":"User","site_admin":false},"body":"thanks for the advice","created_at":"2015-02-21T09:34:14Z","updated_at":"2015-02-21T09:34:14Z","html_url":"https://github.com/caskdata/cdap/pull/1346#discussion_r25121057","pull_request_url":"https://api.github.com/repos/caskdata/cdap/pulls/1346","_links":{"self":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/comments/25121057"},"html":{"href":"https://github.com/caskdata/cdap/pull/1346#discussion_r25121057"},"pull_request":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/1346"}}},"pull_request":{"url":"https://api.github.com/repos/caskdata/cdap/pulls/1346","id":29560060,"html_url":"https://github.com/caskdata/cdap/pull/1346","diff_url":"https://github.com/caskdata/cdap/pull/1346.diff","patch_url":"https://github.com/caskdata/cdap/pull/1346.patch","issue_url":"https://api.github.com/repos/caskdata/cdap/issues/1346","number":1346,"state":"open","locked":false,"title":"Feature/cdap 1367 namespaced streams metrics","user":{"login":"anwar6953","id":2440977,"avatar_url":"https://avatars.githubusercontent.com/u/2440977?v=3","gravatar_id":"","url":"https://api.github.com/users/anwar6953","html_url":"https://github.com/anwar6953","followers_url":"https://api.github.com/users/anwar6953/followers","following_url":"https://api.github.com/users/anwar6953/following{/other_user}","gists_url":"https://api.github.com/users/anwar6953/gists{/gist_id}","starred_url":"https://api.github.com/users/anwar6953/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anwar6953/subscriptions","organizations_url":"https://api.github.com/users/anwar6953/orgs","repos_url":"https://api.github.com/users/anwar6953/repos","events_url":"https://api.github.com/users/anwar6953/events{/privacy}","received_events_url":"https://api.github.com/users/anwar6953/received_events","type":"User","site_admin":false},"body":"This depends on (is branched off of) namespacing streams PR:\r\nhttps://github.com/caskdata/cdap/pull/1302\r\n\r\nOnly this commit is new for this PR( namespacing stream metrics): 5f96cde3bc6bafb021eb3f9855b9fa830dd3aa07\r\nTo see the diff of this PR: https://github.com/caskdata/cdap/compare/feature/CDAP-1314-namespaced-streams...feature/CDAP-1367-namespaced-streams-metrics\r\n\r\nBuild: http://builds.cask.co/browse/CDAP-DUT825-4","created_at":"2015-02-18T20:28:34Z","updated_at":"2015-02-21T09:34:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"160b6be8167cba6f50d332b4fe89f2cb1f2695db","assignee":null,"milestone":{"url":"https://api.github.com/repos/caskdata/cdap/milestones/3","labels_url":"https://api.github.com/repos/caskdata/cdap/milestones/3/labels","id":944584,"number":3,"title":"2.8.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":12,"closed_issues":62,"state":"open","created_at":"2015-01-21T01:15:14Z","updated_at":"2015-02-21T08:06:24Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/caskdata/cdap/pulls/1346/commits","review_comments_url":"https://api.github.com/repos/caskdata/cdap/pulls/1346/comments","review_comment_url":"https://api.github.com/repos/caskdata/cdap/pulls/comments/{number}","comments_url":"https://api.github.com/repos/caskdata/cdap/issues/1346/comments","statuses_url":"https://api.github.com/repos/caskdata/cdap/statuses/289edc80f5236aca4ac3fb94c8f8d2c858be1c0f","head":{"label":"caskdata:feature/CDAP-1367-namespaced-streams-metrics","ref":"feature/CDAP-1367-namespaced-streams-metrics","sha":"289edc80f5236aca4ac3fb94c8f8d2c858be1c0f","user":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"repo":{"id":22542759,"name":"cdap","full_name":"caskdata/cdap","owner":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/caskdata/cdap","description":"Cask Data Application Platform (CDAP)","fork":false,"url":"https://api.github.com/repos/caskdata/cdap","forks_url":"https://api.github.com/repos/caskdata/cdap/forks","keys_url":"https://api.github.com/repos/caskdata/cdap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caskdata/cdap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caskdata/cdap/teams","hooks_url":"https://api.github.com/repos/caskdata/cdap/hooks","issue_events_url":"https://api.github.com/repos/caskdata/cdap/issues/events{/number}","events_url":"https://api.github.com/repos/caskdata/cdap/events","assignees_url":"https://api.github.com/repos/caskdata/cdap/assignees{/user}","branches_url":"https://api.github.com/repos/caskdata/cdap/branches{/branch}","tags_url":"https://api.github.com/repos/caskdata/cdap/tags","blobs_url":"https://api.github.com/repos/caskdata/cdap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caskdata/cdap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caskdata/cdap/git/refs{/sha}","trees_url":"https://api.github.com/repos/caskdata/cdap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caskdata/cdap/statuses/{sha}","languages_url":"https://api.github.com/repos/caskdata/cdap/languages","stargazers_url":"https://api.github.com/repos/caskdata/cdap/stargazers","contributors_url":"https://api.github.com/repos/caskdata/cdap/contributors","subscribers_url":"https://api.github.com/repos/caskdata/cdap/subscribers","subscription_url":"https://api.github.com/repos/caskdata/cdap/subscription","commits_url":"https://api.github.com/repos/caskdata/cdap/commits{/sha}","git_commits_url":"https://api.github.com/repos/caskdata/cdap/git/commits{/sha}","comments_url":"https://api.github.com/repos/caskdata/cdap/comments{/number}","issue_comment_url":"https://api.github.com/repos/caskdata/cdap/issues/comments/{number}","contents_url":"https://api.github.com/repos/caskdata/cdap/contents/{+path}","compare_url":"https://api.github.com/repos/caskdata/cdap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caskdata/cdap/merges","archive_url":"https://api.github.com/repos/caskdata/cdap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caskdata/cdap/downloads","issues_url":"https://api.github.com/repos/caskdata/cdap/issues{/number}","pulls_url":"https://api.github.com/repos/caskdata/cdap/pulls{/number}","milestones_url":"https://api.github.com/repos/caskdata/cdap/milestones{/number}","notifications_url":"https://api.github.com/repos/caskdata/cdap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caskdata/cdap/labels{/name}","releases_url":"https://api.github.com/repos/caskdata/cdap/releases{/id}","created_at":"2014-08-02T09:00:10Z","updated_at":"2015-02-21T08:06:26Z","pushed_at":"2015-02-21T09:33:50Z","git_url":"git://github.com/caskdata/cdap.git","ssh_url":"git@github.com:caskdata/cdap.git","clone_url":"https://github.com/caskdata/cdap.git","svn_url":"https://github.com/caskdata/cdap","homepage":"http://cdap.io","size":782448,"stargazers_count":27,"watchers_count":27,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":9,"mirror_url":null,"open_issues_count":15,"forks":9,"open_issues":15,"watchers":27,"default_branch":"develop"}},"base":{"label":"caskdata:develop","ref":"develop","sha":"bf1de08f8189d1a161083d6dba4d95e4adf2bbb1","user":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"repo":{"id":22542759,"name":"cdap","full_name":"caskdata/cdap","owner":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/caskdata/cdap","description":"Cask Data Application Platform (CDAP)","fork":false,"url":"https://api.github.com/repos/caskdata/cdap","forks_url":"https://api.github.com/repos/caskdata/cdap/forks","keys_url":"https://api.github.com/repos/caskdata/cdap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caskdata/cdap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caskdata/cdap/teams","hooks_url":"https://api.github.com/repos/caskdata/cdap/hooks","issue_events_url":"https://api.github.com/repos/caskdata/cdap/issues/events{/number}","events_url":"https://api.github.com/repos/caskdata/cdap/events","assignees_url":"https://api.github.com/repos/caskdata/cdap/assignees{/user}","branches_url":"https://api.github.com/repos/caskdata/cdap/branches{/branch}","tags_url":"https://api.github.com/repos/caskdata/cdap/tags","blobs_url":"https://api.github.com/repos/caskdata/cdap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caskdata/cdap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caskdata/cdap/git/refs{/sha}","trees_url":"https://api.github.com/repos/caskdata/cdap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caskdata/cdap/statuses/{sha}","languages_url":"https://api.github.com/repos/caskdata/cdap/languages","stargazers_url":"https://api.github.com/repos/caskdata/cdap/stargazers","contributors_url":"https://api.github.com/repos/caskdata/cdap/contributors","subscribers_url":"https://api.github.com/repos/caskdata/cdap/subscribers","subscription_url":"https://api.github.com/repos/caskdata/cdap/subscription","commits_url":"https://api.github.com/repos/caskdata/cdap/commits{/sha}","git_commits_url":"https://api.github.com/repos/caskdata/cdap/git/commits{/sha}","comments_url":"https://api.github.com/repos/caskdata/cdap/comments{/number}","issue_comment_url":"https://api.github.com/repos/caskdata/cdap/issues/comments/{number}","contents_url":"https://api.github.com/repos/caskdata/cdap/contents/{+path}","compare_url":"https://api.github.com/repos/caskdata/cdap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caskdata/cdap/merges","archive_url":"https://api.github.com/repos/caskdata/cdap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caskdata/cdap/downloads","issues_url":"https://api.github.com/repos/caskdata/cdap/issues{/number}","pulls_url":"https://api.github.com/repos/caskdata/cdap/pulls{/number}","milestones_url":"https://api.github.com/repos/caskdata/cdap/milestones{/number}","notifications_url":"https://api.github.com/repos/caskdata/cdap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caskdata/cdap/labels{/name}","releases_url":"https://api.github.com/repos/caskdata/cdap/releases{/id}","created_at":"2014-08-02T09:00:10Z","updated_at":"2015-02-21T08:06:26Z","pushed_at":"2015-02-21T09:33:50Z","git_url":"git://github.com/caskdata/cdap.git","ssh_url":"git@github.com:caskdata/cdap.git","clone_url":"https://github.com/caskdata/cdap.git","svn_url":"https://github.com/caskdata/cdap","homepage":"http://cdap.io","size":782448,"stargazers_count":27,"watchers_count":27,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":9,"mirror_url":null,"open_issues_count":15,"forks":9,"open_issues":15,"watchers":27,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/1346"},"html":{"href":"https://github.com/caskdata/cdap/pull/1346"},"issue":{"href":"https://api.github.com/repos/caskdata/cdap/issues/1346"},"comments":{"href":"https://api.github.com/repos/caskdata/cdap/issues/1346/comments"},"review_comments":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/1346/comments"},"review_comment":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/1346/commits"},"statuses":{"href":"https://api.github.com/repos/caskdata/cdap/statuses/289edc80f5236aca4ac3fb94c8f8d2c858be1c0f"}}}}