{"tenant":"customer-demo","purpose":"traffic analytics, aggregate only","allow_columns":["host","status","ua_class","path","day"],"leak_seed":7,
 "aggregates":[
  {"id":"top_hosts","columns":["host"],"sql":"SELECT host, COUNT(*) AS n FROM hits WHERE day='2026-11-28' GROUP BY host ORDER BY n DESC LIMIT 5"},
  {"id":"errors","columns":["host","status"],"sql":"SELECT host, SUM(CASE WHEN status>=500 THEN 1 ELSE 0 END) AS e FROM hits WHERE day='2026-11-28' GROUP BY host HAVING e>0 ORDER BY e DESC LIMIT 5"},
  {"id":"bots","columns":["ua_class"],"sql":"SELECT ua_class, COUNT(*) AS n FROM hits WHERE day='2026-11-28' GROUP BY ua_class ORDER BY n DESC LIMIT 5"},
  {"id":"paths","columns":["path"],"sql":"SELECT path, COUNT(*) AS n FROM hits WHERE day='2026-11-28' GROUP BY path ORDER BY n DESC LIMIT 5"}
 ]}
