clasp icon indicating copy to clipboard operation
clasp copied to clipboard

Implement metrics command (google/clasp#353)

Open kalmi opened this issue 4 years ago • 3 comments

Fixes #353. CI breakage is expected due to scopes change.

Only basic metrics listing is implemented from the data provided by the getMetrics API.

Example:

$ clasp metrics
UTC Dates
2020-03-20  0 users   0 executions  0 failed
2020-03-19  0 users   0 executions  0 failed
2020-03-18  0 users   0 executions  0 failed
2020-03-17  0 users   0 executions  0 failed
2020-03-16  0 users   0 executions  0 failed
2020-03-15  1 user    1 execution   0 failed
2020-03-14  2 users  21 executions  2 failed
  • [X] npm run test succeeds.
  • [X] npm run lint succeeds.
  • [X] Appropriate changes to README are included in PR.

A separate issue could be opened for extending the metrics command with data provided by the processes API. There is a lot of potential in the processes API for extending this command.

kalmi avatar Mar 23 '20 21:03 kalmi

@kalmi can you give a look at the failing test? TIA

PopGoesTheWza avatar May 15 '20 17:05 PopGoesTheWza

I think the token used by the CI needs to be recreated with the new scopes. I think it comes from the CREDS env variable.

kalmi avatar May 26 '20 18:05 kalmi

@kalmi sorry for the late reply, I no longer use clasp and rarely check this repo. If this PR is still relevant, can you give a shot at resolving the above conflicts?

PopGoesTheWza avatar Dec 27 '23 14:12 PopGoesTheWza