Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
javalover123888
SkyWalking
提交
34a6c4dc
S
SkyWalking
项目概览
javalover123888
/
SkyWalking
与 Fork 源项目一致
Fork自
山不在高_有仙则灵 / SkyWalking
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
34a6c4dc
编写于
7月 26, 2018
作者:
wu-sheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Init some graphQL protocol
上级
78f93492
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
245 addition
and
0 deletion
+245
-0
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql-v6/common.graphql
...-protocol/src/main/resources/ui-graphql-v6/common.graphql
+70
-0
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql-v6/metric.graphql
...-protocol/src/main/resources/ui-graphql-v6/metric.graphql
+66
-0
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql-v6/overview.graphql
...rotocol/src/main/resources/ui-graphql-v6/overview.graphql
+45
-0
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql-v6/topology.graphql
...rotocol/src/main/resources/ui-graphql-v6/topology.graphql
+64
-0
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql-v6/trace.graphql
...i-protocol/src/main/resources/ui-graphql-v6/trace.graphql
+0
-0
未找到文件。
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql-v6/common.graphql
0 → 100644
浏览文件 @
34a6c4dc
# 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.
schema
{
query
:
Query
mutation
:
Mutation
}
#Root node
type
Query
{
version
:
String
}
type
Mutation
{
version
:
String
}
# The Duration defines the start and end time for each query operation.
# Fields: `start` and `end`
# represents the time span. And each of them matches the step.
# ref https://www.ietf.org/rfc/rfc3339.txt
# The time formats are
# `SECOND` step: yyyy-MM-dd HHmmss
# `MINUTE` step: yyyy-MM-dd HHmm
# `HOUR` step: yyyy-MM-dd HH
# `DAY` step: yyyy-MM-dd
# `MONTH` step: yyyy-MM
# Field: `step`
# represents the accurate time point.
# e.g.
# if step==HOUR , start=2017-11-08 09, end=2017-11-08 19
# then
# metrics from the following time points expected
# 2017-11-08 9:00 -> 2017-11-08 19:00
# there are 11 time points (hours) in the time span.
input
Duration
{
start
:
String
!
end
:
String
!
step
:
Step
!
}
enum
Step
{
MONTH
DAY
HOUR
MINUTE
SECOND
}
input
Pagination
{
# pageNum starts in 1, the default is 1.
pageNum
:
Int
pageSize
:
Int
!
# default false
needTotal
:
Boolean
}
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql-v6/metric.graphql
0 → 100644
浏览文件 @
34a6c4dc
# 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.
input
MetricCondition
{
# Metric name, which should be defined in OAL script
# Such as:
# Endpoint_avg = from(Endpoint.latency).avg()
# Then, `Endpoint_avg`
name
:
String
!
# Id in this metric type.
# In the above case, the id should be endpoint id.
id
:
ID
topN
:
TopN
}
# TopN filter
input
TopN
{
n
:
Int
!
}
type
LinearIntValues
{
values
:
[
KVInt
!]!
}
type
KVInt
{
id
:
ID
!
# This is the value, the caller must understand the Unit.
# Such as:
# 1. If ask for cpm metric, the unit and result should be count.
# 2. If ask for response time (p99 or avg), the unit should be millisecond.
value
:
Int
!
}
type
Thermodynamic
{
# Each element in nodes represents a point in Thermodynamic Diagram
# And the element includes three values:
# 1) Time Bucket based on query duration
# 2) Response time index.
# Response time = [responseTimeStep * index, responseTimeStep * (index+1))
# The last element: [Response Time * index, MAX)
# 3) The number of calls in this response time duration.
#
# Example:
# [ [0, 0, 10], [0, 1, 43], ...]
# These ^^^ two represent the left bottom element, and another element above it.
nodes
:
[
[
Long
]!
]
!
axisYStep
:
Int
!
}
extend
type
Query
{
getLinearIntValues
(
metric
:
MetricCondition
!,
duration
:
Duration
!):
LinearIntValues
getThermodynamic
(
metric
:
MetricCondition
!,
duration
:
Duration
!):
Thermodynamic
}
\ No newline at end of file
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql-v6/overview.graphql
0 → 100644
浏览文件 @
34a6c4dc
# 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.
# Query the cluster brief based on the given duration
type
ClusterBrief
{
numOfService
:
Int
!
numOfServiceInstance
:
Int
!
numOfDatabase
:
Int
!
numOfCache
:
Int
!
numOfMQ
:
Int
!
}
# Query the trend of alarm rate based on the given duration
type
AlarmTrend
{
numOfAlarmRate
:
[
Int
]!
}
type
Service
{
id
:
ID
!
name
:
String
!
}
type
ServiceInstance
{
}
extend
type
Query
{
getGlobalBrief
(
duration
:
Duration
!):
ClusterBrief
getAlarmTrend
(
duration
:
Duration
!):
AlarmTrend
getAllService
(
duration
:
Duration
!):
[
Service
!]!
}
\ No newline at end of file
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql-v6/topology.graphql
0 → 100644
浏览文件 @
34a6c4dc
# 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.
# The overview topology of the whole application cluster or services,
type
Topology
{
nodes
:
[
Node
!]!
calls
:
[
Call
!]!
}
# Node in Topology
type
Node
{
# The global id of each node,
# 1. Service id
# 2. Endpoint id
id
:
ID
!
# The literal name of the #id.
name
:
String
!
# The type name may be
# 1. The service provider/middleware tech, such as: Tomcat, SpringMVC
# 2. Conjectural Service, e.g. MySQL, Redis, Kafka
type
:
String
# It is a conjuecture node or real node, to represent a service or endpoint.
isReal
:
Boolean
!
}
# The Call represents a directed distributed call,
# from the `source` to the `target`.
type
Call
{
source
:
ID
!
target
:
ID
!
isAlert
:
Boolean
# The protocol and tech stack used in this distributed call
callType
:
String
!
cpm
:
Long
!
# Unit: millisecond
avgResponseTime
:
Long
!
}
enum
NodeType
{
SERVICE
,
ENDPOINT
,
USER
}
extend
type
Query
{
# Query the global topolgoy
getGlobalTopology
(
duration
:
Duration
!):
Topology
# Query the topology, based on the given service
getServiceTopology
(
serviceId
:
ID
!,
duration
:
Duration
!):
Topology
}
\ No newline at end of file
apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql-v6/trace.graphql
0 → 100644
浏览文件 @
34a6c4dc
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录