[优化] 设置状态监控

This commit is contained in:
PandaX-Go
2024-12-04 21:47:24 +08:00
parent 7c021f8be9
commit ffe6e859af
18 changed files with 314 additions and 410 deletions

View File

@@ -25,7 +25,7 @@ func (r *RuleChainApi) GetNodeDebug(rc *restfulx.ReqCtx) {
ruleId := restfulx.QueryParam(rc, "ruleId")
nodeId := restfulx.QueryParam(rc, "nodeId")
total, list, err := rule_engine.GetDebugDataPage(pageNum, pageSize, ruleId, nodeId)
total, list, err := rule_engine.RuleEngine.GetDebugDataPage(pageNum, pageSize, ruleId, nodeId)
biz.ErrIsNil(err, "获取规则测试数据错误")
rc.ResData = model.ResultPage{
Total: total,
@@ -38,7 +38,7 @@ func (r *RuleChainApi) GetNodeDebug(rc *restfulx.ReqCtx) {
func (r *RuleChainApi) ClearNodeDebug(rc *restfulx.ReqCtx) {
ruleId := restfulx.QueryParam(rc, "ruleId")
nodeId := restfulx.QueryParam(rc, "nodeId")
rule_engine.ClearDebugData(ruleId, nodeId)
rule_engine.RuleEngine.ClearDebugData(ruleId, nodeId)
}
// GetRuleChainList WorkInfo列表数据