|
@@ -176,7 +176,7 @@
|
|
|
"actions":[
|
|
|
{
|
|
|
"memory": {
|
|
|
- "keyField": "id",
|
|
|
+ "keyField": "memKey",
|
|
|
"rowkindField": "action",
|
|
|
"topic": "alertVal",
|
|
|
"sendSingle": true
|
|
@@ -258,7 +258,7 @@
|
|
|
<collectionProp name="Arguments.arguments">
|
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
- <stringProp name="Argument.value">{"sql":"CREATE TABLE alertTable() WITH (DATASOURCE=\"alertVal\", TYPE=\"memory\", KIND=\"lookup\", KEY=\"id\")"}</stringProp>
|
|
|
+ <stringProp name="Argument.value">{"sql":"CREATE TABLE alertTable() WITH (DATASOURCE=\"alertVal\", TYPE=\"memory\", KIND=\"lookup\", KEY=\"memKey\")"}</stringProp>
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
</elementProp>
|
|
|
</collectionProp>
|
|
@@ -297,7 +297,7 @@
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
<stringProp name="Argument.value">{
|
|
|
"id": "ruleAlert",
|
|
|
- "sql":"SELECT device, value FROM demoStream INNER JOIN alertTable ON demoStream.deviceKind = alertTable.id WHERE demoStream.value > alertTable.alarm",
|
|
|
+ "sql":"SELECT device, value FROM demoStream INNER JOIN alertTable ON demoStream.deviceKind = alertTable.memKey WHERE demoStream.value > alertTable.alarm",
|
|
|
"actions":[
|
|
|
{
|
|
|
"mqtt": {
|
|
@@ -381,7 +381,7 @@
|
|
|
<boolProp name="recycle">true</boolProp>
|
|
|
<stringProp name="shareMode">shareMode.thread</stringProp>
|
|
|
<boolProp name="stopThread">false</boolProp>
|
|
|
- <stringProp name="variableNames">action,id,alarm</stringProp>
|
|
|
+ <stringProp name="variableNames">action,memKey,alarm</stringProp>
|
|
|
</CSVDataSet>
|
|
|
<hashTree/>
|
|
|
<net.xmeter.samplers.PubSampler guiclass="net.xmeter.gui.PubSamplerUI" testclass="net.xmeter.samplers.PubSampler" testname="MQTT Pub Sampler" enabled="true">
|
|
@@ -390,7 +390,7 @@
|
|
|
<boolProp name="mqtt.add_timestamp">false</boolProp>
|
|
|
<stringProp name="mqtt.message_type">String</stringProp>
|
|
|
<stringProp name="mqtt.message_type_fixed_length">1024</stringProp>
|
|
|
- <stringProp name="mqtt.message_to_sent">{"id": ${id}, "action": ${action}, "alarm" : ${alarm}}</stringProp>
|
|
|
+ <stringProp name="mqtt.message_to_sent">{"memKey": ${memKey}, "action": ${action}, "alarm" : ${alarm}}</stringProp>
|
|
|
<boolProp name="mqtt.retained_message">false</boolProp>
|
|
|
</net.xmeter.samplers.PubSampler>
|
|
|
<hashTree/>
|
|
@@ -517,7 +517,7 @@
|
|
|
<boolProp name="recycle">true</boolProp>
|
|
|
<stringProp name="shareMode">shareMode.thread</stringProp>
|
|
|
<boolProp name="stopThread">false</boolProp>
|
|
|
- <stringProp name="variableNames">action,id,alarm</stringProp>
|
|
|
+ <stringProp name="variableNames">action,memKey,alarm</stringProp>
|
|
|
</CSVDataSet>
|
|
|
<hashTree/>
|
|
|
<net.xmeter.samplers.PubSampler guiclass="net.xmeter.gui.PubSamplerUI" testclass="net.xmeter.samplers.PubSampler" testname="MQTT Pub Sampler" enabled="true">
|
|
@@ -526,7 +526,7 @@
|
|
|
<boolProp name="mqtt.add_timestamp">false</boolProp>
|
|
|
<stringProp name="mqtt.message_type">String</stringProp>
|
|
|
<stringProp name="mqtt.message_type_fixed_length">1024</stringProp>
|
|
|
- <stringProp name="mqtt.message_to_sent">{"id": ${id}, "action": ${action}, "alarm" : ${alarm}}</stringProp>
|
|
|
+ <stringProp name="mqtt.message_to_sent">{"memKey": ${memKey}, "action": ${action}, "alarm" : ${alarm}}</stringProp>
|
|
|
<boolProp name="mqtt.retained_message">false</boolProp>
|
|
|
</net.xmeter.samplers.PubSampler>
|
|
|
<hashTree/>
|