Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
yanghaoyuan.sh
SkyWalking
提交
e7a5fd69
S
SkyWalking
项目概览
yanghaoyuan.sh
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
1
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,体验更适合开发者的 AI 搜索 >>
提交
e7a5fd69
编写于
1月 10, 2018
作者:
wu-sheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
06b9f5f6
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
45 addition
and
14 deletion
+45
-14
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/alarm.graphqls
...-ui-protocol/src/main/resources/ui-graphql/alarm.graphqls
+4
-0
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
+3
-3
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/config.graphqls
...ui-protocol/src/main/resources/ui-graphql/config.graphqls
+32
-6
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/overview-layer.graphqls
...col/src/main/resources/ui-graphql/overview-layer.graphqls
+3
-3
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/trace.graphqls
...-ui-protocol/src/main/resources/ui-graphql/trace.graphqls
+1
-1
apm-protocol/apm-ui-protocol/src/test/java/org/apache/skywalking/apm/ui/protocol/GraphQLScriptTest.java
.../apache/skywalking/apm/ui/protocol/GraphQLScriptTest.java
+1
-0
未找到文件。
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/alarm.graphqls
浏览文件 @
e7a5fd69
type AlarmItem {
# Typical include: Application Code + cause type. This is a short description.
title: String!
# Include all related info to trigger this alarm.
# such as: threshold, trigger value, relation(greater or lower), last time
content: String!
startTime: String!
alertType: AlarmType!
...
...
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/application-layer.graphqls
浏览文件 @
e7a5fd69
...
...
@@ -35,6 +35,6 @@ type ConjecturalNode implements Node {
extend type Query {
getAllApplication(duration: Duration!): [ApplicationNode]
getApplicationTopology(applicationId: ID!, duration: Duration!): Topology
getSlowService(applicationId: ID!, duration: Duration, top: Int!
!
): [ServiceInfo!]
getSlowService(applicationId: ID!, duration: Duration, top: Int!): [ServiceInfo!]
getServerThroughput(applicationId: ID!, duration: Duration!, top: Int!): [AppServerInfo!]
}
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/common.graphqls
浏览文件 @
e7a5fd69
...
...
@@ -44,11 +44,11 @@ enum Step {
SECOND
}
type
Pagination {
//
pageNum starts in 1, the default is 1.
input
Pagination {
#
pageNum starts in 1, the default is 1.
pageNum: Int
pageSize: Int!
//
default false
#
default false
needTotal: Boolean
}
...
...
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/config.graphqls
浏览文件 @
e7a5fd69
type TTLConfigs {
items: [TTLConfigItem]!
}
type TTLConfigItem {
input TTLConfigItem {
unit: Step!
value: Int!
}
type ExistedTTLConfigs{
ttl: [TTL!]!
}
type TTL {
unit: Step!
value: Int!
}
input AlarmThreshold {
type: AlarmType!
threshold: Int!
causeType: CauseType!
}
type ExistedAlarmThresholds {
items: [ExistedAlarmThresholdItem!]!
}
type ExistedAlarmThresholdItem {
threshold: Int!
causeType: CauseType!
}
extend type Mutation {
setDataTTLConfigs(ttl: TTLConfigs!): TTLConfigs
setDataTTLConfigs(ttl: [TTLConfigItem!]!): Boolean!
setAlarmThreshold(thresholds: [AlarmThreshold!]!): Boolean!
}
extend type Query {
queryAllDataTTLConfigs: ExistedTTLConfigs!
queryAlarmThresholds(alarmType: AlarmType): ExistedAlarmThresholds!
}
\ No newline at end of file
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/overview-layer.graphqls
浏览文件 @
e7a5fd69
...
...
@@ -15,7 +15,7 @@ type AlarmTrend {
# Query all conjectural applications based on the given duration
# All applications here are not installed agent.
type ConjecturalAppBrief {
apps: [ConjecturalApp!]
apps: [ConjecturalApp!]
!
}
# The basic info of the conjectural application,
...
...
@@ -32,6 +32,6 @@ extend type Query {
getClusterBrief(duration: Duration!): ClusterBrief
getAlarmTrend(duration: Duration!): AlarmTrend
getConjecturalApps(duration: Duration!): ConjecturalAppBrief
getTopNSlowService(duration: Duration!, topN: Int!): [ServiceInfo!]
getTopNServerThroughput(duration: Duration!, topN: Int!): [AppServerInfo!]
getTopNSlowService(duration: Duration!, topN: Int!): [ServiceInfo!]
!
getTopNServerThroughput(duration: Duration!, topN: Int!): [AppServerInfo!]
!
}
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/trace.graphqls
浏览文件 @
e7a5fd69
...
...
@@ -35,7 +35,7 @@ enum QueryOrder {
# The trace represents a distributed trace, includes all segments and spans.
type Trace {
traceId: ID!
segments: [Segment!]
segments: [Segment!]
!
}
type Segment {
...
...
apm-protocol/apm-ui-protocol/src/test/java/org/apache/skywalking/apm/ui/protocol/GraphQLScriptTest.java
浏览文件 @
e7a5fd69
...
...
@@ -43,6 +43,7 @@ public class GraphQLScriptTest {
typeRegistry
.
merge
(
schemaParser
.
parse
(
loadSchema
(
"server-layer.graphqls"
)));
typeRegistry
.
merge
(
schemaParser
.
parse
(
loadSchema
(
"service-layer.graphqls"
)));
typeRegistry
.
merge
(
schemaParser
.
parse
(
loadSchema
(
"alarm.graphqls"
)));
typeRegistry
.
merge
(
schemaParser
.
parse
(
loadSchema
(
"config.graphqls"
)));
RuntimeWiring
wiring
=
buildRuntimeWiring
();
assertTrue
(
schemaGenerator
.
makeExecutableSchema
(
typeRegistry
,
wiring
).
getAllTypesAsList
().
size
()
>
0
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录