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

application/getSlowService #94

Closed
hanahmily opened this issue Feb 8, 2018 · 3 comments
Closed

application/getSlowService #94

hanahmily opened this issue Feb 8, 2018 · 3 comments

Comments

@hanahmily
Copy link
Collaborator

Cannot return null for non-nullable type: 'null' within parent 'Query' (/getSlowService)

@hanahmily
Copy link
Collaborator Author

Input

{  
   "variables":{  
      "duration":{  
         "start":"2017-02",
         "end":"2018-02",
         "step":"MONTH"
      },
      "applicationId":"-1"
   },
   "query":"
  query Application($applicationId: ID!, $duration: Duration!) {
    getSlowService(applicationId: $applicationId, duration: $duration, top: 10) {
      key: id
      name
      avgResponseTime
    }
    
  }
"
}

Output

{"data":{"getSlowService":[{"key":"-2","name":"/dubbox-case/case/dubbox-rest","avgResponseTime":4624}]}}

@peng-yongsheng
Copy link
Member

  1. Changed the attribute name from TPS to callsPerSec.

INPUT

{
  getSlowService(applicationId: 2, duration: {start: "2017-06-01 1002", end: "2017-06-01 1005", step: MINUTE}, topN: 10) {
    id, name, avgResponseTime, callsPerSec
  }
}

OUTPUT

{
  "data": {
    "getSlowService": [
      {
        "id": "2",
        "name": "org.skywaking.apm.testcase.dubbo.services.GreetService.doBusiness()",
        "avgResponseTime": 1000,
        "callsPerSec": 20
      }
    ]
  }
}

@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