Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
月轩居士
SkyWalking
提交
1cca13df
S
SkyWalking
项目概览
月轩居士
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1cca13df
编写于
2月 27, 2018
作者:
P
peng-yongsheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change the attribute name from responseTimePerSec to avgResponseTime.
上级
7ce2ac5a
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
22 addition
and
40 deletion
+22
-40
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/ui/application/ApplicationNode.java
...apm/collector/storage/ui/application/ApplicationNode.java
+5
-5
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/ui/common/Call.java
...ache/skywalking/apm/collector/storage/ui/common/Call.java
+5
-23
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ui/ServiceReferenceEsMetricUIDAO.java
...ctor/storage/es/dao/ui/ServiceReferenceEsMetricUIDAO.java
+4
-4
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/service/ApplicationTopologyService.java
.../apm/collector/ui/service/ApplicationTopologyService.java
+1
-1
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/service/TopologyBuilder.java
.../skywalking/apm/collector/ui/service/TopologyBuilder.java
+5
-5
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/application-layer.graphqls
.../src/main/resources/ui-graphql/application-layer.graphqls
+1
-1
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/common.graphqls
...ui-protocol/src/main/resources/ui-graphql/common.graphqls
+1
-1
未找到文件。
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/ui/application/ApplicationNode.java
浏览文件 @
1cca13df
...
...
@@ -27,7 +27,7 @@ public class ApplicationNode extends Node {
private
int
sla
;
private
long
callsPerSec
;
private
long
responseTimePerSec
;
private
long
avgResponseTime
;
private
int
apdex
;
private
boolean
isAlarm
;
private
int
numOfServer
;
...
...
@@ -50,12 +50,12 @@ public class ApplicationNode extends Node {
this
.
callsPerSec
=
callsPerSec
;
}
public
long
get
ResponseTimePerSec
()
{
return
responseTimePerSec
;
public
long
get
AvgResponseTime
()
{
return
avgResponseTime
;
}
public
void
set
ResponseTimePerSec
(
long
responseTimePerSec
)
{
this
.
responseTimePerSec
=
responseTimePerSec
;
public
void
set
AvgResponseTime
(
long
avgResponseTime
)
{
this
.
avgResponseTime
=
avgResponseTime
;
}
public
int
getApdex
()
{
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/ui/common/Call.java
浏览文件 @
1cca13df
...
...
@@ -28,10 +28,8 @@ public class Call {
private
String
targetName
;
private
boolean
isAlert
;
private
String
callType
;
private
long
calls
;
private
long
callsPerSec
;
private
long
responseTimes
;
private
long
responseTimePerSec
;
private
long
avgResponseTime
;
public
int
getSource
()
{
return
source
;
...
...
@@ -81,14 +79,6 @@ public class Call {
this
.
callType
=
callType
;
}
public
long
getCalls
()
{
return
calls
;
}
public
void
setCalls
(
long
calls
)
{
this
.
calls
=
calls
;
}
public
long
getCallsPerSec
()
{
return
callsPerSec
;
}
...
...
@@ -97,19 +87,11 @@ public class Call {
this
.
callsPerSec
=
callsPerSec
;
}
public
long
getResponseTimes
()
{
return
responseTimes
;
}
public
void
setResponseTimes
(
long
responseTimes
)
{
this
.
responseTimes
=
responseTimes
;
}
public
long
getResponseTimePerSec
()
{
return
responseTimePerSec
;
public
long
getAvgResponseTime
()
{
return
avgResponseTime
;
}
public
void
set
ResponseTimePerSec
(
long
responseTimePerSec
)
{
this
.
responseTimePerSec
=
responseTimePerSec
;
public
void
set
AvgResponseTime
(
long
avgResponseTime
)
{
this
.
avgResponseTime
=
avgResponseTime
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ui/ServiceReferenceEsMetricUIDAO.java
浏览文件 @
1cca13df
...
...
@@ -177,8 +177,8 @@ public class ServiceReferenceEsMetricUIDAO extends EsDAO implements IServiceRefe
Call
call
=
new
Call
();
call
.
setSource
(
frontServiceId
);
call
.
setTarget
(
behindServiceId
);
call
.
setCalls
((
int
)
callsSum
.
getValue
());
call
.
setResponseTimes
((
int
)
responseTimes
.
getValue
());
//
call.setCalls((int)callsSum.getValue());
//
call.setResponseTimes((int)responseTimes.getValue());
calls
.
add
(
call
);
});
}
...
...
@@ -192,8 +192,8 @@ public class ServiceReferenceEsMetricUIDAO extends EsDAO implements IServiceRefe
Call
call
=
new
Call
();
call
.
setTarget
(
behindServiceId
);
call
.
setSource
(
frontServiceId
);
call
.
setCalls
((
int
)
callsSum
.
getValue
());
call
.
setResponseTimes
((
int
)
responseTimes
.
getValue
());
//
call.setCalls((int)callsSum.getValue());
//
call.setResponseTimes((int)responseTimes.getValue());
calls
.
add
(
call
);
});
}
...
...
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/service/ApplicationTopologyService.java
浏览文件 @
1cca13df
...
...
@@ -117,7 +117,7 @@ public class ApplicationTopologyService {
// long calls = call.getCalls();
// long responseTimes = call.getResponseTimes();
// call.setCallsPerSec(calls / secondsBetween);
// call.set
ResponseTimePerSec
(responseTimes / secondsBetween);
// call.set
AvgResponseTime
(responseTimes / secondsBetween);
// });
return
null
;
}
...
...
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/service/TopologyBuilder.java
浏览文件 @
1cca13df
...
...
@@ -62,8 +62,8 @@ class TopologyBuilder {
calleeReferenceMetric
=
calleeReferenceMetricFilter
(
calleeReferenceMetric
);
List
<
Node
>
nodes
=
new
LinkedList
<>();
applicationMetrics
.
forEach
(
node
->
{
int
id
=
node
.
getId
();
applicationMetrics
.
forEach
(
applicationMetric
->
{
int
id
=
applicationMetric
.
getId
();
Application
application
=
applicationCacheService
.
getApplicationById
(
id
);
ApplicationNode
applicationNode
=
new
ApplicationNode
();
applicationNode
.
setId
(
id
);
...
...
@@ -72,7 +72,7 @@ class TopologyBuilder {
applicationNode
.
setSla
(
10
);
applicationNode
.
setCallsPerSec
(
100L
);
applicationNode
.
set
ResponseTimePerSec
(
100L
);
applicationNode
.
set
AvgResponseTime
((
applicationMetric
.
getDurations
()
-
applicationMetric
.
getErrorDurations
())
/
(
applicationMetric
.
getCalls
()
-
applicationMetric
.
getErrorCalls
())
);
applicationNode
.
setApdex
(
10
);
applicationNode
.
setAlarm
(
false
);
applicationNode
.
setNumOfServer
(
1
);
...
...
@@ -104,7 +104,7 @@ class TopologyBuilder {
call
.
setAlert
(
true
);
call
.
setCallType
(
components
.
get
(
referenceMetric
.
getTarget
()));
call
.
setCallsPerSec
(
1
);
call
.
set
ResponseTimePerSec
(
1
);
call
.
set
AvgResponseTime
((
referenceMetric
.
getDurations
()
-
referenceMetric
.
getErrorDurations
())
/
(
referenceMetric
.
getCalls
()
-
referenceMetric
.
getErrorCalls
())
);
calls
.
add
(
call
);
});
...
...
@@ -141,7 +141,7 @@ class TopologyBuilder {
call
.
setCallType
(
components
.
get
(
referenceMetric
.
getTarget
()));
}
call
.
setCallsPerSec
(
1
);
call
.
set
ResponseTimePerSec
(
1
);
call
.
set
AvgResponseTime
((
referenceMetric
.
getDurations
()
-
referenceMetric
.
getErrorDurations
())
/
(
referenceMetric
.
getCalls
()
-
referenceMetric
.
getErrorCalls
())
);
calls
.
add
(
call
);
});
...
...
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/application-layer.graphqls
浏览文件 @
1cca13df
...
...
@@ -10,7 +10,7 @@ type ApplicationNode implements Node {
# The number of incoming calls
callsPerSec: Long!
# Unit: millisecond
responseTimePerSec
: Long!
avgResponseTime
: Long!
# ref: http://www.apdex.org/
# Max value is 100
# 2 Digits after floating point in UI, need to division by 100. 100 -> 1.00
...
...
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/common.graphqls
浏览文件 @
1cca13df
...
...
@@ -106,5 +106,5 @@ type Call {
callType: String!
callsPerSec: Long!
# Unit: millisecond
responseTimePerSec
: Long!
avgResponseTime
: Long!
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录