Table of Contents

Method UpdateAlarmTemplateRows

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

UpdateAlarmTemplateRows(AlarmTemplateEventMessage, List<AlarmTemplateRow>)

Updates the specified alarm template with the specified rows.

public AlarmTemplateEventMessage UpdateAlarmTemplateRows(AlarmTemplateEventMessage alarmTemplate, List<AlarmTemplateRow> alarmTemplateRows)

Parameters

alarmTemplate AlarmTemplateEventMessage

The alarm template.

alarmTemplateRows List<AlarmTemplateRow>

The alarm template rows to update.

Returns

AlarmTemplateEventMessage

The updated alarm template.

Remarks

Updates parameter data in the target AlarmTemplate, when no data to update is found, an exception is thrown.

Exceptions

NoAlarmTemplateRowToUpdateException

No data to update is found in the AlarmTemplate.

ConditionDoesNotExistException

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

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 or alarmTemplateRows is null.