Skip to content

Add show-metrics command (Issue #353)#1119

Open
Sid-V5 wants to merge 4 commits intogoogle:masterfrom
Sid-V5:add-show-metrics-353
Open

Add show-metrics command (Issue #353)#1119
Sid-V5 wants to merge 4 commits intogoogle:masterfrom
Sid-V5:add-show-metrics-353

Conversation

@Sid-V5
Copy link

@Sid-V5 Sid-V5 commented Feb 12, 2026

added a show-metrics command (alias metrics) to fetch and display Apps Script project metrics, addressing issue #353.

Changes

  • src/core/project.ts: Added getMetrics() method to the Project class, creating a wrapper around script.projects.getMetrics.
  • src/commands/show-metrics.ts: Implemented the new command. It displays 'Active Users', 'Failed Executions', and 'Total Executions' with valid start/end times. Supports --json flag.
  • src/commands/program.ts: Registered the show-metrics command.

Usage

clasp show-metrics
# OR
clasp metrics
# OR
clasp metrics --json

This feature provides a quick way to check project health directly from the CLI.

Resolves #353

@google-cla
Copy link

google-cla bot commented Feb 12, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clasp metrics

1 participant