DocsSecurity & ComplianceSecurity Trends

Security Trends

The Trend panel of the Security overview page shows, day by day, how many findings were created and resolved and how many are open per severity, so you can tell whether findings are piling up or being worked off. It reads the Daily Security Statistics (/docs/security/daily-stats), never the live queue.


Overview

The panel sits under the cards of the Security overview page (sidebar Security → Security overview, /dashboard/security), full width, with two charts: "Created vs resolved" (created and resolved findings per day, two lines) and "Open by severity" (open findings per day as stacked bars for critical, high, medium, low and info, in the same colors as the severity donut). "Resolved" counts every resolution of the day, auto-resolved findings included. Every chart has a "View as table" button that shows the same values as a table with one row per day ("View as chart" goes back). The panel always shows the whole platform ("All infrastructure", the global dimension): the team filter of the page is a text match on the asset team and does not select a Team, so it does not apply to the trends.

Security overview: findings by severity, trends and the prioritized findings queue

Periods

The 7D / 30D / 90D selector picks the window: the N UTC days that end with yesterday, the last day the nightly snapshot can have written. Yesterday stays a gap until the nightly snapshot runs at 00:15 UTC. The default is 30D. The selected period and scale live in the URL (trend_range=7d|30d|90d, trend_scale=lin|log; absent when they are the defaults, invalid values fall back to the defaults), so Back and Forward restore the previous view and changing them keeps the page and the selection of the findings queue.

Linear and logarithmic scale

The LIN / LOG selector applies only to "Created vs resolved": LOG helps when a large import day dwarfs the normal days. log(0) does not exist, so in LOG a day with 0 created or 0 resolved findings has no point on the line and the axis starts from 1; the tooltip and the table still show the real value, 0 included. "Open by severity" is always linear: stacked bars on a log axis would be misleading.

Missing and reconstructed days

A day without a stored row (the snapshot did not run and the backfill did not cover it) is a gap in the line, an empty bar and a "—" in the tables: it is never shown as zero. When at least one day of the window was rebuilt by backfill_security_stats the panel says "Includes days rebuilt by the backfill": those numbers use the current severity, priority, KEV flag and due date of the findings (see the Metadata section of Daily Security Statistics). When no day of the window has data the panel says so.

API

GET /api/v1/security/trends/?range=7d|30d|90d&dimension=global|environment:<id>|team:<id> is read-only and open to every authenticated user, viewers included. range defaults to 30d and dimension to global; an unknown range, a malformed dimension or an id of an Environment or Team that does not exist is answered with 400 and a detail message. days always has exactly one entry per day of the window, in ascending order; a day without a row has available: false and every value null. open_by_severity always has the five severities. reconstructed at the top is true when at least one day comes from the backfill.

{
  "range": "7d",
  "dimension": "global",
  "start": "2026-11-21",
  "end": "2026-11-27",
  "reconstructed": true,
  "days": [
    {
      "date": "2026-11-21",
      "available": false,
      "reconstructed": false,
      "created": null,
      "resolved": null,
      "auto_resolved": null,
      "kev_open": null,
      "overdue": null,
      "open_by_severity": null
    },
    {
      "date": "2026-11-22",
      "available": true,
      "reconstructed": true,
      "created": 12,
      "resolved": 0,
      "auto_resolved": 0,
      "kev_open": 2,
      "overdue": 5,
      "open_by_severity": { "critical": 3, "high": 9, "medium": 20, "low": 4, "info": 0 }
    }
  ]
}