Skip to main content
8-Gravel
Jul 10, 2023 8:15 AM UTC
Solved

How to monitor bound property quality in TWX and trigger other services

Dears,
I have amount of bound tags(greater than 1000) needed to monitor. When any quality turns to bad or other status except good, subscription should be triggered to send info. How can I config event or subscription to get this with minimal impact on system stability.
Thanks.

 

 

 

19-Tanzanite
Jul 21, 2023 6:39 AM UTC

Hi @LeoChen ,

 

Your subscription code requires a fix, because you're verifying the value at the end, and you should look at the quality.

The first part will also always evaluate to true and even if you compare the oldValue to newValue, it's still simpler to just look at the quality:

if (eventData.newValue.quality!="GOOD")

9 replies

16-Pearl
Jul 10, 2023 8:48 AM UTC

Hi @LeoChen,

 

Kindly refer the attached link. I hope it may be helpful in your query.

Monitor Quality of Tags:https://community.ptc.com/t5/ThingWorx-Developers/How-to-monitor-the-quality-of-the-bound-tag/td-p/710794

 

Thanks & Regards,

Arun C

 

Translate
LeoChen8-GravelAuthor
8-Gravel
Jul 10, 2023 8:56 AM UTC

Thank you. But I need to know how to minimal impact on system. Because the count of property is to much,

Now I creat subscription with the event of AntDataChange,which is not very well.

Regards.

Translate
Support
Jul 20, 2023 1:50 PM UTC

Hi @LeoChen.

 

Are there some tags that are more important to monitor?  Instead of monitoring all 1000 tags, you could monitor for the isConnected property or you could monitor to validate that updates are occurring.  Generally if you begin to see problems with the quality, there is a greater underlying problem and should not be necessary to monitor all tags to determine this.

 

You could also create a dashboard to provide a visual of what's happening in your network.

 

Regards.

 

--Sharon

 

 

Translate