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
595f1867
Commit
595f1867
authored
Mar 23, 2020
by
zhouzihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf-修改线上配置
parent
be02a4c5
Pipeline
#96
failed with stages
in 23 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
src/main/java/com/vandyo/sentry/core/Tmp.java
src/main/java/com/vandyo/sentry/core/Tmp.java
+2
-2
src/main/java/com/vandyo/sentry/core/collectionMachine/CollectionMachine.java
...ndyo/sentry/core/collectionMachine/CollectionMachine.java
+1
-1
src/main/java/com/vandyo/sentry/core/tools/Signature.java
src/main/java/com/vandyo/sentry/core/tools/Signature.java
+4
-3
src/main/resources/application.yaml
src/main/resources/application.yaml
+3
-3
No files found.
src/main/java/com/vandyo/sentry/core/Tmp.java
View file @
595f1867
...
...
@@ -21,7 +21,7 @@ import java.util.Map;
@Component
public
class
Tmp
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
Tmp
.
class
);
private
static
Integer
times
=
0
;
//
private static Integer times = 0;
@Value
(
"${vandyo.sid}"
)
private
String
sId
;
...
...
@@ -39,7 +39,7 @@ public class Tmp {
@Scheduled
(
fixedRate
=
1000
*
30
)
public
void
test
()
{
log
.
info
(
"we run it {} times"
,
++
times
);
//
log.info("we run it {} times", ++times);
Case
case1
=
null
;
// 上线前使用这段代码
// 登录
...
...
src/main/java/com/vandyo/sentry/core/collectionMachine/CollectionMachine.java
View file @
595f1867
...
...
@@ -27,7 +27,7 @@ public class CollectionMachine {
if
(
temp
.
size
()
>
100
)
{
logger
.
info
(
"try to put data"
);
// 删除一分钟前的key数据
checkSize
(
1
);
checkSize
(
5
);
}
try
{
temp
.
put
(
System
.
currentTimeMillis
(),
log
);
...
...
src/main/java/com/vandyo/sentry/core/tools/Signature.java
View file @
595f1867
...
...
@@ -12,9 +12,10 @@ import java.util.*;
public
class
Signature
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
Tmp
.
class
);
// need be change to product env
// public static final String host = "http://10.100.11.41:8080";
public
static
final
String
host
=
"http://10.100.12.42:8080"
;
public
static
final
String
msgHost
=
"http://10.100.12.42:8089"
;
// public static final String host = "http://10.100.12.42:8080";
public
static
final
String
host
=
"http://api.vandyo.com:80"
;
// public static final String msgHost = "http://10.100.12.42:8089";
public
static
final
String
msgHost
=
"http://msg.vandyo.com:80"
;
/**
* 生成签名
...
...
src/main/resources/application.yaml
View file @
595f1867
vandyo
:
sid
:
38201fe198ef43b68f6bcf6101bc2970
uid
:
860a776c832749ce86754d59c7ca9fca
mobile
:
13
193073015
# pwd: 5f83f54fb34e2eed0439d37d80f5b1a3
pwd
:
b41cb62ec6767f2e41f9df7a2d161515
mobile
:
13
290090728
# pwd: 5f83f54fb34e2eed0439d37d80f5b1a3
pwd
:
5b93b77302ea31f6ae776cb58334afe1
checkmeta
:
desMap
:
...
...
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