8:30, EET
December 6, 2018
I’m getting event notifications even after setting the monitoring mode as sampling /disabled on item level.
Steps to reproduce the scenario >>
1. Create Subscription Object and set the monitoring mode as “Reporting”.
2. Create MonitoredEventItem and set the monitoring mode as “Sampling” or “Disabled”.
3. Add the created MonitoredEventItem to Subscription.
Now for the above configuration we are not supposed to get any notification as per the documentation which says item level monitoring modes supposed
to override the subscription monitoring mode (if specified) .
Please have a look at it and let me know if I missed any steps or suggest some way to resolve this issue.
Thanks in advance.
Dipankar.
12:16, EET
April 3, 2012
Hi,
Thanks for the notification.
I’m assuming you mean a server made with the SDK? If this is only client side, then there is not much to do as this depends on the server implementation.
Based of initial investigation, it would appear we have a bug in the creation of event items (for data items those steps should work) on the server. The initial MonitoringMode is assumed to be Reporting always. However as a somewhat workaround, if you call SetMonitoringMode service call after the item is made to the server, the mode should change normally. Assuming the client side is our SDK as well, you can do this by calling the setMonitoringMode on the item (after both the subscription and the item are created to the server).
We can fix this in a future SDK version.
P.S.
However, it might also be possible that that parameter is only intended for the data items. The specification is not 100%-foolproof-clear on this. The way it is written would make somewhat more sense if this was only for the non-event items. For example the queue of an event item based on the text should be maximum possible value (server decideds). If the mode would be Sampling, then this queue would effectively leak/hold memory, so at least that does not make sense. Additionally a lot of the text refers to sampling, which events do not do. We need to check..
Most Users Ever Online: 1919
Currently Online:
53 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 736
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6450
Newest Members:
fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerleyModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1