ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmytro Sen" <d...@hortonworks.com>
Subject Review Request 21810: Provide host specific aggregate metrics on Cluster resource
Date Thu, 22 May 2014 14:15:10 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/21810/
-----------------------------------------------------------

Review request for Ambari, Sid Wagle and Tom Beerbower.


Bugs: AMBARI-5859
    https://issues.apache.org/jira/browse/AMBARI-5859


Repository: ambari


Description
-------

Added info:

Request
http://localhost:8080/api/v1/clusters/c1?fields=alerts,Clusters/health_report,Clusters/total_hosts

Response
{
  "href" : "http://localhost:8080/api/v1/clusters/c1?fields=alerts,Clusters/health_report,Clusters/total_hosts",
  "Clusters" : {
    "cluster_name" : "c1",
    "health_report" : {
      "Host/stale_config" : 0,
      "Host/maintenance_state" : 0,
      "Host/host_state/HEALTHY" : 1,
      "Host/host_state/UNHEALTHY" : 0,
      "Host/host_state/HEARTBEAT_LOST" : 1,
      "Host/host_state/INIT" : 0,
      "Host/host_status/HEALTHY" : 1,
      "Host/host_status/UNHEALTHY" : 0,
      "Host/host_status/UNKNOWN" : 1,
      "Host/host_status/ALERT" : 0
    },
    "total_hosts" : 2,
    "version" : "HDP-2.1"
  },
  "alerts" : {
    "summary" : {
      "CRITICAL" : 1,
      "OK" : 1,
      "PASSIVE" : 0,
      "WARNING" : 0
    }
  }
}  


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/controller/ClusterResponse.java 598958f

  ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractProviderModule.java
0ff3e62 
  ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterResourceProvider.java
8bd354a 
  ambari-server/src/main/java/org/apache/ambari/server/controller/nagios/NagiosPropertyProvider.java
a0785f8 
  ambari-server/src/main/java/org/apache/ambari/server/state/ClusterHealthReport.java PRE-CREATION

  ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java f0cedb6

  ambari-server/src/main/resources/properties.json 0cb32e7 
  ambari-server/src/test/java/org/apache/ambari/server/controller/ClusterResponseTest.java
c07a6ed 
  ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ClusterResourceProviderTest.java
901d55f 
  ambari-server/src/test/java/org/apache/ambari/server/controller/nagios/NagiosPropertyProviderTest.java
b0cf585 
  ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java 5bc8852


Diff: https://reviews.apache.org/r/21810/diff/


Testing
-------


Thanks,

Dmytro Sen


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message