Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
java-devop-sentry
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
zhouzihao
java-devop-sentry
Commits
f75cf751
Commit
f75cf751
authored
Mar 13, 2020
by
zhouzihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev-超时请求检测
parent
30ac403a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
src/main/java/com/vandyo/sentry/core/dto/ErrStatus.java
src/main/java/com/vandyo/sentry/core/dto/ErrStatus.java
+1
-1
src/main/java/com/vandyo/sentry/core/tools/Signature.java
src/main/java/com/vandyo/sentry/core/tools/Signature.java
+3
-0
No files found.
src/main/java/com/vandyo/sentry/core/dto/ErrStatus.java
View file @
f75cf751
...
@@ -10,7 +10,7 @@ public enum ErrStatus {
...
@@ -10,7 +10,7 @@ public enum ErrStatus {
*/
*/
Err4xx
,
Err4xx
,
/**
/**
* 超时错误
* 超时错误
408
*/
*/
ErrTimeout
,
ErrTimeout
,
/**
/**
...
...
src/main/java/com/vandyo/sentry/core/tools/Signature.java
View file @
f75cf751
...
@@ -62,6 +62,9 @@ public class Signature {
...
@@ -62,6 +62,9 @@ public class Signature {
}
}
public
static
ErrStatus
matchStatus
(
int
status
)
{
public
static
ErrStatus
matchStatus
(
int
status
)
{
if
(
status
==
408
){
return
ErrStatus
.
ErrTimeout
;
}
if
(
status
>=
400
&&
status
<
500
)
{
if
(
status
>=
400
&&
status
<
500
)
{
return
ErrStatus
.
Err4xx
;
return
ErrStatus
.
Err4xx
;
}
else
if
(
status
>=
500
&&
status
<
600
)
{
}
else
if
(
status
>=
500
&&
status
<
600
)
{
...
...
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