# Data and metrics

Read `GET /api/v1/status` for feed completion and `GET /api/v1/metrics` for the inventory and latency distributions.

```sh
curl -fsS 'https://security.getomg.dev/api/v1/metrics'
```

## Check freshness and coverage

| Field | How to use it |
| --- | --- |
| `as_of` | Time at which the metrics response was assembled. |
| `cve_index.checked_at` | Time of the last CVE index check, when available. |
| `cve_index.current` | Indicates the CVE feed has a fresh, successful, complete check. |
| `inventory.as_of` and `inventory.current` | Time and freshness of inventory counts. A returned inventory can be stale. |
| `delivery.tracking_started_at` | Start of observation for delivery measurements. |
| `delivery.*.samples` | Number of measured observations for that stage. Compare sample sizes before comparing percentiles. |

Check `inventory.publication_window_start` when interpreting the published-CVE count for the last 24 hours. Inventory fields count distinct categories including CVE records, CVEs with documented zero-day evidence, package advisory IDs, and malware advisory IDs.

## Interpret the latency stages

| Stage | What it measures |
| --- | --- |
| `publication_to_intake` | Public CVE publication to recorded feed intake. |
| `publication_to_index_write` | Public publication to the first measured database write for that published CVE. |
| `publication_to_confirmed_index` | Public publication to the first observed successful read from the index. |
| `publication_to_notification` | Public publication to dispatch of a measured live dashboard update. |
| `publication_to_api_reject` | Public publication to the first observed reject verdict returned by the assessment API. |

Each distribution reports `samples`, `p50_ms`, and `p95_ms` for the rolling observation window. The timestamps and distributions refer to different stages. Dashboard dispatch measures the server's observation. For customer webhook delivery, inspect the delivery history.

## Distinguish zero, unavailable, and stale

- A zero inventory count is a measured count at `inventory.as_of`.
- A `null` inventory or distribution indicates unavailable data for that field. A distribution with zero samples and `null` percentiles has no observations for the window.
- A `current: false` flag identifies a stale or incomplete snapshot. Avoid treating that snapshot as a fresh check.
- The returned percentiles describe the measured cohort and window. Report them with the sample count and stage.

See [index health on the dashboard](/sources#delivery), [publisher notices](/sources#data-notices), or [API request details](/docs/api-reference/).
