Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

service/getServiceTopology #115

Closed
hanahmily opened this issue Feb 12, 2018 · 2 comments
Closed

service/getServiceTopology #115

hanahmily opened this issue Feb 12, 2018 · 2 comments

Comments

@hanahmily
Copy link
Collaborator

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
Copy link
Member

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
Copy link
Collaborator Author

Transfer to apache/skywalking#855

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants