Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
qinchao
7 years ago
Commit
836db5f3719a6426b58bed3c311edfe397a760a5
1 parent
ea91a21b
mysql探测
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
monitor-ui-common/src/main/java/com/ui/contants/HttpUriContants.java
monitor-ui-ctrl/src/main/java/com/ui/ctrl/MysqlMonitorCtrl.java
monitor-ui-common/src/main/java/com/ui/contants/HttpUriContants.java
View file @
836db5f
...
...
@@ -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
...
...
monitor-ui-ctrl/src/main/java/com/ui/ctrl/MysqlMonitorCtrl.java
View file @
836db5f
...
...
@@ -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
);
}
}
...
...
Please
register
or
login
to post a comment