service/getServiceTopology
hanahmily opened this issue · 2 comments
hanahmily commented
TL;DR;
No data
Input
{
"variables": {
"duration": {
"start": "2017-08-04 2248",
"end": "2017-08-04 2250",
"step": "MINUTE"
},
"serviceId": "-1"
},
"query": "
query Service($serviceId: ID!, $duration: Duration!) {
getServiceTopology(serviceId: $serviceId, duration: $duration) {
nodes {
id
name
type
... on ApplicationNode {
sla
callsPerSec
responseTimePerSec
apdex
isAlarm
numOfServer
numOfServerAlarm
numOfServiceAlarm
}
}
calls {
source
target
isAlert
callType
callsPerSec
responseTimePerSec
}
}
}
"
}
Output
"getServiceTopology": {
"nodes": [ ],
"calls": [ ]
}
peng-yongsheng commented
getServiceTopology
INPUT
{
getServiceTopology(serviceId: -2, duration: {start: "2017-06-01 1002", end: "2017-06-01 1005", step: MINUTE}) {
nodes {
... on ServiceNode {
sla
calls
numOfServiceAlarm
}
id
name
type
}
calls {
source
target
isAlert
callType
callsPerSec
avgResponseTime
}
}
}
OUTPUT
{
"data": {
"getServiceTopology": {
"nodes": [
{
"sla": 10000,
"calls": 3646,
"numOfServiceAlarm": 0,
"id": "-2",
"name": "/dubbox-case/case/dubbox-rest"
},
{
"sla": 10000,
"calls": 3646,
"numOfServiceAlarm": 0,
"id": "-1",
"name": "org.skywaking.apm.testcase.dubbo.services.GreetService.doBusiness()"
},
{
"id": "1",
"name": "User",
"type": "USER"
}
],
"calls": [
{
"source": "1",
"target": "-2",
"isAlert": false,
"callType": "Tomcat",
"callsPerSec": 20,
"avgResponseTime": 2000
},
{
"source": "-2",
"target": "-1",
"isAlert": false,
"callType": "Tomcat",
"callsPerSec": 20,
"avgResponseTime": 1980
}
]
}
}
}
hanahmily commented
Transfer to apache/skywalking#855