-
New Feature Request
-
Resolution: Unresolved
-
High
-
None
-
None
I have a LLD that is used to create items and to get the values for the dependant prototype items.
The LDD text is:
[ {"
"{#SERVERNUMBER}":"1"
"{#SERVERTYPE}":"type1"
"{#SERVERSTATUS}":"status1"
"{#SERVERVERSION}":"version1"
"{#SERVERMEMORY}":"memory1"
"{#DIR}":"dir1"
},
{"{#SERVER}
":"server2"
"
":"2"
"
":"type2"
"
"{#SERVERVERSION}":"version2"
"{#SERVERMEMORY}":"memory2"
"{#DIR}":"dir2"
}]
The prototype items will gather the info of each line, so the preprocessing step should be a Json Path, geting the wrigth item of the vector, and then the value of one of the lines for that vector item.
item protitype key – serverstatus["{#SERVER}"]
preprocessing step – Json Path -> $.[?(@."{#SERVER}" == "{#SERVER}"].{#SERVERSTATUS}
with this, we get an error and reporting the path as
$.[?(@."server1" == "server1"].status1
and we want
$.[?(@."
{#SERVER}" == "server1"].{#SERVERSTATUS}to achive this, maybe we can scape the "{}" like
$.[?(@."{#SERVER}" == "{#SERVER}
"].{#SERVERSTATUS}