{"action":"created","comment":{"url":"https://api.github.com/repos/apache/flink/pulls/comments/69913430","id":69913430,"diff_hunk":"@@ -0,0 +1,441 @@\n+---\n+title: \"Metrics\"\n+# Top-level navigation\n+top-nav-group: apis\n+top-nav-pos: 13\n+top-nav-title: \"Metrics\"\n+---\n+<!--\n+Licensed to the Apache Software Foundation (ASF) under one\n+or more contributor license agreements.  See the NOTICE file\n+distributed with this work for additional information\n+regarding copyright ownership.  The ASF licenses this file\n+to you under the Apache License, Version 2.0 (the\n+\"License\"); you may not use this file except in compliance\n+with the License.  You may obtain a copy of the License at\n+\n+  http://www.apache.org/licenses/LICENSE-2.0\n+\n+Unless required by applicable law or agreed to in writing,\n+software distributed under the License is distributed on an\n+\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+KIND, either express or implied.  See the License for the\n+specific language governing permissions and limitations\n+under the License.\n+-->\n+\n+Flink exposes a metric system that allows gathering and exposing metrics to external systems.\n+\n+* This will be replaced by the TOC\n+{:toc}\n+\n+## Registering metrics\n+\n+You can access the metric system from any user function that extends [RichFunction]({{ site.baseurl }}/apis/common/index.html#rich-functions) by calling `getRuntimeContext().getMetricGroup()`.\n+This method returns a `MetricGroup` object on which you can create and register new metrics.\n+\n+### Metric types\n+\n+Flink supports `Counters`, `Gauges` and `Histograms`.\n+\n+#### Counter\n+\n+A `Counter` is used to count something. The current value can be in- or decremented using `inc()/inc(long n)` or `dec()/dec(long n)`.\n+You can create and register a `Counter` by calling `counter(String name)` on a `MetricGroup`.\n+\n+{% highlight java %}\n+\n+public class MyMapper extends RichMapFunction<String, Integer> {\n+  private Counter counter;\n+\n+  @Override\n+  public void open(Configuration config) {\n+    this.counter = getRuntimeContext()\n+      .getMetricGroup()\n+      .counter(\"myCounter\");\n+  }\n+\n+  @public Integer map(String value) throws Exception {\n+    this.counter.inc();\n+  }\n+}\n+\n+{% endhighlight %}\n+\n+Alternatively you can also use your own `Counter` implementation:\n+\n+{% highlight java %}\n+\n+public class MyMapper extends RichMapFunction<String, Integer> {\n+  private Counter counter;\n+\n+  @Override\n+  public void open(Configuration config) {\n+    this.counter = getRuntimeContext()\n+      .getMetricGroup()\n+      .counter(\"myCustomCounter\", new CustomCounter());\n+  }\n+}\n+\n+{% endhighlight %}\n+\n+#### Gauge\n+\n+A `Gauge` provides a value of any type on demand. In order to use a `Gauge` you must first create a class that implements the `org.apache.flink.metrics.Gauge` interface.\n+There is no restriction for the type of the returned value.\n+You can register a gauge by calling `gauge(String name, Gauge gauge)` on a `MetricGroup`.\n+\n+{% highlight java %}\n+\n+public class MyMapper extends RichMapFunction<String, Integer> {\n+  private int valueToExpose;\n+\n+  @Override\n+  public void open(Configuration config) {\n+    getRuntimeContext()\n+      .getMetricGroup()\n+      .gauge(\"MyGauge\", new Gauge<Integer>() {\n+        @Override\n+        public Integer getValue() {\n+          return valueToExpose;\n+        }\n+      });\n+  }\n+}\n+\n+{% endhighlight %}\n+\n+Note that reporters will turn the exposed object into a `String`, which means that a meaningful `toString()` implementation is required.\n+\n+#### Histogram\n+\n+A `Histogram` measures the distribution of long values.\n+You can register one by calling `histogram(String name, Histogram histogram)` on a `MetricGroup`.\n+\n+{% highlight java %}\n+public class MyMapper extends RichMapFunction<Long, Integer> {\n+  private Histogram histogram;\n+\n+  @Override\n+  public void open(Configuration config) {\n+    this.histogram = getRuntimeContext()\n+      .getMetricGroup()\n+      .histogram(\"myHistogram\", new MyHistogram());\n+  }\n+\n+  @public Integer map(Long value) throws Exception {\n+    this.histogram.update(value);\n+  }\n+}\n+{% endhighlight %}\n+\n+Flink does not provide a default implementation for `Histogram`, but offers a {% gh_link flink-metrics/flink-metrics-dropwizard/src/main/java/org/apache/flink/dropwizard/metrics/DropwizardHistogramWrapper.java \"Wrapper\" %} that allows usage of Codahale/DropWizard histograms.\n+To use this wrapper add the following dependency in your `pom.xml`:\n+{% highlight xml %}\n+<dependency>\n+      <groupId>org.apache.flink</groupId>\n+      <artifactId>flink-metrics-dropwizard</artifactId>\n+      <version>{{site.version}}</version>\n+</dependency>\n+{% endhighlight %}\n+\n+You can then register a Codahale/DropWizard histogram like this:\n+\n+{% highlight java %}\n+public class MyMapper extends RichMapFunction<Long, Integer> {\n+  private Histogram histogram;\n+\n+  @Override\n+  public void open(Configuration config) {\n+    com.codahale.metrics.Histogram histogram =\n+      new com.codahale.metrics.Histogram(new SlidingWindowReservoir(500));\n+\n+    this.histogram = getRuntimeContext()\n+      .getMetricGroup()\n+      .histogram(\"myHistogram\", new DropWizardHistogramWrapper(histogram));\n+  }\n+}\n+{% endhighlight %}\n+\n+## Scope\n+\n+Every metric is assigned an identifier under which it will be reported that is based on 3 components: the user-provided name when registering the metric, an optional user-defined scope and a system-provided scope.\n+For example, if `A.B` is the sytem scope, `C.D` the user scope and `E` the name, then the identifier for the metric will be `A.B.C.D.E`.\n+\n+### User Scope\n+\n+You can define a user scope by calling either `MetricGroup#addGroup(String name)` or `MetricGroup#addGroup(int name)`.\n+\n+{% highlight java %}\n+\n+counter = getRuntimeContext()\n+  .getMetricGroup()\n+  .addGroup(\"MyMetrics\")\n+  .counter(\"myCounter\");\n+\n+{% endhighlight %}\n+\n+### System Scope\n+\n+The system scope contains context information about the metric, for example in which task it was registered or what job that task belongs to.\n+\n+Which context information should be included can be configured by setting the following keys in `conf/flink-conf.yaml`.\n+Each of these keys expect a format string that may contain constants (e.g. \"taskmanager\") and variables (e.g. \"&lt;task_id&gt;\") which will be replaced at runtime.\n+\n+- `metrics.scope.jm`\n+  - Default: &lt;host&gt;.jobmanager\n+  - Applied to all metrics that were scoped to a job manager.\n+- `metrics.scope.jm.job`\n+  - Default: &lt;host&gt;.jobmanager.&lt;job_name&gt;\n+  - Applied to all metrics that were scoped to a job manager and job.\n+- `metrics.scope.tm`\n+  - Default: &lt;host&gt;.taskmanager.&lt;tm_id&gt;\n+  - Applied to all metrics that were scoped to a task manager.\n+- `metrics.scope.tm.job`\n+  - Default: &lt;host&gt;.taskmanager.&lt;tm_id&gt;.&lt;job_name&gt;\n+  - Applied to all metrics that were scoped to a task manager and job.\n+- `metrics.scope.tm.task`\n+  - Default: &lt;host&gt;.taskmanager.&lt;tm_id&gt;.&lt;job_name&gt;.&lt;task_name&gt;.&lt;subtask_index&gt;\n+   - Applied to all metrics that were scoped to a task.\n+- `metrics.scope.tm.operator`\n+  - Default: &lt;host&gt;.taskmanager.&lt;tm_id&gt;.&lt;job_name&gt;.&lt;operator_name&gt;.&lt;subtask_index&gt;\n+  - Applied to all metrics that were scoped to an operator.\n+\n+There are no restrictions on the number or order of variables. Variables are case sensitive.\n+\n+The default scope for operator metrics will result in an identifier akin to `localhost.taskmanager.1234.MyJob.MyOperator.0.MyMetric`\n+\n+If you also want to include the task name but omit the task manager information you can specify the following format:\n+\n+`metrics.scope.tm.operator: <host>.<job_name>.<task_name>.<operator_name>.<subtask_index>`\n+\n+This could create the identifier `localhost.MyJob.MySource_->_MyOperator.MyOperator.0.MyMetric`.\n+\n+Note that for this format string an identifier clash can occur should the same job be run multiple times concurrently, which can lead to inconsistent metric data.\n+As such it is advised to either use format strings that provide a certain degree of uniqueness by including IDs (e.g &lt;job_id&gt;)\n+or by assigning unique names to jobs and operators.\n+\n+### List of all Variables\n+\n+- JobManager: &lt;host&gt;\n+- TaskManager: &lt;host&gt;, &lt;tm_id&gt;\n+- Job: &lt;job_id&gt;, &lt;job_name&gt;\n+- Task: &lt;task_id&gt;, &lt;task_name&gt;, &lt;task_attempt_id&gt;, &lt;task_attempt_num&gt;, &lt;subtask_index&gt;\n+- Operator: &lt;operator_name&gt;, &lt;subtask_index&gt;\n+\n+## Reporter\n+\n+Metrics can be exposed to an external system by configuring a reporter in `conf/flink-conf.yaml`.\n+\n+- `metrics.reporter.class`: The class of the reporter to use.\n+  - Example: org.apache.flink.metrics.reporter.JMXReporter\n+- `metrics.reporter.arguments`: A list of named parameters that are passed to the reporter.\n+  - Example: --host localhost --port 9010\n+- `metrics.reporter.interval`: The interval between reports.\n+  - Example: 10 SECONDS\n+\n+You can write your own `Reporter` by implementing the `org.apache.flink.metrics.reporter.MetricReporter` interface.\n+If the Reporter should send out reports regularly you have to implement the `Scheduled` interface as well.\n+\n+By default Flink uses JMX to expose metrics.\n+All non-JMXReporters are not part of the distribution and have to be added [manually]({{site.baseurl}}/apis/cluster_execution.html#linking-with-modules-not-contained-in-the-binary-distribution).\n+\n+The following sections list the supported reporters.\n+\n+### JMX\n+\n+The port for JMX can be configured by setting the `metrics.jmx.port` key. This parameter expects either a single port\n+or a port range, with the default being 9010-9025. The used port is shown in the relevant job or task manager log.\n+\n+### Ganglia (org.apache.flink.metrics.ganglia.GangliaReporter)\n+Dependency:\n+{% highlight xml %}\n+<dependency>\n+      <groupId>org.apache.flink</groupId>\n+      <artifactId>flink-metrics-ganglia</artifactId>\n+      <version>{{site.version}}</version>\n+</dependency>\n+{% endhighlight %}\n+\n+Parameters:\n+\n+- `host` - the ganglia server host\n+- `port` - the ganglia server port\n+- `tmax` - soft limit for how long an old metric should be retained\n+- `dmax` - hard limit for how long an old metric should be retained\n+- `ttl` - time-to-live for transmitted UDP packets\n+- `addressingMode` - UDP addressing mode to use (UNICAST/MULTICAST)\n+\n+### Graphite (org.apache.flink.metrics.graphite.GraphiteReporter)\n+Dependency:\n+{% highlight xml %}\n+<dependency>\n+      <groupId>org.apache.flink</groupId>\n+      <artifactId>flink-metrics-graphite</artifactId>\n+      <version>{{site.version}}</version>\n+</dependency>","path":"docs/apis/metrics.md","position":276,"original_position":276,"commit_id":"e4f2c32c1a6adbed86511deb9096a16a69eda44d","original_commit_id":"e4f2c32c1a6adbed86511deb9096a16a69eda44d","user":{"login":"tillrohrmann","id":5756858,"avatar_url":"https://avatars.githubusercontent.com/u/5756858?v=3","gravatar_id":"","url":"https://api.github.com/users/tillrohrmann","html_url":"https://github.com/tillrohrmann","followers_url":"https://api.github.com/users/tillrohrmann/followers","following_url":"https://api.github.com/users/tillrohrmann/following{/other_user}","gists_url":"https://api.github.com/users/tillrohrmann/gists{/gist_id}","starred_url":"https://api.github.com/users/tillrohrmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tillrohrmann/subscriptions","organizations_url":"https://api.github.com/users/tillrohrmann/orgs","repos_url":"https://api.github.com/users/tillrohrmann/repos","events_url":"https://api.github.com/users/tillrohrmann/events{/privacy}","received_events_url":"https://api.github.com/users/tillrohrmann/received_events","type":"User","site_admin":false},"body":"The same probably applies to the `GangliaReporter`.","created_at":"2016-07-07T14:11:39Z","updated_at":"2016-07-07T14:11:39Z","html_url":"https://github.com/apache/flink/pull/2158#discussion_r69913430","pull_request_url":"https://api.github.com/repos/apache/flink/pulls/2158","_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/comments/69913430"},"html":{"href":"https://github.com/apache/flink/pull/2158#discussion_r69913430"},"pull_request":{"href":"https://api.github.com/repos/apache/flink/pulls/2158"}}},"pull_request":{"url":"https://api.github.com/repos/apache/flink/pulls/2158","id":75091412,"html_url":"https://github.com/apache/flink/pull/2158","diff_url":"https://github.com/apache/flink/pull/2158.diff","patch_url":"https://github.com/apache/flink/pull/2158.patch","issue_url":"https://api.github.com/repos/apache/flink/issues/2158","number":2158,"state":"open","locked":false,"title":"[FLINK-4116] Metrics documentation","user":{"login":"zentol","id":5725237,"avatar_url":"https://avatars.githubusercontent.com/u/5725237?v=3","gravatar_id":"","url":"https://api.github.com/users/zentol","html_url":"https://github.com/zentol","followers_url":"https://api.github.com/users/zentol/followers","following_url":"https://api.github.com/users/zentol/following{/other_user}","gists_url":"https://api.github.com/users/zentol/gists{/gist_id}","starred_url":"https://api.github.com/users/zentol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zentol/subscriptions","organizations_url":"https://api.github.com/users/zentol/orgs","repos_url":"https://api.github.com/users/zentol/repos","events_url":"https://api.github.com/users/zentol/events{/privacy}","received_events_url":"https://api.github.com/users/zentol/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-24T10:02:32Z","updated_at":"2016-07-07T14:11:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4627e7f6044368ad8b54f3942a5919c5b6fe0de","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/flink/pulls/2158/commits","review_comments_url":"https://api.github.com/repos/apache/flink/pulls/2158/comments","review_comment_url":"https://api.github.com/repos/apache/flink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/flink/issues/2158/comments","statuses_url":"https://api.github.com/repos/apache/flink/statuses/e4f2c32c1a6adbed86511deb9096a16a69eda44d","head":{"label":"zentol:metrics_docs","ref":"metrics_docs","sha":"e4f2c32c1a6adbed86511deb9096a16a69eda44d","user":{"login":"zentol","id":5725237,"avatar_url":"https://avatars.githubusercontent.com/u/5725237?v=3","gravatar_id":"","url":"https://api.github.com/users/zentol","html_url":"https://github.com/zentol","followers_url":"https://api.github.com/users/zentol/followers","following_url":"https://api.github.com/users/zentol/following{/other_user}","gists_url":"https://api.github.com/users/zentol/gists{/gist_id}","starred_url":"https://api.github.com/users/zentol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zentol/subscriptions","organizations_url":"https://api.github.com/users/zentol/orgs","repos_url":"https://api.github.com/users/zentol/repos","events_url":"https://api.github.com/users/zentol/events{/privacy}","received_events_url":"https://api.github.com/users/zentol/received_events","type":"User","site_admin":false},"repo":{"id":20647396,"name":"flink","full_name":"zentol/flink","owner":{"login":"zentol","id":5725237,"avatar_url":"https://avatars.githubusercontent.com/u/5725237?v=3","gravatar_id":"","url":"https://api.github.com/users/zentol","html_url":"https://github.com/zentol","followers_url":"https://api.github.com/users/zentol/followers","following_url":"https://api.github.com/users/zentol/following{/other_user}","gists_url":"https://api.github.com/users/zentol/gists{/gist_id}","starred_url":"https://api.github.com/users/zentol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zentol/subscriptions","organizations_url":"https://api.github.com/users/zentol/orgs","repos_url":"https://api.github.com/users/zentol/repos","events_url":"https://api.github.com/users/zentol/events{/privacy}","received_events_url":"https://api.github.com/users/zentol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zentol/flink","description":"Mirror of Apache Flink","fork":true,"url":"https://api.github.com/repos/zentol/flink","forks_url":"https://api.github.com/repos/zentol/flink/forks","keys_url":"https://api.github.com/repos/zentol/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zentol/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zentol/flink/teams","hooks_url":"https://api.github.com/repos/zentol/flink/hooks","issue_events_url":"https://api.github.com/repos/zentol/flink/issues/events{/number}","events_url":"https://api.github.com/repos/zentol/flink/events","assignees_url":"https://api.github.com/repos/zentol/flink/assignees{/user}","branches_url":"https://api.github.com/repos/zentol/flink/branches{/branch}","tags_url":"https://api.github.com/repos/zentol/flink/tags","blobs_url":"https://api.github.com/repos/zentol/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zentol/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zentol/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/zentol/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zentol/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/zentol/flink/languages","stargazers_url":"https://api.github.com/repos/zentol/flink/stargazers","contributors_url":"https://api.github.com/repos/zentol/flink/contributors","subscribers_url":"https://api.github.com/repos/zentol/flink/subscribers","subscription_url":"https://api.github.com/repos/zentol/flink/subscription","commits_url":"https://api.github.com/repos/zentol/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/zentol/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/zentol/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/zentol/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/zentol/flink/contents/{+path}","compare_url":"https://api.github.com/repos/zentol/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zentol/flink/merges","archive_url":"https://api.github.com/repos/zentol/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zentol/flink/downloads","issues_url":"https://api.github.com/repos/zentol/flink/issues{/number}","pulls_url":"https://api.github.com/repos/zentol/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/zentol/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/zentol/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zentol/flink/labels{/name}","releases_url":"https://api.github.com/repos/zentol/flink/releases{/id}","deployments_url":"https://api.github.com/repos/zentol/flink/deployments","created_at":"2014-06-09T13:27:33Z","updated_at":"2016-01-19T13:55:47Z","pushed_at":"2016-07-06T12:16:29Z","git_url":"git://github.com/zentol/flink.git","ssh_url":"git@github.com:zentol/flink.git","clone_url":"https://github.com/zentol/flink.git","svn_url":"https://github.com/zentol/flink","homepage":null,"size":91236,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"apache:master","ref":"master","sha":"647b4c57781ed33467cd0946a34d63be737d66e8","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":20587599,"name":"flink","full_name":"apache/flink","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/flink","description":"Mirror of Apache Flink","fork":false,"url":"https://api.github.com/repos/apache/flink","forks_url":"https://api.github.com/repos/apache/flink/forks","keys_url":"https://api.github.com/repos/apache/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/flink/teams","hooks_url":"https://api.github.com/repos/apache/flink/hooks","issue_events_url":"https://api.github.com/repos/apache/flink/issues/events{/number}","events_url":"https://api.github.com/repos/apache/flink/events","assignees_url":"https://api.github.com/repos/apache/flink/assignees{/user}","branches_url":"https://api.github.com/repos/apache/flink/branches{/branch}","tags_url":"https://api.github.com/repos/apache/flink/tags","blobs_url":"https://api.github.com/repos/apache/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/flink/languages","stargazers_url":"https://api.github.com/repos/apache/flink/stargazers","contributors_url":"https://api.github.com/repos/apache/flink/contributors","subscribers_url":"https://api.github.com/repos/apache/flink/subscribers","subscription_url":"https://api.github.com/repos/apache/flink/subscription","commits_url":"https://api.github.com/repos/apache/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/flink/contents/{+path}","compare_url":"https://api.github.com/repos/apache/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/flink/merges","archive_url":"https://api.github.com/repos/apache/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/flink/downloads","issues_url":"https://api.github.com/repos/apache/flink/issues{/number}","pulls_url":"https://api.github.com/repos/apache/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/flink/labels{/name}","releases_url":"https://api.github.com/repos/apache/flink/releases{/id}","deployments_url":"https://api.github.com/repos/apache/flink/deployments","created_at":"2014-06-07T07:00:10Z","updated_at":"2016-07-07T13:34:04Z","pushed_at":"2016-07-07T13:39:52Z","git_url":"git://github.com/apache/flink.git","ssh_url":"git@github.com:apache/flink.git","clone_url":"https://github.com/apache/flink.git","svn_url":"https://github.com/apache/flink","homepage":null,"size":121588,"stargazers_count":1410,"watchers_count":1410,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":914,"mirror_url":"git://git.apache.org/flink.git","open_issues_count":111,"forks":914,"open_issues":111,"watchers":1410,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/2158"},"html":{"href":"https://github.com/apache/flink/pull/2158"},"issue":{"href":"https://api.github.com/repos/apache/flink/issues/2158"},"comments":{"href":"https://api.github.com/repos/apache/flink/issues/2158/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/flink/pulls/2158/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/flink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/flink/pulls/2158/commits"},"statuses":{"href":"https://api.github.com/repos/apache/flink/statuses/e4f2c32c1a6adbed86511deb9096a16a69eda44d"}}}}
{"actor":{"display_login":"tillrohrmann"}}