kezhenxu94 commented on issue #6: [Feature] Set GraphQL client and add service ls command URL: https://github.com/apache/skywalking-cli/pull/6#issuecomment-552094691 Tackling the time seems much more complicated than I thought, to clarify(which I think should be included in the command manual): - when `start` and `end` are both absent, `start = now - 30min` and `end = now`, namely past 30 minutes - when `start` and `end` are both present, they are aligned to same precision by truncating the more precise one, e.g. if `start = 2019-01-01 1234, end = 2019-01-01 18`, then `start = 2019-01-01 12, end = 2019-01-01 18` - when `start` is absent and `end` is present, will determine the precision of `end` and then use the precision to calculate `start`(by minus 30 units), e.g. `end = 2019-11-09 1234`, the precision is `MINUTE`, so `start = end - 30MIN = 2019-11-09 1204`; and if `end = 2019-11-09 12`, the precision is `HOUR`, so `start = end - 30HOUR = 2019-11-08 06` - when `start` is present and `end` is absent, will determine the precision of `start` and then use the precision to calculate `end`(by plus 30 units), e.g. `start = 2019-11-09 1204`, the precision is `MINUTE`, so `end = end + 30MIN = 2019-11-09 1234`; and if `start = 2019-11-08 06`, the precision is `HOUR`, so `start = end + 30HOUR = 2019-11-09 12` @wu-sheng can you confirm?
---------------------------------------------------------------- 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