Add application layer protocol and some common types.
This commit is contained in:
parent
e771350812
commit
5d801fbd02
|
|
@ -1,20 +0,0 @@
|
|||
#
|
||||
# Copyright 2017, OpenSkywalking Organization All rights reserved.
|
||||
#
|
||||
# Licensed 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.
|
||||
#
|
||||
# Project repository: https://github.com/OpenSkywalking/skywalking-ui
|
||||
#
|
||||
|
||||
server:
|
||||
port: 8080
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
type AppServerList {
|
||||
servers: [AppServerInfo!]
|
||||
}
|
||||
|
||||
extend type Query {
|
||||
getApplicationTopology(appId: ID!, duration: Duration!): ApplicationTopology
|
||||
getServers(appId: ID!, duration: Duration!): AppServerList
|
||||
}
|
||||
|
|
@ -38,3 +38,18 @@ enum Step{
|
|||
MINUTE
|
||||
SECOND
|
||||
}
|
||||
|
||||
######################################
|
||||
# Common Metrics and Trends
|
||||
######################################
|
||||
type ResponseTimeTrend {
|
||||
trendList: [Int!]
|
||||
}
|
||||
|
||||
type TPSTrend {
|
||||
trendList: [Int!]
|
||||
}
|
||||
|
||||
type ThroughputTrend {
|
||||
trendList: [Int!]
|
||||
}
|
||||
|
|
@ -96,12 +96,13 @@ type ApplicationBrief {
|
|||
}
|
||||
|
||||
type ApplicationInfo {
|
||||
id: ID!
|
||||
name: String!
|
||||
tps: Int!
|
||||
}
|
||||
|
||||
extend type Query {
|
||||
getApplicationTopology(duration: Duration!): ApplicationTopology
|
||||
getClusterTopology(duration: Duration!): ApplicationTopology
|
||||
getClusterBrief(duration: Duration!): ClusterBrief
|
||||
getAlarmTrend(duration: Duration!): AlarmTrend
|
||||
getConjecturalApps(duration: Duration!): ConjecturalAppBrief
|
||||
|
|
|
|||
|
|
@ -0,0 +1,19 @@
|
|||
# The server info.
|
||||
# At here, `Server` represents a process in OS,
|
||||
# e.g.
|
||||
# 1. Spring boot application
|
||||
# 2. A Tomcat server instance
|
||||
type AppServerInfo {
|
||||
id: ID!
|
||||
name: String!
|
||||
tps: Int!
|
||||
os: String
|
||||
host: String
|
||||
pid: Int
|
||||
IPv4: String
|
||||
IPv6: String
|
||||
}
|
||||
|
||||
extend type Query {
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue