Table of Contents

Method SetAlarmProperties

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

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

Sets the specified custom alarm properties to the specified values.

public 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

  • Feature introduced in DataMiner 8.5.2 (RN 8347).
  • 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.

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

Sets the specified custom alarm properties to the specified values.

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