Add the PATCH method for the monitoring API 83/12783/3
authorZhang Rong(Jon) <rong.zhang@windriver.com>
Thu, 25 Apr 2024 15:12:19 +0000 (23:12 +0800)
committerZhang Rong(Jon) <rong.zhang@windriver.com>
Sun, 28 Apr 2024 09:12:37 +0000 (17:12 +0800)
commite00040ca7c6149995c5883bcd9dd81e02b25d0da
tree672bce0de9f5fb167358a28c492e4a3898566b34
parent1f8a5aade209f5998a405f9a24ee54dd2eb52c57
Add the PATCH method for the monitoring API

Since the specification release, a new API has been added to the
monitoring interface. Which is an acknowledged operation for the
alarm event.

This commit will support SMO requests the O2IMS API to
acknowledge and clear the alarm event.

Test Plan:
1. Request the API to acknowledge the alarm.
2. After ack the alarm, it was requested the stx clear
   its alarm.

Issue-ID: INF-449

Change-Id: Ic2cb07cbc0784793d1b1de637b7c8a6c29d3f6a2
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
12 files changed:
o2app/entrypoints/redis_eventconsumer.py
o2app/service/handlers.py
o2ims/adapter/alarm_repository.py
o2ims/adapter/clients/fault_client.py
o2ims/domain/alarm_repo.py
o2ims/domain/commands.py
o2ims/domain/events.py
o2ims/service/command/purge_alarm_handler.py [new file with mode: 0644]
o2ims/service/event/alarm_event.py
o2ims/views/alarm_route.py
o2ims/views/alarm_view.py
tests/conftest.py