Hi Dojo,
Is there any way to get the alarm state of a table cell?
Something like the NT_GET_ALARM_INFO notify type but used for tables.
Thanks in advance!
Hi Miguel,
Thanks for your comments. I’m developing a connector that, among other things, will act as monitoring element for some parameters from other elements, so I need this functionality. I’m afraid I’ll have to use SL Net calls if there’s no other way to do it.
Hi Manuel,
Based on your use case, you could also check DataMiner services.
A DataMiner service is an object that can group parameters from multiple elements. For example, you can include all/specific cells from a column available in multiple elements. Whenever there is an alarm on any cell, the service will aggregate these alarms and show the most severe alarm.
Hope it helps.
Hi Manuel,
You should be able to use a SLNet call to get that information.
If you send a request like
int dmaId = 1;
int elemId = 2;
int paramId = 103;
var request = new GetParameterMessage(dmaId, elemId, paramId, "key");
You should get back a response of type GetParameterResponseMessage
Then you should be able to access the alarm level by doing
var alarm = response.AlarmLevel;
This should give you the information for the current alarm for that particular cell.
Hi João, thanks for your reply.
I’m not familiar with SLNet calls. What’s the way to send the message in a protocol?
To send SLNet messages in a protocol you can use protocol.SLNet.SendMessage (https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Scripting.SLNetConnection.SendMessage.html) or protocol.SLNet.SendSingleResponseMessage (https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Scripting.SLNetConnection.SendSingleResponseMessage.html)
For this specific message you should use the SendSingleResponseMessage variant as you will get a single response back.
Thanks a lot João, it’s running fine 😉
Hi Manuel,
Small question, is there a reason why you would like to implement a SLNet call?
When implementing the SLNet call you would need to poll the alarms from the table. However, if you use correlation/automation you will be able to process this information without SLNet calls, and more important, execute actions when the alarms occurs.