Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PRMS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengfunan
PRMS
Commits
9132c687
Commit
9132c687
authored
Oct 26, 2020
by
gaozhentao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.新增告警和告警记录查询
parent
346b0d98
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
2020-10-23-1.ctid-log-server-local.gz
log/7z/local/2020-10/2020-10-23-1.ctid-log-server-local.gz
+0
-0
ctid-log-server-local.log
log/local/ctid-log-server-local.log
+0
-0
HttpTask.java
...ain/java/com/yingxin/prms/service/asyncTask/HttpTask.java
+4
-0
No files found.
log/7z/local/2020-10/2020-10-23-1.ctid-log-server-local.gz
0 → 100644
View file @
9132c687
File added
log/local/ctid-log-server-local.log
View file @
9132c687
This diff is collapsed.
Click to expand it.
src/main/java/com/yingxin/prms/service/asyncTask/HttpTask.java
View file @
9132c687
...
...
@@ -44,6 +44,7 @@ public class HttpTask extends BasicTask{
public
void
doTask
(
Server_Host_Info
hostInfo
,
ConcurrentHashMap
<
String
,
String
>
alarmHost
)
{
HttpEntity
<
String
>
requestEntity
;
ResponseEntity
<
String
>
responseEntity
=
null
;
long
dur
=
0
;
long
start
=
System
.
currentTimeMillis
();
...
...
@@ -58,6 +59,9 @@ public class HttpTask extends BasicTask{
responseEntity
=
restTemplate
.
getForEntity
(
hostInfo
.
getService_path
(),
String
.
class
);
}
dur
=
System
.
currentTimeMillis
()
-
start
;
System
.
out
.
println
(
"====================测试==================================="
);
System
.
out
.
println
(
responseEntity
.
getBody
());
System
.
out
.
println
(
"================================================================================"
);
}
catch
(
RestClientException
e
)
{
insertToKairos
(
httpClient
,
hostInfo
.
getHost_ip
(),
hostInfo
.
getHost_port
(),
dur
,
false
);
logger
.
info
(
"httpTask to {}"
,
hostInfo
.
getService_path
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment