You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@skywalking.apache.org by GitBox <gi...@apache.org> on 2018/03/02 15:00:18 UTC
[GitHub] peng-yongsheng opened a new pull request #860: "getClusterTopology","getApplicationTopology","loadAlarmList","getAlarmTrend"
peng-yongsheng opened a new pull request #860: "getClusterTopology","getApplicationTopology","loadAlarmList","getAlarmTrend"
URL: https://github.com/apache/incubator-skywalking/pull/860
### getClusterTopology
#### INPUT
```
{
getClusterTopology(duration: {start: "2017-06-01 1002", end: "2017-06-01 1005", step: MINUTE}) {
nodes {
... on ApplicationNode {
sla
callsPerSec
avgResponseTime
apdex
isAlarm
numOfServer
numOfServerAlarm
numOfServiceAlarm
}
id
name
type
}
calls {
source
target
isAlert
callType
callsPerSec
avgResponseTime
}
}
}
```
#### OUTPUT
```
{
"data": {
"getClusterTopology": {
"nodes": [
{
"sla": 100,
"callsPerSec": 20,
"avgResponseTime": 2000,
"apdex": 50,
"isAlarm": true,
"numOfServer": 0,
"numOfServerAlarm": 1,
"numOfServiceAlarm": 1,
"id": "-1",
"name": "dubbox-consumer",
"type": "Tomcat"
},
{
"sla": 100,
"callsPerSec": 20,
"avgResponseTime": 1000,
"apdex": 53,
"isAlarm": true,
"numOfServer": 0,
"numOfServerAlarm": 1,
"numOfServiceAlarm": 1,
"id": "2",
"name": "dubbox-provider",
"type": "Dubbo"
},
{
"id": "3",
"name": "localhost:27017",
"type": "MongoDB"
},
{
"id": "1",
"name": "User",
"type": "USER"
}
],
"calls": [
{
"source": "-1",
"target": "2",
"isAlert": false,
"callType": "Dubbo",
"callsPerSec": 20,
"avgResponseTime": 1980
},
{
"source": "2",
"target": "3",
"isAlert": false,
"callType": "MongoDB",
"callsPerSec": 20,
"avgResponseTime": 980
},
{
"source": "1",
"target": "-1",
"isAlert": false,
"callType": "",
"callsPerSec": 20,
"avgResponseTime": 2000
}
]
}
}
}
```
### getApplicationTopology
#### INPUT
```
{
getApplicationTopology(applicationId: -1, duration: {start: "2017-06-01 1002", end: "2017-06-01 1005", step: MINUTE}) {
nodes {
... on ApplicationNode {
sla
callsPerSec
avgResponseTime
apdex
isAlarm
numOfServer
numOfServerAlarm
numOfServiceAlarm
}
id
name
type
}
calls {
source
target
isAlert
callType
callsPerSec
avgResponseTime
}
}
}
```
#### OUTPUT
```
{
"data": {
"getApplicationTopology": {
"nodes": [
{
"sla": 100,
"callsPerSec": 20,
"avgResponseTime": 2000,
"apdex": 50,
"isAlarm": true,
"numOfServer": 0,
"numOfServerAlarm": 1,
"numOfServiceAlarm": 1,
"id": "-1",
"name": "dubbox-consumer",
"type": "Tomcat"
},
{
"sla": 100,
"callsPerSec": 20,
"avgResponseTime": 1000,
"apdex": 53,
"isAlarm": true,
"numOfServer": 0,
"numOfServerAlarm": 1,
"numOfServiceAlarm": 1,
"id": "2",
"name": "dubbox-provider",
"type": "Dubbo"
},
{
"id": "1",
"name": "User",
"type": "USER"
}
],
"calls": [
{
"source": "-1",
"target": "2",
"isAlert": false,
"callType": "Dubbo",
"callsPerSec": 20,
"avgResponseTime": 1980
},
{
"source": "1",
"target": "-1",
"isAlert": false,
"callType": "",
"callsPerSec": 20,
"avgResponseTime": 2000
}
]
}
}
}
```
### getAlarmTrend
#### INPUT
```
{
getAlarmTrend(duration: {start: "2017-06-01 1002", end: "2017-06-01 1005", step: MINUTE}) {
numOfAlarmRate
}
}
```
#### OUTPUT
```
{
"data": {
"getAlarmTrend": {
"numOfAlarmRate": [
3333,
3333,
3333,
3333
]
}
}
}
```
### loadAlarmList
#### INPUT
```
{
loadAlarmList(keyword: "slower", alarmType: APPLICATION, duration: {start: "2017-01", end: "2018-02", step: MONTH}, paging: {pageNum: 1, pageSize: 10}) {
total
items {
id
title
content
startTime
alarmType
causeType
}
}
}
```
#### OUTPUT
```
{
"data": {
"loadAlarmList": {
"total": 1,
"items": [
{
"id": "-1",
"title": "Application dubbox-consumer response time alarm.",
"content": "Response time of dubbox-consumer, detected from server side, is slower than 2000.0.",
"startTime": "2017-06-01 10:03",
"alarmType": "APPLICATION",
"causeType": "SLOW_RESPONSE"
}
]
}
}
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services