use of com.emc.vipr.model.sys.healthmonitor.NodeStats in project coprhd-controller by CoprHD.
the class SystemHealth method nodeDetails.
public static void nodeDetails(String nodeId) {
NodeStats nodeStats = MonitorUtils.getNodeStats(nodeId);
NodeHealth nodeHealth = MonitorUtils.getNodeHealth(nodeId);
if (nodeStats != null && nodeHealth != null) {
renderArgs.put("healthDetails", healthDetails(nodeStats, nodeHealth));
}
render(nodeId);
}
use of com.emc.vipr.model.sys.healthmonitor.NodeStats in project coprhd-controller by CoprHD.
the class SystemHealth method renderNodeDetailsJson.
public static void renderNodeDetailsJson(String nodeId) {
NodeStats nodeStats = MonitorUtils.getNodeStats(nodeId);
NodeHealth nodeHealth = MonitorUtils.getNodeHealth(nodeId);
Map<String, Object> healthDetails = Maps.newHashMap();
if (nodeStats != null && nodeHealth != null) {
healthDetails = healthDetails(nodeStats, nodeHealth);
}
renderJSON(healthDetails);
}
Aggregations