Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Monitoring modes are not getting honored in case of Event Notification
December 6, 2018
8:30, EET
Avatar
dipankar.invi@gmail.com
Member
Members
Forum Posts: 16
Member Since:
December 6, 2018
sp_UserOfflineSmall Offline

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.

December 10, 2018
12:16, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

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..

December 27, 2018
19:52, EET
Avatar
dipankar.invi@gmail.com
Member
Members
Forum Posts: 16
Member Since:
December 6, 2018
sp_UserOfflineSmall Offline

Thanks Bjarne for the info Smile. I will try the provided workaround from my end get back to you .

January 9, 2019
7:26, EET
Avatar
dipankar.invi@gmail.com
Member
Members
Forum Posts: 16
Member Since:
December 6, 2018
sp_UserOfflineSmall Offline

@Bjarne Provided workaround is working. Thanks again.Smile

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
22 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1