hello
Exist a message to get the time line like API with method GetAlarmStateTimelineForService?
With message can i use to oppose the element state (stoped, started....)
Thanks
Hello Juan,
If you want to determine the state of an element, the easiest way is to use:
var element = dms.GetElement(DmsElementId dmsElementId);
or
var element = dms.GetElement(string elementName);
After that, you can use it like this to check:
if (element.State == ElementState.Stopped)
{
// Do something
}
else if (element.State == ElementState.Active)
{
// Do something
}
else
{
// ...
}
I hope I understood your question correctly and that this will be helpful to you.
If you are using engine, you can accomplish this in GQI script like:
var dms = engine.GetDms();
var element = dms.GetElement(elementId);
if(element.State == ElementState.Stopped)
…
How can i uses engine in gqi project? I understand that it's not posible
You can use engine from Skyline.DataMiner.Automation:
using Skyline.DataMiner.Automation;
Engine engine = new Engine();
var dms = engine.GetDms();
…
I try it in a gqi project AND didn't work. I sow others post AND said thet gqi dont support engine or protocol.
Hello
I'm using gqi interface AND engine, protocol it's not avalible. How can i do it un gqi?