pub async fn track_patch_scanned(
packages_scanned: usize,
free_patches: usize,
paid_patches: usize,
can_access_paid: bool,
ecosystems: &[String],
fallback_to_proxy: bool,
api_token: Option<&str>,
org_slug: Option<&str>,
)Expand description
Track a successful scan. Reports per-tier patch counts and whether
the call was downgraded to the public proxy after an auth-endpoint
401/403 (fallback_to_proxy).
The argument count intentionally mirrors the metadata fields the
dashboard needs — grouping them into a struct would force callers
to build a config object for a single fire-and-forget call, which
is worse ergonomics for a tracker. track_patch_event is the
general path when you need that flexibility.