Search in sources :

Example 6 with NodeStats

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);
}
Also used : NodeStats(com.emc.vipr.model.sys.healthmonitor.NodeStats) NodeHealth(com.emc.vipr.model.sys.healthmonitor.NodeHealth)

Example 7 with NodeStats

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);
}
Also used : NodeStats(com.emc.vipr.model.sys.healthmonitor.NodeStats) JsonObject(com.google.gson.JsonObject) NodeHealth(com.emc.vipr.model.sys.healthmonitor.NodeHealth)

Aggregations

NodeStats (com.emc.vipr.model.sys.healthmonitor.NodeStats)7 NodeHealth (com.emc.vipr.model.sys.healthmonitor.NodeHealth)3 Test (org.junit.Test)3 CheckPermission (com.emc.storageos.security.authorization.CheckPermission)1 NodeInfo (com.emc.storageos.systemservices.impl.resource.util.NodeInfo)1 DiagRequestParams (com.emc.vipr.model.sys.healthmonitor.DiagRequestParams)1 DiskStats (com.emc.vipr.model.sys.healthmonitor.DiskStats)1 RequestParams (com.emc.vipr.model.sys.healthmonitor.RequestParams)1 ServiceStats (com.emc.vipr.model.sys.healthmonitor.ServiceStats)1 StatsRestRep (com.emc.vipr.model.sys.healthmonitor.StatsRestRep)1 JsonObject (com.google.gson.JsonObject)1