Table of Contents

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 AlarmTreeID

The alarm tree to update

comment string

A 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

dataMinerID int

The DataMiner Agent ID.

alarmID int

The alarm ID.

comment string

A comment.

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 int

The DataMiner Agent ID.

elementID int

The element ID.

alarmID int

The alarm ID.

comment string

A 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.