{% extends "data_center/base.html" %} {% block title %}{{ page_title }}{% endblock %} {% block subtitle %}针对宏观数据口径、source 别名和缺口序列的治理台。{% endblock %} {% block content %}

治理摘要

这里不只看 GDP。高风险宏观指标的口径、配对序列、source 规范和存量缺口都集中审计。

{% csrf_token %}
{% csrf_token %}
{% csrf_token %}
{% csrf_token %}
{% if action_result %}

最近执行结果

{{ action_result.label }} {{ action_result.status }}
{% if action_result.details.source %}
source
{{ action_result.details.source }}
{% endif %} {% if action_result.details.normalize %}
normalize
{{ action_result.details.normalize.command_output }}
{% endif %} {% if action_result.details.sync %}
sync
{{ action_result.details.sync.command_output }}
{% endif %} {% if action_result.details.command_output %}
{{ action_result.details.command_output }}
{% endif %} {% if not action_result.details.command_output and not action_result.details.source and not action_result.details.normalize and not action_result.details.sync %}
{{ action_result.details }}
{% endif %}
{% endif %}
治理覆盖指标
{{ snapshot.summary.governed_indicator_count }}
当前纳入口径治理和缺口审计的核心宏观指标数。
legacy source 行数
{{ snapshot.summary.alias_row_count }}
还在使用旧 source 别名的存量事实行数。
可自动补同步缺口
{{ snapshot.summary.missing_supported_count }}
catalog 已有、同步器也支持,但库里还没落数的指标。
真实未接入缺口
{{ snapshot.summary.catalog_only_gap_count }}
排除兼容别名后,catalog 已定义但同步链路尚未接入的口径。

Source 别名问题

{% if snapshot.source_alias_issues %}
{% for row in snapshot.source_alias_issues %} {% endfor %}
旧 source 目标 source 影响行数 最近期次
{{ row.from_source }} {{ row.to_source }} {{ row.row_count }} {{ row.latest_period|default:"-" }}
{% else %}
当前没有 legacy source 别名残留。
{% endif %}

可自动补同步的缺口

{% if snapshot.missing_sync_candidates %}
{% for row in snapshot.missing_sync_candidates %} {% endfor %}
指标 名称 语义 配对 状态
{{ row.code }} {{ row.name_cn }} {{ row.series_semantics|default:"-" }} {{ row.paired_indicator_code|default:"-" }} 待补同步
{% else %}
当前没有“已支持但未落数”的缺口。
{% endif %}

兼容别名 catalog

{% if snapshot.alias_catalogs %}
{% for row in snapshot.alias_catalogs %} {% endfor %}
别名指标 名称 canonical 指标 说明
{{ row.code }} {{ row.name_cn }} {{ row.alias_of_indicator_code|default:"-" }} 兼容保留,不单独落数,实际查询应走 canonical 指标。
{% else %}
当前没有仅作为兼容别名存在的 catalog 代码。
{% endif %}

真实 catalog-only 缺口

{% if snapshot.catalog_only_gaps %}
{% for row in snapshot.catalog_only_gaps %} {% endfor %}
指标 名称 语义 配对 说明
{{ row.code }} {{ row.name_cn }} {{ row.series_semantics|default:"-" }} {{ row.paired_indicator_code|default:"-" }} catalog 已定义,当前同步器未接入或未开通该口径。
{% else %}
当前没有 catalog-only 缺口。
{% endif %}

指标审计矩阵

{% for row in snapshot.indicator_rows %} {% endfor %}
指标 名称 语义 数据量 最近期次 source 标签
{{ row.code }}
{{ row.name_cn }}
{% if row.description %}
{{ row.description }}
{% endif %}
{{ row.series_semantics|default:"-" }} {{ row.row_count }} {{ row.latest_period|default:"-" }} {% if row.source_names %} {{ row.source_names|join:", " }} {% else %} - {% endif %}
{% for tag in row.tags %} {% if tag == "healthy" %} healthy {% elif tag == "legacy_source_alias" %} legacy source {% elif tag == "missing_supported" %} missing supported {% elif tag == "catalog_only_gap" %} catalog-only gap {% elif tag == "paired_gap" %} paired gap {% else %} {{ tag }} {% endif %} {% endfor %}
{% endblock %}