Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
6b3aa98b
S
SkyWalking
项目概览
apache
/
SkyWalking
上一次同步 1 年多
通知
302
Star
21345
Fork
6091
代码
文件
提交
分支
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 搜索 >>
提交
6b3aa98b
编写于
1月 20, 2018
作者:
P
peng-yongsheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Initialize the java class entity for mapping graphql protocol.
上级
1152135a
变更
57
隐藏空白更改
内联
并排
Showing
57 changed file
with
1785 addition
and
0 deletion
+1785
-0
apm-collector/apm-collector-ui/collector-ui-graphql/pom.xml
apm-collector/apm-collector-ui/collector-ui-graphql/pom.xml
+5
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/Mutation.java
.../apache/skywalking/apm/collector/ui/graphql/Mutation.java
+27
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/Query.java
...org/apache/skywalking/apm/collector/ui/graphql/Query.java
+27
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/VersionMutation.java
.../skywalking/apm/collector/ui/graphql/VersionMutation.java
+26
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/VersionQuery.java
...che/skywalking/apm/collector/ui/graphql/VersionQuery.java
+26
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/alarm/Alarm.java
...ache/skywalking/apm/collector/ui/graphql/alarm/Alarm.java
+29
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/alarm/AlarmItem.java
.../skywalking/apm/collector/ui/graphql/alarm/AlarmItem.java
+30
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/alarm/AlarmQuery.java
...skywalking/apm/collector/ui/graphql/alarm/AlarmQuery.java
+33
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/alarm/AlarmType.java
.../skywalking/apm/collector/ui/graphql/alarm/AlarmType.java
+28
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/alarm/CauseType.java
.../skywalking/apm/collector/ui/graphql/alarm/CauseType.java
+27
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/application/ApplicationNode.java
...apm/collector/ui/graphql/application/ApplicationNode.java
+36
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/application/ApplicationQuery.java
...pm/collector/ui/graphql/application/ApplicationQuery.java
+48
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/application/ConjecturalNode.java
...apm/collector/ui/graphql/application/ConjecturalNode.java
+27
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/Call.java
...ache/skywalking/apm/collector/ui/graphql/common/Call.java
+31
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/Duration.java
.../skywalking/apm/collector/ui/graphql/common/Duration.java
+30
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/Mutation.java
.../skywalking/apm/collector/ui/graphql/common/Mutation.java
+26
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/Node.java
...ache/skywalking/apm/collector/ui/graphql/common/Node.java
+28
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/Pagination.java
...kywalking/apm/collector/ui/graphql/common/Pagination.java
+28
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/ResponseTimeTrend.java
...ng/apm/collector/ui/graphql/common/ResponseTimeTrend.java
+28
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/SLATrend.java
.../skywalking/apm/collector/ui/graphql/common/SLATrend.java
+28
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/Step.java
...ache/skywalking/apm/collector/ui/graphql/common/Step.java
+30
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/ThroughputTrend.java
...king/apm/collector/ui/graphql/common/ThroughputTrend.java
+28
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/Topology.java
.../skywalking/apm/collector/ui/graphql/common/Topology.java
+29
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/VisualUserNode.java
...lking/apm/collector/ui/graphql/common/VisualUserNode.java
+25
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/AlarmThreshold.java
...lking/apm/collector/ui/graphql/config/AlarmThreshold.java
+31
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/ConfigMutation.java
...lking/apm/collector/ui/graphql/config/ConfigMutation.java
+36
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/ConfigQuery.java
...ywalking/apm/collector/ui/graphql/config/ConfigQuery.java
+36
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/ExistedAlarmThresholdItem.java
...ollector/ui/graphql/config/ExistedAlarmThresholdItem.java
+29
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/ExistedAlarmThresholds.java
...m/collector/ui/graphql/config/ExistedAlarmThresholds.java
+28
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/ExistedTTLConfigs.java
...ng/apm/collector/ui/graphql/config/ExistedTTLConfigs.java
+28
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/TTL.java
...pache/skywalking/apm/collector/ui/graphql/config/TTL.java
+29
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/TTLConfigItem.java
...alking/apm/collector/ui/graphql/config/TTLConfigItem.java
+29
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/overview/AlarmTrend.java
...walking/apm/collector/ui/graphql/overview/AlarmTrend.java
+28
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/overview/ClusterBrief.java
...lking/apm/collector/ui/graphql/overview/ClusterBrief.java
+30
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/overview/ConjecturalApp.java
...ing/apm/collector/ui/graphql/overview/ConjecturalApp.java
+27
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/overview/ConjecturalAppBrief.java
...pm/collector/ui/graphql/overview/ConjecturalAppBrief.java
+28
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/overview/OverViewLayerQuery.java
...apm/collector/ui/graphql/overview/OverViewLayerQuery.java
+56
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/server/AppServerInfo.java
...alking/apm/collector/ui/graphql/server/AppServerInfo.java
+33
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/server/CPUTrend.java
.../skywalking/apm/collector/ui/graphql/server/CPUTrend.java
+28
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/server/GCTrend.java
...e/skywalking/apm/collector/ui/graphql/server/GCTrend.java
+29
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/server/MemoryTrend.java
...ywalking/apm/collector/ui/graphql/server/MemoryTrend.java
+31
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/server/ServerQuery.java
...ywalking/apm/collector/ui/graphql/server/ServerQuery.java
+58
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/service/ServiceInfo.java
...walking/apm/collector/ui/graphql/service/ServiceInfo.java
+29
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/service/ServiceNode.java
...walking/apm/collector/ui/graphql/service/ServiceNode.java
+30
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/service/ServiceQuery.java
...alking/apm/collector/ui/graphql/service/ServiceQuery.java
+52
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/BasicTrace.java
...skywalking/apm/collector/ui/graphql/trace/BasicTrace.java
+30
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/KeyValue.java
...e/skywalking/apm/collector/ui/graphql/trace/KeyValue.java
+27
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/LogEntity.java
.../skywalking/apm/collector/ui/graphql/trace/LogEntity.java
+29
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/Ref.java
...apache/skywalking/apm/collector/ui/graphql/trace/Ref.java
+29
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/RefType.java
...he/skywalking/apm/collector/ui/graphql/trace/RefType.java
+27
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/Segment.java
...he/skywalking/apm/collector/ui/graphql/trace/Segment.java
+31
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/Span.java
...pache/skywalking/apm/collector/ui/graphql/trace/Span.java
+43
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/Trace.java
...ache/skywalking/apm/collector/ui/graphql/trace/Trace.java
+28
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/TraceBrief.java
...skywalking/apm/collector/ui/graphql/trace/TraceBrief.java
+29
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/TraceQuery.java
...skywalking/apm/collector/ui/graphql/trace/TraceQuery.java
+34
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/TraceQueryCondition.java
...g/apm/collector/ui/graphql/trace/TraceQueryCondition.java
+36
-0
apm-collector/apm-collector-ui/collector-ui-graphql/src/test/java/org/apache/skywalking/apm/collector/ui/graphql/UIGraphQLProtocolTestCase.java
...g/apm/collector/ui/graphql/UIGraphQLProtocolTestCase.java
+57
-0
未找到文件。
apm-collector/apm-collector-ui/collector-ui-graphql/pom.xml
浏览文件 @
6b3aa98b
...
...
@@ -36,5 +36,10 @@
<artifactId>
graphql-java-tools
</artifactId>
<version>
4.3.0
</version>
</dependency>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
apm-ui-protocol
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
</project>
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/Mutation.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql
;
import
com.coxautodev.graphql.tools.GraphQLMutationResolver
;
/**
* @author peng-yongsheng
*/
public
interface
Mutation
extends
GraphQLMutationResolver
{
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/Query.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql
;
import
com.coxautodev.graphql.tools.GraphQLQueryResolver
;
/**
* @author peng-yongsheng
*/
public
interface
Query
extends
GraphQLQueryResolver
{
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/VersionMutation.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql
;
/**
* @author peng-yongsheng
*/
public
class
VersionMutation
implements
Mutation
{
private
String
version
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/VersionQuery.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql
;
/**
* @author peng-yongsheng
*/
public
class
VersionQuery
implements
Query
{
private
String
version
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/alarm/Alarm.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.alarm
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
Alarm
{
private
List
<
AlarmItem
>
items
;
private
Integer
count
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/alarm/AlarmItem.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.alarm
;
/**
* @author peng-yongsheng
*/
public
class
AlarmItem
{
private
String
title
;
private
String
content
;
private
String
startTime
;
private
AlarmType
alertType
;
private
CauseType
causeType
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/alarm/AlarmQuery.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.alarm
;
import
org.apache.skywalking.apm.collector.ui.graphql.Query
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Duration
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Pagination
;
/**
* @author peng-yongsheng
*/
public
class
AlarmQuery
implements
Query
{
public
Alarm
loadAlertList
(
String
keyword
,
AlarmType
alarmType
,
Duration
duration
,
Pagination
pagination
)
{
return
null
;
}
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/alarm/AlarmType.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.alarm
;
/**
* @author peng-yongsheng
*/
public
enum
AlarmType
{
APPLICATION
,
SERVER
,
SERVICE
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/alarm/CauseType.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.alarm
;
/**
* @author peng-yongsheng
*/
public
enum
CauseType
{
LOW_SUCCESS_RATE
,
SLOW_RESPONSE
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/application/ApplicationNode.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.application
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Node
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationNode
extends
Node
{
private
Float
sla
;
private
Long
callsPerSec
;
private
Integer
responseTimePerSec
;
private
Long
calls
;
private
Float
apdex
;
private
Boolean
isAlarm
;
private
Integer
numOfServer
;
private
Integer
numOfServerAlarm
;
private
Integer
numOfServiceAlarm
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/application/ApplicationQuery.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.application
;
import
java.util.List
;
import
org.apache.skywalking.apm.collector.ui.graphql.Query
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Duration
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Topology
;
import
org.apache.skywalking.apm.collector.ui.graphql.server.AppServerInfo
;
import
org.apache.skywalking.apm.collector.ui.graphql.service.ServiceInfo
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationQuery
implements
Query
{
public
List
<
ApplicationNode
>
getAllApplication
(
Duration
duration
)
{
return
null
;
}
public
Topology
getApplicationTopology
(
int
applicationId
,
Duration
duration
)
{
return
null
;
}
public
List
<
ServiceInfo
>
getSlowService
(
int
applicationId
,
Duration
duration
,
Integer
top
)
{
return
null
;
}
public
List
<
AppServerInfo
>
getServerThroughput
(
int
applicationId
,
Duration
duration
,
Integer
top
)
{
return
null
;
}
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/application/ConjecturalNode.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.application
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Node
;
/**
* @author peng-yongsheng
*/
public
class
ConjecturalNode
extends
Node
{
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/Call.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.common
;
/**
* @author peng-yongsheng
*/
public
class
Call
{
private
String
source
;
private
String
target
;
private
Boolean
isAlert
;
private
String
callType
;
private
Integer
callsPerSec
;
private
Integer
responseTimePerSec
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/Duration.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.common
;
/**
* @author peng-yongsheng
*/
public
class
Duration
{
private
String
start
;
private
String
end
;
private
Step
step
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/Mutation.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.common
;
/**
* @author peng-yongsheng
*/
public
class
Mutation
{
private
String
version
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/Node.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.common
;
/**
* @author peng-yongsheng
*/
public
abstract
class
Node
{
private
String
id
;
private
String
name
;
private
String
type
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/Pagination.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.common
;
/**
* @author peng-yongsheng
*/
public
class
Pagination
{
private
Integer
pageNum
;
private
Integer
pageSize
;
private
Boolean
needTotal
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/ResponseTimeTrend.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.common
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
ResponseTimeTrend
{
private
List
<
Integer
>
trendList
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/SLATrend.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.common
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
SLATrend
{
private
List
<
Integer
>
trendList
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/Step.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.common
;
/**
* @author peng-yongsheng
*/
public
enum
Step
{
MONTH
,
DAY
,
HOUR
,
MINUTE
,
SECOND
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/ThroughputTrend.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.common
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
ThroughputTrend
{
private
List
<
Integer
>
trendList
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/Topology.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.common
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
Topology
{
private
List
<
Node
>
nodes
;
private
List
<
Call
>
calls
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/common/VisualUserNode.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.common
;
/**
* @author peng-yongsheng
*/
public
class
VisualUserNode
extends
Node
{
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/AlarmThreshold.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.config
;
import
org.apache.skywalking.apm.collector.ui.graphql.alarm.AlarmType
;
import
org.apache.skywalking.apm.collector.ui.graphql.alarm.CauseType
;
/**
* @author peng-yongsheng
*/
public
class
AlarmThreshold
{
private
AlarmType
type
;
private
Integer
threshold
;
private
CauseType
causeType
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/ConfigMutation.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.config
;
import
java.util.List
;
import
org.apache.skywalking.apm.collector.ui.graphql.Mutation
;
/**
* @author peng-yongsheng
*/
public
class
ConfigMutation
implements
Mutation
{
public
Boolean
setDataTTLConfigs
(
List
<
TTLConfigItem
>
ttl
)
{
return
null
;
}
public
Boolean
setAlarmThreshold
(
List
<
AlarmThreshold
>
thresholds
)
{
return
null
;
}
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/ConfigQuery.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.config
;
import
org.apache.skywalking.apm.collector.ui.graphql.Query
;
import
org.apache.skywalking.apm.collector.ui.graphql.alarm.AlarmType
;
/**
* @author peng-yongsheng
*/
public
class
ConfigQuery
implements
Query
{
public
ExistedTTLConfigs
queryAllDataTTLConfigs
()
{
return
null
;
}
public
ExistedAlarmThresholds
queryAlarmThresholds
(
AlarmType
alarmType
)
{
return
null
;
}
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/ExistedAlarmThresholdItem.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.config
;
import
org.apache.skywalking.apm.collector.ui.graphql.alarm.CauseType
;
/**
* @author peng-yongsheng
*/
public
class
ExistedAlarmThresholdItem
{
private
Integer
threshold
;
private
CauseType
causeType
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/ExistedAlarmThresholds.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.config
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
ExistedAlarmThresholds
{
private
List
<
ExistedAlarmThresholdItem
>
items
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/ExistedTTLConfigs.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.config
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
ExistedTTLConfigs
{
private
List
<
TTL
>
ttl
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/TTL.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.config
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Step
;
/**
* @author peng-yongsheng
*/
public
class
TTL
{
private
Step
unit
;
private
Integer
value
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/config/TTLConfigItem.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.config
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Step
;
/**
* @author peng-yongsheng
*/
public
class
TTLConfigItem
{
private
Step
unit
;
private
Integer
value
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/overview/AlarmTrend.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.overview
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
AlarmTrend
{
public
List
<
Integer
>
numOfAlarmRate
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/overview/ClusterBrief.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.overview
;
/**
* @author peng-yongsheng
*/
public
class
ClusterBrief
{
private
int
numOfApplication
;
private
int
numOfService
;
private
int
numOfDatabase
;
private
int
numOfCache
;
private
int
numOfMQ
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/overview/ConjecturalApp.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.overview
;
/**
* @author peng-yongsheng
*/
public
class
ConjecturalApp
{
private
String
name
;
private
int
num
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/overview/ConjecturalAppBrief.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.overview
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
ConjecturalAppBrief
{
private
List
<
ConjecturalApp
>
apps
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/overview/OverViewLayerQuery.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.overview
;
import
java.util.List
;
import
org.apache.skywalking.apm.collector.ui.graphql.Query
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Duration
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Topology
;
import
org.apache.skywalking.apm.collector.ui.graphql.server.AppServerInfo
;
import
org.apache.skywalking.apm.collector.ui.graphql.service.ServiceInfo
;
/**
* @author peng-yongsheng
*/
public
class
OverViewLayerQuery
implements
Query
{
public
Topology
getClusterTopology
(
Duration
duration
)
{
return
null
;
}
public
ClusterBrief
getClusterBrief
(
Duration
duration
)
{
return
null
;
}
public
AlarmTrend
getAlarmTrend
(
Duration
duration
)
{
return
null
;
}
public
ConjecturalAppBrief
getConjecturalApps
(
Duration
duration
)
{
return
null
;
}
public
List
<
ServiceInfo
>
getTopNSlowService
(
Duration
duration
,
int
topN
)
{
return
null
;
}
public
List
<
AppServerInfo
>
getTopNServerThroughput
(
Duration
duration
,
int
topN
)
{
return
null
;
}
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/server/AppServerInfo.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.server
;
/**
* @author peng-yongsheng
*/
public
class
AppServerInfo
{
private
int
id
;
private
String
name
;
private
int
tps
;
private
String
os
;
private
String
host
;
private
int
pid
;
private
String
ipv4
;
private
String
ipv6
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/server/CPUTrend.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.server
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
CPUTrend
{
private
List
<
Integer
>
cost
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/server/GCTrend.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.server
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
GCTrend
{
private
List
<
Integer
>
youngGC
;
private
List
<
Integer
>
oldGC
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/server/MemoryTrend.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.server
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
MemoryTrend
{
private
List
<
Integer
>
heap
;
private
List
<
Integer
>
maxHeap
;
private
List
<
Integer
>
noheap
;
private
List
<
Integer
>
maxNoheap
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/server/ServerQuery.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.server
;
import
java.util.List
;
import
org.apache.skywalking.apm.collector.ui.graphql.Query
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Duration
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.ResponseTimeTrend
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.ThroughputTrend
;
/**
* @author peng-yongsheng
*/
public
class
ServerQuery
implements
Query
{
public
List
<
AppServerInfo
>
searchServer
(
String
keyword
,
Duration
duration
)
{
return
null
;
}
public
List
<
AppServerInfo
>
getAllServer
(
String
applicationId
,
Duration
duration
)
{
return
null
;
}
public
ResponseTimeTrend
getServerResponseTimeTrend
(
int
serverId
,
Duration
duration
)
{
return
null
;
}
public
ThroughputTrend
getServerTPSTrend
(
int
serverId
,
Duration
duration
)
{
return
null
;
}
public
CPUTrend
getCPUTrend
(
int
serverId
,
Duration
duration
)
{
return
null
;
}
public
GCTrend
getGCTrend
(
int
serverId
,
Duration
duration
)
{
return
null
;
}
public
MemoryTrend
getMemoryTrend
(
int
serverId
,
Duration
duration
)
{
return
null
;
}
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/service/ServiceInfo.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.service
;
/**
* @author peng-yongsheng
*/
public
class
ServiceInfo
{
private
int
id
;
private
String
name
;
private
int
avgResponseTime
;
private
int
tps
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/service/ServiceNode.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.service
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Node
;
/**
* @author peng-yongsheng
*/
public
class
ServiceNode
extends
Node
{
private
Float
sla
;
private
Long
calls
;
private
Integer
numOfServiceAlarm
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/service/ServiceQuery.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.service
;
import
java.util.List
;
import
org.apache.skywalking.apm.collector.ui.graphql.Query
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Duration
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.ResponseTimeTrend
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.SLATrend
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.ThroughputTrend
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Topology
;
/**
* @author peng-yongsheng
*/
public
class
ServiceQuery
implements
Query
{
public
List
<
ServiceNode
>
searchService
(
String
keyword
,
Duration
duration
,
Integer
topN
)
{
return
null
;
}
public
ResponseTimeTrend
getServiceResponseTimeTrend
(
int
serviceId
,
Duration
duration
)
{
return
null
;
}
public
ThroughputTrend
getServiceTPSTrend
(
int
serviceId
,
Duration
duration
)
{
return
null
;
}
public
SLATrend
getServiceSLATrend
(
int
serviceId
,
Duration
duration
)
{
return
null
;
}
public
Topology
getServiceTopology
(
int
serviceId
,
Duration
duration
)
{
return
null
;
}
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/BasicTrace.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.trace
;
/**
* @author peng-yongsheng
*/
public
class
BasicTrace
{
private
String
operationName
;
private
int
duration
;
private
String
start
;
private
Boolean
isError
;
private
String
traceId
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/KeyValue.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.trace
;
/**
* @author peng-yongsheng
*/
public
class
KeyValue
{
private
String
key
;
private
String
value
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/LogEntity.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.trace
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
LogEntity
{
private
String
time
;
private
List
<
KeyValue
>
data
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/Ref.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.trace
;
/**
* @author peng-yongsheng
*/
public
class
Ref
{
private
String
traceId
;
private
Integer
parentSegmentId
;
private
Integer
parentSpanId
;
private
RefType
type
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/RefType.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.trace
;
/**
* @author peng-yongsheng
*/
public
enum
RefType
{
CROSS_PROCESS
,
CROSS_THREAD
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/Segment.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.trace
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
Segment
{
private
int
segmentId
;
private
String
appName
;
private
Boolean
isSizeLimited
;
private
List
<
Span
>
spans
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/Span.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.trace
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
Span
{
private
String
traceId
;
private
String
segmentId
;
private
Integer
spanId
;
private
Integer
parentSpanId
;
private
List
<
Ref
>
refs
;
private
String
applicationCode
;
private
Long
startTime
;
private
Long
endTime
;
private
String
operationName
;
private
String
type
;
private
String
peer
;
private
String
component
;
private
Boolean
isError
;
private
String
layer
;
private
List
<
KeyValue
>
tags
;
private
List
<
LogEntity
>
logs
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/Trace.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.trace
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
Trace
{
private
List
<
Span
>
spans
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/TraceBrief.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.trace
;
import
java.util.List
;
/**
* @author peng-yongsheng
*/
public
class
TraceBrief
{
private
List
<
BasicTrace
>
traces
;
private
Integer
total
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/TraceQuery.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.trace
;
import
org.apache.skywalking.apm.collector.ui.graphql.Query
;
/**
* @author peng-yongsheng
*/
public
class
TraceQuery
implements
Query
{
public
TraceBrief
queryBasicTraces
(
TraceQueryCondition
condition
)
{
return
null
;
}
public
Trace
queryTrace
(
String
id
)
{
return
null
;
}
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/main/java/org/apache/skywalking/apm/collector/ui/graphql/trace/TraceQueryCondition.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql.trace
;
import
java.util.List
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.Duration
;
/**
* @author peng-yongsheng
*/
public
class
TraceQueryCondition
{
private
List
<
String
>
applicationCodes
;
private
String
traceId
;
private
String
operationName
;
private
Duration
queryDuration
;
private
int
minTraceDuration
;
private
int
maxTraceDuration
;
private
Boolean
topN
;
private
int
needTotal
;
}
apm-collector/apm-collector-ui/collector-ui-graphql/src/test/java/org/apache/skywalking/apm/collector/ui/graphql/UIGraphQLProtocolTestCase.java
0 → 100644
浏览文件 @
6b3aa98b
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.ui.graphql
;
import
com.coxautodev.graphql.tools.SchemaParser
;
import
org.apache.skywalking.apm.collector.ui.graphql.alarm.AlarmQuery
;
import
org.apache.skywalking.apm.collector.ui.graphql.application.ApplicationQuery
;
import
org.apache.skywalking.apm.collector.ui.graphql.application.ConjecturalNode
;
import
org.apache.skywalking.apm.collector.ui.graphql.common.VisualUserNode
;
import
org.apache.skywalking.apm.collector.ui.graphql.config.ConfigMutation
;
import
org.apache.skywalking.apm.collector.ui.graphql.config.ConfigQuery
;
import
org.apache.skywalking.apm.collector.ui.graphql.overview.OverViewLayerQuery
;
import
org.apache.skywalking.apm.collector.ui.graphql.server.ServerQuery
;
import
org.apache.skywalking.apm.collector.ui.graphql.service.ServiceQuery
;
import
org.apache.skywalking.apm.collector.ui.graphql.trace.TraceQuery
;
import
org.junit.Test
;
/**
* @author peng-yongsheng
*/
public
class
UIGraphQLProtocolTestCase
{
@Test
public
void
test
()
{
SchemaParser
.
newParser
()
.
file
(
"ui-graphql/alarm.graphqls"
)
.
file
(
"ui-graphql/application-layer.graphqls"
)
.
file
(
"ui-graphql/common.graphqls"
)
.
file
(
"ui-graphql/config.graphqls"
)
.
file
(
"ui-graphql/overview-layer.graphqls"
)
.
file
(
"ui-graphql/server-layer.graphqls"
)
.
file
(
"ui-graphql/service-layer.graphqls"
)
.
file
(
"ui-graphql/trace.graphqls"
)
.
resolvers
(
new
VersionQuery
(),
new
VersionMutation
(),
new
AlarmQuery
(),
new
ApplicationQuery
())
.
resolvers
(
new
OverViewLayerQuery
(),
new
ServerQuery
(),
new
ServiceQuery
(),
new
TraceQuery
())
.
resolvers
(
new
ConfigQuery
(),
new
ConfigMutation
())
.
dictionary
(
ConjecturalNode
.
class
,
VisualUserNode
.
class
)
.
build
()
.
makeExecutableSchema
();
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录