class HealthAction extends AdminAction {

    @Override
    public boolean isTransactionAction() {
        return true;
    }

    @Override
    public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>}
}

        if (request.getNettyRequest() instanceof FullHttpRequest) {
            JSONObject jsonObject = new JSONObject();

            jsonObject.put("node", "1");

            JSONObject cpuObject = new JSONObject();
            jsonObject.put("cpu", cpuObject);

            JSONObject memoryObject = new JSONObject();
            jsonObject.put("memory", memoryObject);

            JSONObject fileObject = new JSONObject();
            jsonObject.put("disk", fileObject);

            if (getOperatingSystemMXBean() instanceof OperatingSystemMXBean) {
                double load = getOperatingSystemMXBean().getSystemLoadAverage();
                cpuObject.put("load", load);
            }
            cpuObject.put("cores", Runtime.getRuntime().availableProcessors());

            memoryObject.put("free", Runtime.getRuntime().freeMemory());
            memoryObject.put("max", Runtime.getRuntime().maxMemory());
            memoryObject.put("avail", Runtime.getRuntime().totalMemory());

            File root = new File("/");
            fileObject.put("space", root.getTotalSpace());
            fileObject.put("free", root.getFreeSpace());
            fileObject.put("usable", root.getUsableSpace());

            JSONArray out = new JSONArray();
            out.add(jsonObject);
            RestResult result = RestResult.ok(out);
            setResponseContent(result, response);
        }
        return true;
    
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.String) <variables>private static final org.slf4j.Logger LOG,private static boolean NO_CHECK_TIME,private static java.lang.String SECRET_KEY