String id
String group
String eventName
String argsIndexes
事件源的args参数的索引名称,例如事件源为new Object[]{user, message},两个参数,那么这里传输到服务端变成JSON的字符串,如下:
[{
'userName':'Jacky',
'age':20
},{
'id':'1',
'content':'hello world'
}]
那么设置索引的值为:[0].userName,[1].id,那么事件监控的Collection,将会创建为这两个对象创建这个索引到custom字段中,如果参数是个数组,
可以使用[0][].id之类的符号描述,使用[]这个中括号
String resultIndexes
结果索引配置,如果result是一个对象,可以直接使用对象内的属性名称作为建立索引的名称,例如
{
'userName':'Jacky',
'age':20,
'userId':'100001'
}
那么可以设置为userName,userId 使用,分割
如果result是一个同类型的数组,如果需要将数组内的某个字段都写入到索引中,可以使用[].userId
Date created
Date modified
boolean wildcard
String wildcardId
boolean matched
String id
String nodeId
String nodeHost
String nodeName
String nodeGroup
Long took
String exception
boolean success
String listenerClazz
String eventArgs
String eventResult
String fromNodeId
String eventId
String eventName
Date eventCreate
Date eventConsumed
String mdcValue
boolean array
Integer arrayIndex
JsonRule.array为true,那么可以指定为取某个下标的值String field
JsonRule.array为false,那么可以指定某个JSON的field值JsonRule embedded
Copyright © 2018 Jue Ming. All rights reserved.