How to add a note to an alarm

book

Article ID: 129113

calendar_today

Updated On:

Products

DX Infrastructure Management NIMSOFT PROBES

Issue/Introduction

When posting alerts via RestServices I get a "response" back from our ticketing supplier which includes a ticket reference number. The goal here is to attach that ticket reference to the corresponding alarm using an alarm note.

Environment

- nas 9.06 or higher

Resolution

a = alarm.get() 
note = pds.create() 
pds.putString(note,"nimid",a.nimid) 
pds.putString(note,"description","test") 
pds.putString(note,"body","Test") 
pds.putString(note,"catagorie","Test") 
nimbus.request("nas","note_attach",note)