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
AlarmTemplateEventMessageThe 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 cannot be found in the list.
- InvalidAlarmTemplateRowException
The provided AlarmTemplateRow contains data that does not match with the ID in it.
- ArgumentNullException
alarmTemplate
oralarmTemplateRows
is null.