arugal opened a new pull request #10: [Feature] Support instance  list command
URL: https://github.com/apache/skywalking-cli/pull/10
 
 
   works like this:
   ```bash
   ./bin/swctl --debug i ls --service=5  --start=2019-11-09 --step=MONTH
   DEBUG Start time: 2019-11-09 end time:             
   DEBUG >> variables: map[duration:{2019-11-09 2019-12-09 DAY} serviceId:5] 
   DEBUG >> query: 
                   query ($serviceId: ID!, $duration: Duration!) {
                   instances: getServiceInstances(duration: $duration, 
serviceId: $serviceId) {
                           id
                           name
                           language
                                   instanceUUID
                           attributes {
                                   name
                                   value
                           }
                           }
                   }
            
   DEBUG >> headers: map[Accept:[application/json; charset=utf-8] 
Content-Type:[application/json; charset=utf-8]] 
   DEBUG << 
{"data":{"instances":[{"id":"5","name":"projectD-pid:4760@skywalking-server-0001","language":"JAVA","instanceUUID":"5459474cc9864567873793ebd268500a","attributes":[{"name":"os_name","value":"Linux"},{"name":"host_name","value":"skywalking-server-0001"},{"name":"process_no","value":"4760"},{"name":"ipv4s","value":"192.168.252.12"}]}]}}
 
   - id: "5"
     name: projectD-pid:4760@skywalking-server-0001
     attributes:
     - name: os_name
       value: Linux
     - name: host_name
       value: skywalking-server-0001
     - name: process_no
       value: "4760"
     - name: ipv4s
       value: 192.168.252.12
     language: JAVA
     instanceuuid: 5459474cc9864567873793ebd268500a
   
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

Reply via email to