Data Lineage: <Data Product Или Flow>
Назначение
Опиши путь данных от source of truth до consumers: events, projections, search documents, ClickHouse facts, reports и frontend view models.
Классификация
| Поле | Значение |
|---|
| Владелец данных | <service/team> |
| Source of truth | <entity/service> |
| Consumers | <services/apps/reports> |
| Чувствительность | <Public/Internal/PII/Sensitive/Financial> |
| Freshness target | <SLA> |
Исходные Source Модели
| Источник | Модель | Владелец | Ключ | Retention |
|---|
<entity/event/API> | <TypedModel> | <service> | TenantId + <key> | <duration> |
Преобразования
| Шаг | Input Model | Output Model | Правило преобразования | Владелец |
|---|
<step> | <InputModel> | <OutputModel> | <field mapping/filter/aggregation> | <service/job> |
Выходные Output Модели
<OutputModel>
| Поле | Тип | Обязательность | Source field | Расчет | Безопасность |
|---|
<FieldName> | <Type> | Да/Нет | <source> | <formula> | <mask/exclude> |
Свежесть И Consistency
| Consumer | Source | Freshness SLA | Поведение при stale данных |
|---|
<consumer> | <projection/fact/index> | <duration> | <fail closed/show stale/rebuild> |
Правила Качества
| Правило | Проверка | Действие при ошибке |
|---|
<rule> | <query/metric/assertion> | <alert/retry/quarantine> |
Безопасность
| Класс данных | Поля | Правило |
|---|
<PII/Sensitive/Financial> | <field list> | <mask/encrypt/exclude/audit> |
Повторная Обработка
| Сценарий | Метод | Идемпотентность |
|---|
| Backfill | <job/script/event replay> | <key and duplicate behavior> |
| Projection rebuild | <process> | <safe rebuild rule> |
| Correction | <manual/reconciliation> | <audit and approval> |
Наблюдаемость
| Сигнал | Metric/Log | Порог |
|---|
| Lag | <metric> | <threshold> |
| Errors | <metric/log> | <threshold> |
| Row counts | <metric/query> | <expected range> |
Обратные ссылки
Автоссылки: где используется этот документ.