32 lines
1020 B
Python
32 lines
1020 B
Python
# -*- coding: utf-8 -*-
|
||||
|
|
"""iAOP-Template-Ti 一期 · 炉层杂质预警规则引擎包(Issue #72)。
|
|||
|
|
|
|||
|
|
导出声明式预警规则引擎(AlertRuleEngine)、预警分级(AlertSeverity)、规则/告警
|
|||
|
|
数据类与模板配置加载。换行业只改模板配置(alert_rules.template.yaml),引擎零改动
|
|||
|
|
(PRD line 152/171:阈值外置,行业工程师在配置台维护)。
|
|||
|
|
|
|||
|
|
注:特征工程(#70)与无监督模型(#71)见各自分支,合入后与本规则引擎组合,
|
|||
|
|
覆盖 PRD 5.3 ③ 场景 A 全链路(采集→特征→评分→规则分级→驾驶舱红色告警→LLM 解释)。
|
|||
|
|
"""
|
|||
|
|
from __future__ import annotations
|
|||
|
|
|
|||
|
|
from .alert_rules import (
|
|||
|
|
Alert,
|
|||
|
|
AlertCondition,
|
|||
|
|
AlertRule,
|
|||
|
|
AlertRuleEngine,
|
|||
|
|
AlertRulesTemplateConfig,
|
|||
|
|
AlertSeverity,
|
|||
|
|
load_alert_rules_config,
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
__all__ = [
|
|||
|
|
"Alert",
|
|||
|
|
"AlertCondition",
|
|||
|
|
"AlertRule",
|
|||
|
|
"AlertRuleEngine",
|
|||
|
|
"AlertRulesTemplateConfig",
|
|||
|
|
"AlertSeverity",
|
|||
|
|
"load_alert_rules_config",
|
|||
|
|
]
|