系统监控

v1.4.1
薛佳琪 5 years ago
parent 058fb2bb0d
commit 0cf4b492e4

@ -6,6 +6,11 @@ package org.opsli.modulars.system.monitor.entity;
import lombok.Data;
/**
*
*
* @author
*/
@Data
public class SysServiceInfo {

@ -9,18 +9,22 @@ import org.opsli.core.monitor.utils.*;
import java.util.List;
/**
*
* @author
*/
public interface IMonitorService {
public Sys getSysInfo() throws Exception;
Sys getSysInfo() throws Exception;
public CPU getCpuInfo() throws Exception;
CPU getCpuInfo() throws Exception;
public Mem getMemInfo() throws Exception;
Mem getMemInfo() throws Exception;
public JVM getJVMInfo() throws Exception;
JVM getJVMInfo() throws Exception;
public List<SysFile> getSysFiles() throws Exception;
List<SysFile> getSysFiles() throws Exception;
}

@ -11,6 +11,11 @@ import org.springframework.stereotype.Service;
import java.util.List;
/**
*
*
* @author
*/
@Service
public class MonitorServiceImpl implements IMonitorService {

@ -16,6 +16,11 @@ import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;
/**
*
*
* @author
*/
@Slf4j
@ApiRestController("/sys/monitor")
public class monitorController {

Loading…
Cancel
Save