ascrutae commented on issue #1146: SkyWalking 5.0.0-beta e2e test URL: https://github.com/apache/incubator-skywalking/issues/1146#issuecomment-386556910 # Report @ 2018/05/04 ## Issue ### Topology * **[COLLECTOR]** the server alarm value is incorrect. Except is 1, but it was 2 screensnapshot <img width="383" alt="topology-server" src="https://user-images.githubusercontent.com/12436447/39622549-416efdf8-4fc5-11e8-92b0-b557c8411ed4.png"> Request URL: `http://localhost:8080/api/topology` Request param: ``` {"variables":{"duration":{"start":"2018-05-04 1713","end":"2018-05-04 1728","step":"MINUTE"}},"query":"\n query Topology($duration: Duration!) {\n getClusterTopology(duration: $duration) {\n nodes {\n id\n name\n type\n ... on ApplicationNode {\n sla\n cpm\n avgResponseTime\n apdex\n isAlarm\n numOfServer\n numOfServerAlarm\n numOfServiceAlarm\n }\n }\n calls {\n source\n target\n isAlert\n callType\n cpm\n avgResponseTime\n }\n }\n }\n "} ``` Response Data: ``` {"data":{"getClusterTopology":{"nodes":[{"id":"-2","name":"portal-service","type":"Tomcat","sla":99,"cpm":150,"avgResponseTime":3514,"apdex":88,"isAlarm":true,"numOfServer":1,"numOfServerAlarm":2,"numOfServiceAlarm":5},{"id":"-1","name":"persistence-service","type":"Dubbo","sla":100,"cpm":147,"avgResponseTime":1,"apdex":100,"isAlarm":true,"numOfServer":1,"numOfServerAlarm":2,"numOfServiceAlarm":5},{"id":"2","name":"cache-service","type":"Motan","sla":100,"cpm":299,"avgResponseTime":556,"apdex":98,"isAlarm":true,"numOfServer":1,"numOfServerAlarm":2,"numOfServiceAlarm":5},{"id":"-5","name":"localhost:27017","type":"MongoDB"},{"id":"-3","name":"127.0.0.1:6379","type":"Redis"},{"id":"3","name":"localhost:-1","type":"H2"},{"id":"4","name":"127.0.0.1:3307","type":"Mysql"},{"id":"1","name":"User","type":"USER"}],"calls":[{"source":"2","target":"-5","isAlert":false,"callType":"MongoDB","cpm":296,"avgResponseTime":117},{"source":"2","target":"-3","isAlert":false,"callType":"Redis","cpm":298,"avgResponseTime":1},{"source":"2","target":"3","isAlert":false,"callType":"H2","cpm":597,"avgResponseTime":0},{"source":"-2","target":"2","isAlert":false,"callType":"Motan","cpm":300,"avgResponseTime":550},{"source":"-2","target":"-1","isAlert":false,"callType":"Dubbo","cpm":150,"avgResponseTime":257},{"source":"-1","target":"4","isAlert":false,"callType":"Mysql","cpm":295,"avgResponseTime":0},{"source":"1","target":"-2","isAlert":false,"callType":"","cpm":149,"avgResponseTime":3511}]}}} ``` request URL: `http://localhost:8080/api/notice` request param: ``` {"query":"\n query Notice($duration:Duration!){\n applicationAlarmList: loadAlarmList(alarmType: APPLICATION, duration: $duration, paging: { pageNum: 1, pageSize: 5, needTotal: true }) {\n items {\n title\n startTime\n causeType\n }\n total\n }\n serverAlarmList: loadAlarmList(alarmType: SERVER, duration: $duration, paging: { pageNum: 1, pageSize: 5, needTotal: true }) {\n items {\n title\n startTime\n causeType\n }\n total\n }\n }\n","variables":{"duration":{"start":"2018-05-04 1713","end":"2018-05-04 1728","step":"MINUTE"}}} ``` Response body: ``` {"data":{"applicationAlarmList":{"items":[{"title":"Application cache-service response time alarm.","startTime":"2018-05-04 17:21","causeType":"SLOW_RESPONSE"},{"title":"Application cache-service response time alarm.","startTime":"2018-05-04 17:21","causeType":"SLOW_RESPONSE"},{"title":"Application portal-service response time alarm.","startTime":"2018-05-04 17:23","causeType":"SLOW_RESPONSE"}],"total":3},"serverAlarmList":{"items":[{"title":"Server ascrutae of Application cache-service response time alarm.","startTime":"2018-05-04 17:21","causeType":"SLOW_RESPONSE"},{"title":"Server ascrutae of Application portal-service response time alarm.","startTime":"2018-05-04 17:23","causeType":"SLOW_RESPONSE"}],"total":2}}} ```
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services