You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by st...@apache.org on 2014/11/26 16:36:59 UTC

[02/10] incubator-slider git commit: SLIDER-319 provide link to JSON web view of metrics

SLIDER-319 provide link to JSON web view of metrics


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/49db62c3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/49db62c3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/49db62c3

Branch: refs/heads/develop
Commit: 49db62c3120de51a81b45f6aba322775543407bb
Parents: 6507b1b
Author: Steve Loughran <st...@apache.org>
Authored: Wed Nov 26 12:37:30 2014 +0000
Committer: Steve Loughran <st...@apache.org>
Committed: Wed Nov 26 12:37:30 2014 +0000

----------------------------------------------------------------------
 .../java/org/apache/slider/server/appmaster/web/rest/RestPaths.java | 1 +
 .../java/org/apache/slider/server/appmaster/web/view/NavBlock.java  | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/49db62c3/slider-core/src/main/java/org/apache/slider/server/appmaster/web/rest/RestPaths.java
----------------------------------------------------------------------
diff --git a/slider-core/src/main/java/org/apache/slider/server/appmaster/web/rest/RestPaths.java b/slider-core/src/main/java/org/apache/slider/server/appmaster/web/rest/RestPaths.java
index 9efd93b..be18914 100644
--- a/slider-core/src/main/java/org/apache/slider/server/appmaster/web/rest/RestPaths.java
+++ b/slider-core/src/main/java/org/apache/slider/server/appmaster/web/rest/RestPaths.java
@@ -67,6 +67,7 @@ public class RestPaths {
   public static final String SYSTEM = "/system";
   public static final String SYSTEM_HEALTHCHECK = SYSTEM + "/health";
   public static final String SYSTEM_METRICS = SYSTEM + "/metrics";
+  public static final String SYSTEM_METRICS_JSON = SYSTEM_METRICS + "?format=json";
   public static final String SYSTEM_PING = SYSTEM + "/ping";
   public static final String SYSTEM_THREADS = SYSTEM + "/threads";
 }

http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/49db62c3/slider-core/src/main/java/org/apache/slider/server/appmaster/web/view/NavBlock.java
----------------------------------------------------------------------
diff --git a/slider-core/src/main/java/org/apache/slider/server/appmaster/web/view/NavBlock.java b/slider-core/src/main/java/org/apache/slider/server/appmaster/web/view/NavBlock.java
index cf5e3ae..1bdf1bd 100644
--- a/slider-core/src/main/java/org/apache/slider/server/appmaster/web/view/NavBlock.java
+++ b/slider-core/src/main/java/org/apache/slider/server/appmaster/web/view/NavBlock.java
@@ -35,6 +35,7 @@ public class NavBlock extends HtmlBlock {
           li().a(this.prefix() + SliderAMWebApp.CONTAINER_STATS, "Statistics")._().
           li().a(this.prefix() + SliderAMWebApp.CLUSTER_SPEC, "Specification")._().
           li().a(rootPath(RestPaths.SYSTEM_METRICS), "Metrics")._().
+          li().a(rootPath(RestPaths.SYSTEM_METRICS_JSON), "Metrics as JSON")._().
           li().a(rootPath(RestPaths.SYSTEM_HEALTHCHECK), "Health")._().
           li().a(rootPath(RestPaths.SYSTEM_THREADS), "Threads")._()
         ._()