Hi.
I have a discovery rule that pulls out a series of numbers.
The corresponding item prototype needs to pull data from an array, based on the data from the discovery rule. However the data pulled by the discovery rule is 1...end, and the corresponding array location is 0...end-1.
So I need to be able to make the adjustments when configuring the Item Prototype.
I tried using the following JSONPath:
But when testing it, I get the following result:
This suggests to me that the calculation is no performed, but rather the system looks for the "1-1" string, hence the JSONPath query fails.
Any ideas will be highly appreciated!
Thank you in advance
Amit.
I have a discovery rule that pulls out a series of numbers.
The corresponding item prototype needs to pull data from an array, based on the data from the discovery rule. However the data pulled by the discovery rule is 1...end, and the corresponding array location is 0...end-1.
So I need to be able to make the adjustments when configuring the Item Prototype.
I tried using the following JSONPath:
Code:
$.body.data[?({#COMPONENT_ID}-1)].status
cannot extract value from json by path "$.body.data[?(1-1)].status": no data matches the specified path
Any ideas will be highly appreciated!
Thank you in advance
Amit.


Comment