Hello,
i have following xml output to monitor:
<xyz> <a>1</a> <b>1</b> <c>1</c> <d>1</d> [...] </xyz>
so there are many channels.
I use the Rest Custom Sensor. If i select the standard "channel discovery" template i get "$["xyz"]["a"]" for example as the channel names.
How should i configure the new rest template to create all channels only with name "a" without the additional characters $ [ ] "
I can't create static channels in the rest template because the names differ for every new website and there are different amounts of channels per xml-site.
So the goal would be to create a rest template which considers dynamic channel names because the standard "channel discovery" template creates the additional characters $,[,],"
Or if you have other suggestions for other approaches feel free to share.
Kind regards
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Hi there,
Did you already check out our REST Custom v2 sensor? With this it might be easier to create the sensor channels.
Kind regards
Felix Wiesneth - Team Tech Support
May, 2022 - Permalink