Zum Hauptinhalt springen

alarming

Alarms raised by the condition monitoring - listing, updating, open alarm locations.

📄️Update an alarm - a status change, a note, or both

Records a status transition as an entry in the alarm's history. An optional note text can be included on that same entry, and a note-only entry (no status change) is also accepted as long as the new status matches the current one. Returns the stored alarm with its complete history, so a caller does not have to read the alarm back to show what was recorded - the entry it contains is the stored one, with the user of the JWT, the server clock and its id. A call that neither changes the status nor carries a note records nothing and returns the alarm unchanged. Responds 404 if the alarm does not exist.

📄️Take an alarm out of the archive

Removes the archive marker with its time, user, reason and period, whoever archived the alarm and whenever - an administrator's decision, which is why it needs a comment. What the marker said is not lost: the archiving stays in the alarm's history, and this call adds an entry of its own (archiveAction UNARCHIVED, the comment as its content). Nothing else resets the flag: neither a status change nor anything the condition monitoring does to the alarm touches it, and the automatic archiving leaves an alarm alone once it has been taken out of the archive. An alarm that is not archived is left as it is and returned without a new entry. Returns the stored alarm. Responds 400 if the comment is missing or blank, 404 if the alarm does not exist.