Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
cc390fb2
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 搜索 >>
提交
cc390fb2
编写于
8月 01, 2018
作者:
G
Gao Hongtao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add type and resolver classes associated to schema files
上级
7551bc7d
变更
46
隐藏空白更改
内联
并排
Showing
46 changed file
with
1151 addition
and
30 deletion
+1151
-30
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql-v6/aggregation.graphqls
...col/src/main/resources/ui-graphql-v6/aggregation.graphqls
+1
-1
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql-v6/metadata.graphqls
...otocol/src/main/resources/ui-graphql-v6/metadata.graphqls
+2
-2
oap-server/pom.xml
oap-server/pom.xml
+7
-13
oap-server/server-query-plugin/query-graphql-plugin/pom.xml
oap-server/server-query-plugin/query-graphql-plugin/pom.xml
+0
-10
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/GraphQLQueryHandler.java
...che/skywalking/oap/query/graphql/GraphQLQueryHandler.java
+2
-4
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/GraphQLQueryProvider.java
...he/skywalking/oap/query/graphql/GraphQLQueryProvider.java
+18
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/AggregationQuery.java
...ywalking/oap/query/graphql/resolver/AggregationQuery.java
+31
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/AlarmQuery.java
...che/skywalking/oap/query/graphql/resolver/AlarmQuery.java
+36
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/MetadataQuery.java
.../skywalking/oap/query/graphql/resolver/MetadataQuery.java
+50
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/MetricQuery.java
...he/skywalking/oap/query/graphql/resolver/MetricQuery.java
+35
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/TopologyQuery.java
.../skywalking/oap/query/graphql/resolver/TopologyQuery.java
+33
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/TraceQuery.java
...che/skywalking/oap/query/graphql/resolver/TraceQuery.java
+34
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/AlarmMessage.java
...pache/skywalking/oap/query/graphql/type/AlarmMessage.java
+25
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/AlarmTrend.java
.../apache/skywalking/oap/query/graphql/type/AlarmTrend.java
+25
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Alarms.java
.../org/apache/skywalking/oap/query/graphql/type/Alarms.java
+26
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Attribute.java
...g/apache/skywalking/oap/query/graphql/type/Attribute.java
+24
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/BasicTrace.java
.../apache/skywalking/oap/query/graphql/type/BasicTrace.java
+30
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Call.java
...va/org/apache/skywalking/oap/query/graphql/type/Call.java
+28
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/ClusterBrief.java
...pache/skywalking/oap/query/graphql/type/ClusterBrief.java
+27
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Duration.java
...rg/apache/skywalking/oap/query/graphql/type/Duration.java
+28
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Endpoint.java
...rg/apache/skywalking/oap/query/graphql/type/Endpoint.java
+24
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/KVInt.java
...a/org/apache/skywalking/oap/query/graphql/type/KVInt.java
+24
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/KeyValue.java
...rg/apache/skywalking/oap/query/graphql/type/KeyValue.java
+24
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Language.java
...rg/apache/skywalking/oap/query/graphql/type/Language.java
+28
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/LinearIntValues.java
...he/skywalking/oap/query/graphql/type/LinearIntValues.java
+25
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/LogEntity.java
...g/apache/skywalking/oap/query/graphql/type/LogEntity.java
+26
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/MetricCondition.java
...he/skywalking/oap/query/graphql/type/MetricCondition.java
+24
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Node.java
...va/org/apache/skywalking/oap/query/graphql/type/Node.java
+26
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Order.java
...a/org/apache/skywalking/oap/query/graphql/type/Order.java
+24
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Pagination.java
.../apache/skywalking/oap/query/graphql/type/Pagination.java
+25
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/QueryOrder.java
.../apache/skywalking/oap/query/graphql/type/QueryOrder.java
+24
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Ref.java
...ava/org/apache/skywalking/oap/query/graphql/type/Ref.java
+26
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/RefType.java
...org/apache/skywalking/oap/query/graphql/type/RefType.java
+24
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Scope.java
...a/org/apache/skywalking/oap/query/graphql/type/Scope.java
+28
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Service.java
...org/apache/skywalking/oap/query/graphql/type/Service.java
+24
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/ServiceInstance.java
...he/skywalking/oap/query/graphql/type/ServiceInstance.java
+28
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Span.java
...va/org/apache/skywalking/oap/query/graphql/type/Span.java
+40
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Step.java
...va/org/apache/skywalking/oap/query/graphql/type/Step.java
+27
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Thermodynamic.java
...ache/skywalking/oap/query/graphql/type/Thermodynamic.java
+26
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/TopNCondition.java
...ache/skywalking/oap/query/graphql/type/TopNCondition.java
+30
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/TopNEntity.java
.../apache/skywalking/oap/query/graphql/type/TopNEntity.java
+25
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Topology.java
...rg/apache/skywalking/oap/query/graphql/type/Topology.java
+26
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Trace.java
...a/org/apache/skywalking/oap/query/graphql/type/Trace.java
+25
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/TraceBrief.java
.../apache/skywalking/oap/query/graphql/type/TraceBrief.java
+26
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/TraceQueryCondition.java
...kywalking/oap/query/graphql/type/TraceQueryCondition.java
+35
-0
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/TraceState.java
.../apache/skywalking/oap/query/graphql/type/TraceState.java
+25
-0
未找到文件。
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql-v6/aggregation.graphqls
浏览文件 @
cc390fb2
...
...
@@ -41,5 +41,5 @@ type TopNEntity {
# All aggregation queries require backend or/and storage do aggregation in query time.
extend type Query {
# TopN is an aggregation query.
getTopN(
metric
: TopNCondition!): [TopNEntity!]!
getTopN(
condition
: TopNCondition!): [TopNEntity!]!
}
\ No newline at end of file
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql-v6/metadata.graphqls
浏览文件 @
cc390fb2
...
...
@@ -57,6 +57,6 @@ extend type Query {
# Endpoint query
# Consider there are huge numbers of endpoint,
# must use endpoint owner's service id, keyword and
top N
filter to do query.
searchEndpoint(keyword: String!, serviceId: ID!,
topN
: Int!): [Endpoint!]!
# must use endpoint owner's service id, keyword and
limit
filter to do query.
searchEndpoint(keyword: String!, serviceId: ID!,
limit
: Int!): [Endpoint!]!
}
\ No newline at end of file
oap-server/pom.xml
浏览文件 @
cc390fb2
...
...
@@ -46,7 +46,8 @@
<guava.version>
19.0
</guava.version>
<snakeyaml.version>
1.18
</snakeyaml.version>
<gson.version>
2.8.1
</gson.version>
<graphql-java-tools.version>
4.3.0
</graphql-java-tools.version>
<graphql-java-tools.version>
5.2.3
</graphql-java-tools.version>
<graphql-java.version>
8.0
</graphql-java.version>
<zookeeper.version>
3.4.10
</zookeeper.version>
<grpc.version>
1.10.0
</grpc.version>
<jetty.version>
9.4.2.v20170220
</jetty.version>
...
...
@@ -57,8 +58,6 @@
<elasticsearch.version>
6.3.1
</elasticsearch.version>
<joda-time.version>
2.9.9
</joda-time.version>
<kubernetes.version>
2.0.0
</kubernetes.version>
<graphql-java.version>
8.0
</graphql-java.version>
<graphql-java-tools.version>
5.2.3
</graphql-java-tools.version>
</properties>
<dependencies>
...
...
@@ -121,6 +120,11 @@
<artifactId>
graphql-java-tools
</artifactId>
<version>
${graphql-java-tools.version}
</version>
</dependency>
<dependency>
<groupId>
com.graphql-java
</groupId>
<artifactId>
graphql-java
</artifactId>
<version>
${graphql-java.version}
</version>
</dependency>
<dependency>
<groupId>
com.google.code.gson
</groupId>
<artifactId>
gson
</artifactId>
...
...
@@ -234,16 +238,6 @@
<artifactId>
client-java
</artifactId>
<version>
${kubernetes.version}
</version>
</dependency>
<dependency>
<groupId>
com.graphql-java
</groupId>
<artifactId>
graphql-java
</artifactId>
<version>
${graphql-java.version}
</version>
</dependency>
<dependency>
<groupId>
com.graphql-java
</groupId>
<artifactId>
graphql-java-tools
</artifactId>
<version>
${graphql-java-tools.version}
</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>
\ No newline at end of file
oap-server/server-query-plugin/query-graphql-plugin/pom.xml
浏览文件 @
cc390fb2
...
...
@@ -30,16 +30,6 @@
<artifactId>
query-graphql-plugin
</artifactId>
<dependencies>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
library-module
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
library-util
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
server-core
</artifactId>
...
...
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/GraphQLQueryHandler.java
浏览文件 @
cc390fb2
...
...
@@ -34,8 +34,6 @@ import java.util.List;
import
java.util.Map
;
import
javax.servlet.http.HttpServletRequest
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.skywalking.oap.server.library.server.jetty.ArgumentsParseException
;
import
org.apache.skywalking.oap.server.library.server.jetty.JettyJsonHandler
;
import
org.apache.skywalking.oap.server.library.util.CollectionUtils
;
import
org.slf4j.Logger
;
...
...
@@ -63,11 +61,11 @@ public class GraphQLQueryHandler extends JettyJsonHandler {
return
path
;
}
@Override
protected
JsonElement
doGet
(
HttpServletRequest
req
)
throws
ArgumentsParseException
{
@Override
protected
JsonElement
doGet
(
HttpServletRequest
req
)
{
throw
new
UnsupportedOperationException
(
"GraphQL only supports POST method"
);
}
@Override
protected
JsonElement
doPost
(
HttpServletRequest
req
)
throws
ArgumentsParseException
,
IOException
{
@Override
protected
JsonElement
doPost
(
HttpServletRequest
req
)
throws
IOException
{
BufferedReader
reader
=
new
BufferedReader
(
new
InputStreamReader
(
req
.
getInputStream
()));
String
line
;
StringBuilder
request
=
new
StringBuilder
();
...
...
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/GraphQLQueryProvider.java
浏览文件 @
cc390fb2
...
...
@@ -21,8 +21,14 @@ package org.apache.skywalking.oap.query.graphql;
import
com.coxautodev.graphql.tools.SchemaParser
;
import
graphql.GraphQL
;
import
graphql.schema.GraphQLSchema
;
import
org.apache.skywalking.oap.query.graphql.resolver.AggregationQuery
;
import
org.apache.skywalking.oap.query.graphql.resolver.AlarmQuery
;
import
org.apache.skywalking.oap.query.graphql.resolver.MetadataQuery
;
import
org.apache.skywalking.oap.query.graphql.resolver.MetricQuery
;
import
org.apache.skywalking.oap.query.graphql.resolver.Mutation
;
import
org.apache.skywalking.oap.query.graphql.resolver.Query
;
import
org.apache.skywalking.oap.query.graphql.resolver.TopologyQuery
;
import
org.apache.skywalking.oap.query.graphql.resolver.TraceQuery
;
import
org.apache.skywalking.oap.server.core.CoreModule
;
import
org.apache.skywalking.oap.server.core.query.QueryModule
;
import
org.apache.skywalking.oap.server.core.server.JettyHandlerRegister
;
...
...
@@ -59,6 +65,18 @@ public class GraphQLQueryProvider extends ModuleProvider {
GraphQLSchema
schema
=
SchemaParser
.
newParser
()
.
file
(
"ui-graphql-v6/common.graphqls"
)
.
resolvers
(
new
Query
(),
new
Mutation
())
.
file
(
"ui-graphql-v6/metadata.graphqls"
)
.
resolvers
(
new
MetadataQuery
())
.
file
(
"ui-graphql-v6/metric.graphqls"
)
.
resolvers
(
new
MetricQuery
())
.
file
(
"ui-graphql-v6/topology.graphqls"
)
.
resolvers
(
new
TopologyQuery
())
.
file
(
"ui-graphql-v6/trace.graphqls"
)
.
resolvers
(
new
TraceQuery
())
.
file
(
"ui-graphql-v6/aggregation.graphqls"
)
.
resolvers
(
new
AggregationQuery
())
.
file
(
"ui-graphql-v6/alarm.graphqls"
)
.
resolvers
(
new
AlarmQuery
())
.
build
()
.
makeExecutableSchema
();
this
.
graphQL
=
GraphQL
.
newGraphQL
(
schema
).
build
();
...
...
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/AggregationQuery.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.resolver
;
import
com.coxautodev.graphql.tools.GraphQLQueryResolver
;
import
java.util.Collections
;
import
java.util.List
;
import
org.apache.skywalking.oap.query.graphql.type.TopNCondition
;
import
org.apache.skywalking.oap.query.graphql.type.TopNEntity
;
public
class
AggregationQuery
implements
GraphQLQueryResolver
{
public
List
<
TopNEntity
>
getTopN
(
final
TopNCondition
condition
)
{
return
Collections
.
emptyList
();
}
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/AlarmQuery.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.resolver
;
import
com.coxautodev.graphql.tools.GraphQLQueryResolver
;
import
org.apache.skywalking.oap.query.graphql.type.AlarmTrend
;
import
org.apache.skywalking.oap.query.graphql.type.Alarms
;
import
org.apache.skywalking.oap.query.graphql.type.Duration
;
import
org.apache.skywalking.oap.query.graphql.type.Pagination
;
import
org.apache.skywalking.oap.query.graphql.type.Scope
;
public
class
AlarmQuery
implements
GraphQLQueryResolver
{
public
AlarmTrend
getAlarmTrend
(
final
Duration
duration
)
{
return
new
AlarmTrend
();
}
public
Alarms
getAlarm
(
final
Duration
duration
,
final
Scope
scope
,
final
Pagination
paging
)
{
return
new
Alarms
();
}
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/MetadataQuery.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.resolver
;
import
com.coxautodev.graphql.tools.GraphQLQueryResolver
;
import
java.util.Collections
;
import
java.util.List
;
import
org.apache.skywalking.oap.query.graphql.type.ClusterBrief
;
import
org.apache.skywalking.oap.query.graphql.type.Duration
;
import
org.apache.skywalking.oap.query.graphql.type.Endpoint
;
import
org.apache.skywalking.oap.query.graphql.type.Service
;
import
org.apache.skywalking.oap.query.graphql.type.ServiceInstance
;
public
class
MetadataQuery
implements
GraphQLQueryResolver
{
public
ClusterBrief
getGlobalBrief
(
final
Duration
duration
)
{
return
new
ClusterBrief
();
}
public
List
<
Service
>
getAllServices
(
final
Duration
duration
)
{
return
Collections
.
emptyList
();
}
public
List
<
Service
>
searchServices
(
final
Duration
duration
,
final
String
keyword
)
{
return
Collections
.
emptyList
();
}
public
List
<
ServiceInstance
>
getServiceInstances
(
final
Duration
duration
,
final
String
id
)
{
return
Collections
.
emptyList
();
}
public
List
<
Endpoint
>
searchEndpoint
(
final
String
keyword
,
final
String
serviceId
,
final
int
limit
)
{
return
Collections
.
emptyList
();
}
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/MetricQuery.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.resolver
;
import
com.coxautodev.graphql.tools.GraphQLQueryResolver
;
import
org.apache.skywalking.oap.query.graphql.type.Duration
;
import
org.apache.skywalking.oap.query.graphql.type.LinearIntValues
;
import
org.apache.skywalking.oap.query.graphql.type.MetricCondition
;
import
org.apache.skywalking.oap.query.graphql.type.Thermodynamic
;
public
class
MetricQuery
implements
GraphQLQueryResolver
{
public
LinearIntValues
getLinearIntValues
(
final
MetricCondition
metric
,
final
Duration
duration
)
{
return
new
LinearIntValues
();
}
public
Thermodynamic
getThermodynamic
(
final
MetricCondition
metric
,
final
Duration
duration
)
{
return
new
Thermodynamic
();
}
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/TopologyQuery.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.resolver
;
import
com.coxautodev.graphql.tools.GraphQLQueryResolver
;
import
org.apache.skywalking.oap.query.graphql.type.Duration
;
import
org.apache.skywalking.oap.query.graphql.type.Topology
;
public
class
TopologyQuery
implements
GraphQLQueryResolver
{
public
Topology
getGlobalTopology
(
final
Duration
duration
)
{
return
new
Topology
();
}
public
Topology
getServiceTopology
(
final
String
serviceId
,
final
Duration
duration
)
{
return
new
Topology
();
}
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/TraceQuery.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.resolver
;
import
com.coxautodev.graphql.tools.GraphQLQueryResolver
;
import
org.apache.skywalking.oap.query.graphql.type.Trace
;
import
org.apache.skywalking.oap.query.graphql.type.TraceBrief
;
import
org.apache.skywalking.oap.query.graphql.type.TraceQueryCondition
;
public
class
TraceQuery
implements
GraphQLQueryResolver
{
public
TraceBrief
queryBasicTraces
(
final
TraceQueryCondition
condition
)
{
return
new
TraceBrief
();
}
public
Trace
queryTrace
(
final
String
traceId
)
{
return
new
Trace
();
}
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/AlarmMessage.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
class
AlarmMessage
{
private
Scope
scope
;
private
String
id
;
private
String
message
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/AlarmTrend.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
import
java.util.List
;
public
class
AlarmTrend
{
private
List
<
Integer
>
numOfAlarm
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Alarms.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
import
java.util.List
;
public
class
Alarms
{
private
List
<
AlarmMessage
>
msgs
;
private
int
total
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Attribute.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
class
Attribute
{
private
String
name
;
private
String
value
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/BasicTrace.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
import
java.util.List
;
public
class
BasicTrace
{
private
String
segmentId
;
private
List
<
String
>
operationNames
;
private
int
duration
;
private
String
start
;
private
boolean
isError
;
private
List
<
String
>
traceIds
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Call.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
class
Call
{
private
String
source
;
private
String
target
;
private
boolean
isAlert
;
private
String
callType
;
private
long
cpm
;
private
long
avgResponseTime
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/ClusterBrief.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
class
ClusterBrief
{
private
int
numOfService
;
private
int
numOfServiceInstance
;
private
int
numOfDatabase
;
private
int
numOfCache
;
private
int
numOfMQ
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Duration.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
import
lombok.Getter
;
@Getter
public
class
Duration
{
private
String
start
;
private
String
end
;
private
Step
step
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Endpoint.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
class
Endpoint
{
private
String
id
;
private
String
name
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/KVInt.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
class
KVInt
{
private
String
id
;
private
int
value
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/KeyValue.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
class
KeyValue
{
private
String
key
;
private
String
value
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Language.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
enum
Language
{
UNKNOWN
,
JAVA
,
DOTNET
,
NODEJS
,
PYTHON
,
RUBY
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/LinearIntValues.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
import
java.util.List
;
public
class
LinearIntValues
{
private
List
<
KVInt
>
values
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/LogEntity.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
import
java.util.List
;
public
class
LogEntity
{
private
long
time
;
private
List
<
KeyValue
>
data
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/MetricCondition.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
class
MetricCondition
{
private
String
id
;
private
String
name
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Node.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
class
Node
{
private
String
id
;
private
String
name
;
private
String
type
;
private
boolean
isReal
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Order.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
enum
Order
{
ASC
,
DES
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Pagination.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
class
Pagination
{
private
int
pageNum
;
private
int
pageSize
;
private
boolean
needTotal
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/QueryOrder.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
enum
QueryOrder
{
BY_START_TIME
,
BY_DURATION
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Ref.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
class
Ref
{
private
String
traceId
;
private
String
parentSegmentId
;
private
int
parentSpanId
;
private
RefType
type
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/RefType.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
enum
RefType
{
CROSS_PROCESS
,
CROSS_THREAD
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Scope.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
enum
Scope
{
SERVICE
,
SERVICE_INSTANCE
,
ENDPOINT
,
SERVICE_RELATION
,
SERVICE_INSTANCE_RELATION
,
ENDPOINT_RELATION
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Service.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
class
Service
{
private
String
id
;
private
String
name
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/ServiceInstance.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
import
java.util.List
;
public
class
ServiceInstance
{
private
String
id
;
private
String
name
;
private
List
<
Attribute
>
attributes
;
private
Language
language
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Span.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
import
java.util.List
;
public
class
Span
{
private
String
traceId
;
private
String
segmentId
;
private
int
spanId
;
private
int
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
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Step.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
enum
Step
{
MONTH
,
DAY
,
HOUR
,
MINUTE
,
SECOND
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Thermodynamic.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
import
java.util.List
;
public
class
Thermodynamic
{
private
List
<
List
<
Long
>>
nodes
;
private
int
axisYStep
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/TopNCondition.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
import
lombok.Getter
;
@Getter
public
class
TopNCondition
{
private
String
name
;
private
int
topN
;
private
Order
order
;
private
Scope
filterScope
;
private
int
filterId
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/TopNEntity.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
class
TopNEntity
{
private
String
name
;
private
String
id
;
private
int
value
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Topology.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
import
java.util.List
;
public
class
Topology
{
private
List
<
Node
>
nodes
;
private
List
<
Call
>
calls
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/Trace.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
import
java.util.List
;
public
class
Trace
{
private
List
<
Span
>
spans
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/TraceBrief.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
import
java.util.List
;
public
class
TraceBrief
{
private
List
<
BasicTrace
>
traces
;
private
int
total
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/TraceQueryCondition.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
import
lombok.Getter
;
@Getter
public
class
TraceQueryCondition
{
private
int
applicationId
;
private
String
traceId
;
private
String
operationName
;
private
Duration
queryDuration
;
private
int
minTraceDuration
;
private
int
maxTraceDuration
;
private
TraceState
traceState
;
private
QueryOrder
queryOrder
;
private
Pagination
paging
;
}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/TraceState.java
0 → 100644
浏览文件 @
cc390fb2
/*
* 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.oap.query.graphql.type
;
public
enum
TraceState
{
ALL
,
SUCCESS
,
ERROR
,
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录