Method AcknowledgeAlarm
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
AcknowledgeAlarm(AlarmTreeID, string)
Acknowledges the specified alarm tree using the provided comment message.
public void AcknowledgeAlarm(AlarmTreeID alarmTreeID, string comment)
Parameters
alarmTreeID
AlarmTreeIDThe alarm tree to update
comment
stringA comment.
Examples
engine.AcknowledgeAlarm(new AlarmTreeID(7, 400, 304022), "Alarm acknowledged.");
Remarks
If a user launches the script manually or attaches to it interactively, that user will become the owner of the alarm. If the script runs in the background, the alarm owner will become “Administrator”.
AcknowledgeAlarm(int, int, string)
Acknowledges the specified alarm tree using the provided comment message.
[Obsolete("Please use the overload that takes an AlarmTreeID (still supported in <= 10.6 on non-swarming systems)")]
public void AcknowledgeAlarm(int dataMinerID, int alarmID, string comment)
Parameters
Examples
engine.AcknowledgeAlarm(7, 304022, "Alarm acknowledged.");
Remarks
If a user launches the script manually or attaches to it interactively, that user will become the owner of the alarm. If the script runs in the background, the alarm owner will become “Administrator”.
Although this method is obsolete, it will still work on a DMS without Swarming enabled until 10.6.
AcknowledgeAlarm(int, int, int, string)
Acknowledges the specified alarm tree using the provided comment message.
public void AcknowledgeAlarm(int dataMinerID, int elementID, int alarmID, string comment)
Parameters
dataMinerID
intThe DataMiner Agent ID.
elementID
intThe element ID.
alarmID
intThe alarm ID.
comment
stringA comment.
Examples
engine.AcknowledgeAlarm(7, 400, 304022, "Alarm acknowledged.");
Remarks
If a user launches the script manually or attaches to it interactively, that user will become the owner of the alarm. If the script runs in the background, the alarm owner will become “Administrator”.
For performance reasons, we recommend using the overload that takes an AlarmTreeID instead.