A pure function over the returned tibble, deliberately not a stored summary. A snapshot goes stale the moment you filter the rows; recomputing means fetch_report(subset(x, retryable)) is always correct.

fetch_report(x)

Arguments

x

A tibble from collect_content() or pie_cat().

Value

A one-row tibble: n, ok, failed, no_match, retryable, and list-columns by_stage, by_reason and missing (the domain_name of every failed row; no_match rows are a result, not a failure, and are not listed).

Examples

rows <- data.frame(
  domain_name = c("a.com", "b.com", "c.com"),
  status = c("ok", "failed", "failed"),
  stage = c("infer", "fetch", "process"),
  error_code = c(NA, "timeout", "thin_content"),
  retryable = c(FALSE, TRUE, FALSE)
)
fetch_report(rows)
#> # A tibble: 1 × 8
#>       n    ok failed no_match retryable by_stage         by_reason missing  
#>   <int> <int>  <int>    <int>     <int> <list>           <list>    <list>   
#> 1     3     1      2        0         1 <tibble [2 × 2]> <tibble>  <chr [2]>