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: 1032
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: 1919

Currently Online:
14 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: 730

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1