Table of Contents

Method SetAlarmProperties

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

SetAlarmProperties(AlarmTreeID, string[], string[])

Sets the specified custom alarm properties to the specified values.

void SetAlarmProperties(AlarmTreeID alarmTreeID, string[] propertyNames, string[] propertyValues)

Parameters

alarmTreeID AlarmTreeID

The alarm tree to update.

propertyNames string[]

The names of the properties.

propertyValues string[]

The values of the properties.

Examples

engine.SetAlarmProperties(new AlarmTreeID(200, 400, 521655), new string[]{"Property A", "Property B"}, new string[]{"Value A", "Value B"});

Remarks

note

  • When an alarm property value has been defined in the element protocol, and this method is used to explicitly assign a new value to the property, the new value will only be retained until the severity of the alarm changes. After this, the value from the protocol is used again.

SetAlarmProperties(int, int, int, string[], string[])

Sets the specified custom alarm properties to the specified values.

void SetAlarmProperties(int dataMinerID, int elementID, int alarmID, string[] propertyNames, string[] propertyValues)

Parameters

dataMinerID int

The DataMiner Agent ID.

elementID int

The element ID.

alarmID int

The alarm ID.

propertyNames string[]

The names of the properties.

propertyValues string[]

The values of the properties.

Examples

engine.SetAlarmProperties(200, 400, 521655, new string[]{"Property A", "Property B"}, new string[]{"Value A", "Value B"});

Remarks

note

  • In DataMiner versions prior to 9.0, this method cannot be used to override alarm property values that are defined in the element protocol.
  • When an alarm property value has been defined in the element protocol, and this method is used to explicitly assign a new value to the property, the new value will only be retained until the severity of the alarm changes. After this, the value from the protocol is used again.
  • For performance reasons, we recommend using the overload that takes an AlarmTreeID instead.

SetAlarmProperties(int, int, string[], string[])

Sets the specified custom alarm properties to the specified values.

[Obsolete("Please use the overload that takes an AlarmTreeID (still supported in <= 10.6 on non-swarming systems)")]
void SetAlarmProperties(int dataMinerID, int alarmID, string[] propertyNames, string[] propertyValues)

Parameters

dataMinerID int

The DataMiner Agent ID.

alarmID int

The alarm ID.

propertyNames string[]

The names of the properties.

propertyValues string[]

The values of the properties.

Examples

engine.SetAlarmProperties(200, 521655, new string[]{"Property A", "Property B"}, new string[]{"Value A", "Value B"});

Remarks

note

  • In DataMiner versions prior to 9.0, this method cannot be used to override alarm property values that are defined in the element protocol.
  • When an alarm property value has been defined in the element protocol, and this method is used to explicitly assign a new value to the property, the new value will only be retained until the severity of the alarm changes. After this, the value from the protocol is used again.
  • Although this method is obsolete, it will still work on a DMS without Swarming enabled until 10.6.