mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
[优化] 设置状态监控
This commit is contained in:
@@ -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列表数据
|
||||
|
||||
@@ -5,11 +5,7 @@ import (
|
||||
)
|
||||
|
||||
type RuleDataJson struct {
|
||||
Id string
|
||||
LfData LfData `json:"lfData"`
|
||||
}
|
||||
|
||||
type LfData struct {
|
||||
Id string
|
||||
GlobalColor string `json:"globalColor"`
|
||||
DataCode map[string]interface{} `json:"dataCode"`
|
||||
OpenRule bool `json:"openRule"`
|
||||
|
||||
Reference in New Issue
Block a user