I've got the alarm details via engine.GetScriptParam(65006); But the returned object doesn't seem to contain the parameter name. It does have the parameter ID.
Because I'd like to compose a string that contains both the parameter name and the alarm value. e.g. "System status: Offline", where "System status" is the name/description of the parameter.
Any idea how to achieve this?
Hi Trong,
From param 65006, you can get the dataminer id, element id and parameter id.
With this info, you could do something like this:
int dmaId = 1;
int elementId = 2;
int parameterId = 4;
Element element = engine.FindElement(dmaId, elementId);
var paramInfo = element.Protocol.FindParameter(parameterId);engine.GenerateInformation(paramInfo.Description);