Table of Contents

Method MergeAlarmTemplateRow

Namespace
Skyline.DataMiner.Net.AlarmTemplateHelper
Assembly
SLNetTypes.dll

MergeAlarmTemplateRow(AlarmTemplateEventMessage, AlarmTemplateRow, bool)

Returns an Skyline.DataMiner.Net.Messages.AlarmTemplateEventMessage where the parameter defined by the AlarmTemplateRow is merged.

public AlarmTemplateEventMessage MergeAlarmTemplateRow(AlarmTemplateEventMessage alarmTemplate, AlarmTemplateRow alarmTemplateRow, bool onlyAllowUpdate = false)

Parameters

alarmTemplate AlarmTemplateEventMessage

The alarm template.

alarmTemplateRow AlarmTemplateRow

The alarm template row.

onlyAllowUpdate bool

Value indicating whether only updates are allowed.

Returns

AlarmTemplateEventMessage

Exceptions

ConditionMergeException

A condition with an equal name is found, but the contents are different.

ConditionDoesNotExistException

The condition that is linked to the parameter is not found in the target AlarmTemplate.

NoAlarmTemplateRowToUpdateException

onlyAllowUpdate is true and no data to update is found.

DataMinerException

GetAlarmTemplateRow returns a parameter that can not be found in the list.

InvalidAlarmTemplateRowException

The provided AlarmTemplateRow contains data that does not match with the ID in it.

ArgumentNullException

alarmTemplate, alarmTemplateRow or onlyAllowUpdate is null.