Hi I got a jsonoutput where it is structured like the image (deleted values but the structure is valid)
My master item gets the entire JSON output and it basicly repeats about 44 items
In my Discovery item (depended item on the complete json)
I do preprocessing: $.Applications..Descriptor
LLD Macro: {#APPNAMES} Jsonpath: $.Name
This part works with the item prototype
The key: Supervisor_[{#APPNAMES}] generates items with the correct key names ({#APPNAMES} contains the expected value.
I'm stuck on getting the blue StatusCode value
I tried: $..[?@(.Name=='{#APPNAMES}')].Status.StatusCode.first()
$.Applications.[Supervisors]..[?(@Descriptor.Name=="{#APPNAMES}")] << With single and Double quote tested and supervisors with and without brackets.
I think I'm close to the solution however even with site jsonpath.com and changing the LLD macro to a value of the Json output I can't get the status code returned
My master item gets the entire JSON output and it basicly repeats about 44 items
In my Discovery item (depended item on the complete json)
I do preprocessing: $.Applications..Descriptor
LLD Macro: {#APPNAMES} Jsonpath: $.Name
This part works with the item prototype
The key: Supervisor_[{#APPNAMES}] generates items with the correct key names ({#APPNAMES} contains the expected value.
I'm stuck on getting the blue StatusCode value
I tried: $..[?@(.Name=='{#APPNAMES}')].Status.StatusCode.first()
$.Applications.[Supervisors]..[?(@Descriptor.Name=="{#APPNAMES}")] << With single and Double quote tested and supervisors with and without brackets.
I think I'm close to the solution however even with site jsonpath.com and changing the LLD macro to a value of the Json output I can't get the status code returned

Comment