ftb_xiaobao:
  query: |
    SELECT
      count(*)::float AS stale_summary_count
    FROM xiaobao_risk_summaries
    WHERE dirty = true
       OR updated_at < now() - interval '6 hours';
  metrics:
    - stale_summary_count:
        usage: GAUGE
        description: Xiaobao risk summaries that are dirty or older than 6 hours.

