Apache karaf Apache UNOMI中的段创建问题
在过去的两周里,我一直在探索Unomi,在这个过程中,我创建了用户会话和事件,并创建了一些关于用户属性和事件类型的分段,但当我想创建关于事件属性的分段时,我被卡住了 首先,这是我们向联米观察团发送的事件-Apache karaf Apache UNOMI中的段创建问题,apache-karaf,Apache Karaf,在过去的两周里,我一直在探索Unomi,在这个过程中,我创建了用户会话和事件,并创建了一些关于用户属性和事件类型的分段,但当我想创建关于事件属性的分段时,我被卡住了 首先,这是我们向联米观察团发送的事件- { "source":{ "itemType":"pageView", "scope":"the-coolest-website", "itemId":"pageView" }, "events":[ {
{
"source":{
"itemType":"pageView",
"scope":"the-coolest-website",
"itemId":"pageView"
},
"events":[
{
"eventType":"view",
"scope":"the-coolest-website",
"source":{
"itemType":"pageView",
"scope":"the-coolest-website",
"itemId":"pageView"
},
"properties":{
"myProperty":"myValue"
}
}
]
}
我们试图做的是创建一个段,该段以具有以下myProperty:myValue键-值对的事件为目标
我创建的部分如下所示:
{
"metadata": {
"id": "myPropertySegment",
"name": "myPropertySegment",
"scope":"the-coolest-website",
"description": "The user has this segment if it has acessed our products Website.",
"readOnly": true
},
"condition": {
"parameterValues": {
"subConditions": [
{
"parameterValues": {
"propertyName": "myProperty",
"comparisonOperator": "equals",
"propertyValue": "myValue"
},
"type": "eventPropertyCondition"
}
],
"operator": "and"
},
"type": "booleanCondition"
}
}
在上述事件属性段中,没有资格将事件属性设置为“myProperty”:“myValue”
已根据事件类型创建另一段:
{
"metadata": {
"id": "eventCondition",
"name": "eventCondition",
"scope": "the-coolest-website",
"description": "The user has this segment if it has acessed our products Website.",
"readOnly": true
},
"condition": {
"parameterValues": {
"subConditions": [
{
"parameterValues": {
"propertyName": "eventType",
"comparisonOperator": "equals",
"propertyValue": "myAwesomeUserEvent"
},
"type": "eventTypeCondition"
}
],
"operator": "and"
},
"type": "booleanCondition"
}
}
在上面的事件类型段中,将eventType限定为myAwesomeUserEvent的用户
请帮助我在事件属性上创建分段,并告知我在创建分段时是否有任何错误