Authored by qinchao

mysql探测

... ... @@ -103,9 +103,10 @@ public class HttpUriContants {
/***
* 监控对象
* mysql监控
****/
public static String MOBJECT_QUERY_MYSQL_MOBJECT = "/mobject/queryMysqlMobject";
public static String MYSQL_MONITOR_QUERY_MYSQL_MOBJECT = "/mysqlMonitor/queryMysqlMobject";
public static String MYSQL_MONITOR_DETECT_MYSQL_STATUS= "/mysqlMonitor/detectMysqlStatus";
/**
* user
... ...
... ... @@ -27,7 +27,16 @@ public class MysqlMonitorCtrl {
@RequestMapping("/queryMysqlMobject")
@ResponseBody
public BaseResponse<?> queryMysqlMobject() {
return httpRestClient.defaultGet(HttpUriContants.MOBJECT_QUERY_MYSQL_MOBJECT,BaseResponse.class);
return httpRestClient.defaultGet(HttpUriContants.MYSQL_MONITOR_QUERY_MYSQL_MOBJECT,BaseResponse.class);
}
/**
* 探测mysql的联通状态
*/
@RequestMapping("/detectMysqlStatus")
@ResponseBody
public BaseResponse<?> detectMysqlStatus(String ipAndPort) {
return httpRestClient.defaultGet(HttpUriContants.MYSQL_MONITOR_DETECT_MYSQL_STATUS+"?ipAndPort="+ipAndPort,BaseResponse.class);
}
}
... ...