Method SetAlarmProperty
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
SetAlarmProperty(AlarmTreeID, string, string)
Updates a custom alarm property.
public void SetAlarmProperty(AlarmTreeID alarmTreeID, string propertyName, string propertyValue)
Parameters
alarmTreeIDAlarmTreeIDThe alarm tree to update.
propertyNamestringThe property name.
propertyValuestringThe value to set.
Examples
engine.SetAlarmProperty(new AlarmTreeID(200, 456, 521655), "Property A", "Value A");
Remarks
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.
SetAlarmProperty(int, int, string, string)
Updates a custom alarm property.
[Obsolete("Please use the overload that takes an AlarmTreeID (still supported in <= 10.6 on non-swarming systems)")]
public void SetAlarmProperty(int dataMinerID, int alarmID, string propertyName, string propertyValue)
Parameters
dataMinerIDintThe DataMiner Agent ID.
alarmIDintThe alarm ID.
propertyNamestringThe property name.
propertyValuestringThe value to set.
Examples
engine.SetAlarmProperty(200, 521655, "Property A", "Value A");
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.
- Although this method is obsolete, it will still work on a DMS without Swarming enabled until 10.6.
SetAlarmProperty(int, int, int, string, string)
Updates a custom alarm property.
public void SetAlarmProperty(int dataMinerID, int elementID, int alarmID, string propertyName, string propertyValue)
Parameters
dataMinerIDintThe DataMiner Agent ID.
elementIDintThe element ID.
alarmIDintThe alarm ID.
propertyNamestringThe name of the property.
propertyValuestringThe value to set.
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.
- For performance reasons, we recommend using the overload that takes an AlarmTreeID instead.