Просмотр исходного кода

修复无法查询规则事件的问题

zhou-hao 5 лет назад
Родитель
Сommit
9518b5473b

+ 2 - 1
jetlinks-components/rule-engine-component/src/main/java/org/jetlinks/community/rule/engine/configuration/RuleEngineLogIndexInitialize.java

@@ -26,10 +26,11 @@ public class RuleEngineLogIndexInitialize {
             .addProperty("nodeId", new StringType())
             .addProperty("instanceId", new StringType()))
             .then(
-                indexManager.putIndex(new DefaultElasticSearchIndexMetadata(RuleEngineLoggerIndexProvider.RULE_LOG.getIndex())
+                indexManager.putIndex(new DefaultElasticSearchIndexMetadata(RuleEngineLoggerIndexProvider.RULE_EVENT_LOG.getIndex())
                     .addProperty("createTime", new DateTimeType())
                     .addProperty("event", new StringType())
                     .addProperty("nodeId", new StringType())
+                    .addProperty("ruleData",new StringType())
                     .addProperty("instanceId", new StringType()))
             )
             .subscribe();