X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fviews%2Falarm_route.py;fp=o2ims%2Fviews%2Falarm_route.py;h=8b0af04b85f08ab83ea1359690505fbe1446436b;hb=e00040ca7c6149995c5883bcd9dd81e02b25d0da;hp=e7a642564c648ed534fc010d3f872a2edc15f87a;hpb=1f8a5aade209f5998a405f9a24ee54dd2eb52c57;p=pti%2Fo2.git diff --git a/o2ims/views/alarm_route.py b/o2ims/views/alarm_route.py index e7a6425..8b0af04 100644 --- a/o2ims/views/alarm_route.py +++ b/o2ims/views/alarm_route.py @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Wind River Systems, Inc. +# Copyright (C) 2021-2024 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -140,6 +140,15 @@ class AlarmGetRouter(Resource): raise NotFoundException( "Alarm Event Record {} doesn't exist".format(alarmEventRecordId)) + @api_monitoring_v1.doc('Patch Alarm Event Record Information') + @api_monitoring_v1.marshal_with(model) + def patch(self, alarmEventRecordId): + result = alarm_view.alarm_event_record_ack(alarmEventRecordId, bus.uow) + if result is not None: + return result + raise NotFoundException( + "Alarm Event Record {} doesn't exist".format(alarmEventRecordId)) + # ---------- Alarm Subscriptions ---------- # @api_monitoring_v1.route("/v1/alarmSubscriptions")