Hello,
I have this test .json file I'm hosting before I get the real data, but each device will look like this:
I basically want to create some graphs for "pod_screen_percentage_black" and also triggers when over 60 for 20mins.
I'm created the Discovery rule and LLD macros such as
for
plus the item prototype which is a dependant item with a key of
In the preprocessing I am using a JSONPath and the parameters are set to text as numerical won't work:
If I test:
If I change to numerical (unsigned) in the item protocol section I get:
Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "[47]"
When I test it though is looks ok:

What am I doing wrong?
Thanks
I have this test .json file I'm hosting before I get the real data, but each device will look like this:
Code:
[
{
"name": "A2-Mars",
"format": "A2",
"estate": "xyz",
"location": "Mars",
"metrics": {
"pod_screen_percentage_unchanged": 1,
"pod_screen_percentage_predominant_colour": 17,
"pod_screen_percentage_desktop": 0,
"pod_screen_percentage_black": 47,
"pod_screen_unexpected_size": 0,
"pod_screen_layout_changed": 0,
"pod_screen_layout_mismatch": 0,
"pod_screen_is_monitor_off": 0,
"pod_broadsign_is_contactable": 1
}
},
{
"name": "A3-Venus",
"format": "A3",
"estate": "xyz",
"location": "Venus",
"metrics": {
"pod_screen_percentage_unchanged": 1,
"pod_screen_percentage_predominant_colour": 17,
"pod_screen_percentage_desktop": 0,
"pod_screen_percentage_black": 34,
"pod_screen_unexpected_size": 0,
"pod_screen_layout_changed": 0,
"pod_screen_layout_mismatch": 0,
"pod_screen_is_monitor_off": 0,
"pod_broadsign_is_contactable": 1
}
}
]
I'm created the Discovery rule and LLD macros such as
Code:
{#NAME}
Code:
$.name
Code:
metrics.pod_screen_percentage_black[{#NAME}]
Code:
$[?(@.name == '{#NAME}')].metrics.pod_screen_percentage_black
If I test:
If I change to numerical (unsigned) in the item protocol section I get:
Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "[47]"
When I test it though is looks ok:
What am I doing wrong?
Thanks
Comment