{% extends "base.html" %} {% block title %}数据看板 — News Harvester{% endblock %} {% block extra_head %} {% endblock %} {% block content %}

数据看板

最近 7 天采集产出统计,每 5 分钟自动刷新 · 文章数=归档并推送成功的篇数

今日文章
{{ tot.today_arts }}
篇已交付
今日场次
{{ tot.today_runs }}
{{ tot.today_ok }} 成功 · {{ tot.today_warn }} 部分 · {{ tot.today_fail }} 失败
7 天文章
{{ tot.arts }}
篇
7 天场次
{{ tot.runs }}
{{ tot.ok }} ✓ · {{ tot.warn }} ⚠ · {{ tot.fail }} ✗
7 天成本
${{ '%.2f'|format(tot.cost) }}
全部 provider 合计
当前运行
{% if active %}
{{ active|length }}
{{ active|join('、') }}
{% else %}
0
空闲
{% endif %}

每日产出(按站点堆叠)

{% for g in [100, 75, 50, 25] %}
{{ (chart_axis_max * g / 100)|int }}
{% endfor %} {% for b in bars %}
{% if b.total %}
{{ b.total }}
{% endif %} {% for s in b.segs %}
{% endfor %}
{% endfor %}
{% for b in bars %}{{ b.day[5:] }}{% endfor %}
{% for s, color, n in sites %}{{ s }} {{ n }} 篇{% endfor %}

逐源表现(7 天)

{% for r in rows %} {% endfor %}
栏目今日7天文章场次 ✓/⚠/✗最近运行
{{ r.name }}{% if r.display and r.display != r.name %} {{ r.display }}{% endif %} {{ r.today or '—' }} {{ r.d7 }} {{ r.runs7 }} · {{ r.ok }}/{{ r.warn }}/{{ r.fail }} {{ r.last_at[5:16] if r.last_at != '—' else '—' }} {% if r.last_status == 'SUCCESS' %}✓ {% elif r.last_status == 'WARNING' %}⚠ {% elif r.last_status != '—' %}✗{% endif %}

失败原因 Top(7 天)

{% if fail_top %}
{% for k, v in fail_top %} {% endfor %}
类型次数
{{ k }}{{ v }}
{% else %}

近 7 天无失败记录 🎉

{% endif %}
{% endblock %}