projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved mult-processing of mon-evaluator
[osm/MON.git]
/
osm_mon
/
server
/
service.py
diff --git
a/osm_mon/server/service.py
b/osm_mon/server/service.py
index
60cb3ec
..
b68b367
100755
(executable)
--- a/
osm_mon/server/service.py
+++ b/
osm_mon/server/service.py
@@
-42,10
+42,14
@@
class ServerService:
statistic: str,
metric_name: str,
tags: dict) -> Alarm:
statistic: str,
metric_name: str,
tags: dict) -> Alarm:
+ log.debug("create_alarm")
alarm = Alarm(name, severity, threshold, operation, statistic, metric_name, tags)
self.common_db.create_alarm(alarm)
alarm = Alarm(name, severity, threshold, operation, statistic, metric_name, tags)
self.common_db.create_alarm(alarm)
+ log.info("Alarm %s created", alarm.name)
return alarm
def delete_alarm(self,
alarm_uuid: str) -> None:
return alarm
def delete_alarm(self,
alarm_uuid: str) -> None:
+ log.debug("delete_alarm")
self.common_db.delete_alarm(alarm_uuid)
self.common_db.delete_alarm(alarm_uuid)
+ log.info("Alarm %s is deleted", alarm_uuid)