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
AlarmTemplateEventMessageThe alarm template.
alarmTemplateRow
AlarmTemplateRowThe alarm template row.
onlyAllowUpdate
boolValue 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
istrue
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
oronlyAllowUpdate
is null.