Track productivity metrics
The Productivity metrics page shows how much scanning your organization does, how reliably those scans finish, and where open risk sits. Open it from the sidebar under Analyze → Metrics.
Every panel loads on its own. If one data source fails, only the panels that read it show an error with a Retry button; the rest of the page stays current.
Read the summary cards
| Card | What it counts | Comparison |
|---|---|---|
| Scans (30d) | Scan runs created in the last 30 days, with completed and failed counts underneath | vs prior 30d: the 30 days before that |
| Open security findings | Open security findings on the latest scan of each repository | vs 7 days ago: the latest scans as of one week earlier |
| Completion rate (30d) | Completed runs divided by all runs in the last 30 days | Change in percentage points against the prior 30 days |
| Avg duration (30d) | Mean duration of completed runs in the last 30 days | Change against the prior 30 days |
A comparison reads no prior 30d when there were no scans in the earlier window. Open security findings reads Not scanned until at least one repository has a completed scan. That is not the same as having zero findings.
Open security findings come from the latest scan per repository, so scanning a repository again never inflates the count. If an engine did not complete on one of those scans, the card adds a partial-coverage note.
Review the charts
Scan activity (30 days) stacks each day’s runs into Completed, Failed, and Running or pending, and states the failure share under the chart.
Issues by severity shows open critical, high, medium, and low findings from the latest scans and tells you what share is critical or high. When no repository has been scanned yet, the panel says so instead of drawing an empty chart.
Check how long findings stay open
Open findings by age groups open security findings into < 7 days, 7-30 days, 30-90 days, and > 90 days. Age is measured from when CodeStax first saw the finding, which carries over between scans of the same repository. When the first-seen date is missing, CodeStax uses that scan’s date instead. The summary line gives the share of findings open for more than 30 days.
If the API does not report finding age, the panel shows Not available yet and links to the Security center, where you can see SLA state per finding. See Triage vulnerabilities.
Review activity
The Review activity panel shows four tiles: Total reviews, Approved, Changes requested, and Pending.
Known issue: in the current release, Total reviews, Approved, and Changes requested show 0 even when reviews exist, because the panel reads fields that the review statistics endpoint does not return. Pending is correct. For review counts, use the PR reviews queue or DORA metrics.
Find the repositories that need attention
Top repositories by risk lists up to six repositories that have open findings on their latest completed scan. They are ranked by exploit signal first, then by severity:
- Findings on the CISA Known Exploited Vulnerabilities list (
KEVtag) - Findings with an EPSS probability of 10% or more (
EPSStag) - Findings with a proven path from an entry point (
Reachabletag) - Critical findings, then high findings
Suppressed findings do not count toward the ranking. Repositories that have never been scanned are not ranked; a note under the list shows how many there are.
Productivity metrics is an operational dashboard. For quality ratings, coverage, and technical debt, use the Code Quality Dashboard. For pull-request delivery indicators, use DORA metrics.
Use the metrics API
The repository ranking comes from GET /api/metrics/dashboard. Pass period_days (1 to 365, default 30) to change the window used for the totals:
$ curl -s -H "X-API-Key: $CODESTAX_API_KEY" \
"https://codestax.co/api/metrics/dashboard?period_days=90"The response contains totals, efficiency (completion rates, average durations, runs per day), effectiveness (false-positive rate, high-confidence findings, review feedback), severity_counts, daily_activity, top_risky_repositories (up to 10, same ranking as the panel), and never_scanned_repositories.
severity_counts and the effectiveness figures count findings from every scan created in the period. A repository scanned three times counts three times, so these numbers will not match the page’s per-repository cards.
The same router has two endpoints that the page does not display:
| Endpoint | Returns |
|---|---|
GET /api/metrics/leaderboard | PR authors ranked by completed reviews and review findings; limit from 1 to 50 |
GET /api/metrics/summaries | Short text summaries of risk, throughput, and finding quality for the period |
All three endpoints are scoped to your organization and return empty results when there is no organization context.