projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adds support for vdu_name, ns_id and vnf_member_index
[osm/MON.git]
/
osm_mon
/
plugins
/
OpenStack
/
Aodh
/
notifier.py
diff --git
a/osm_mon/plugins/OpenStack/Aodh/notifier.py
b/osm_mon/plugins/OpenStack/Aodh/notifier.py
index
55178fd
..
f7d50a8
100644
(file)
--- a/
osm_mon/plugins/OpenStack/Aodh/notifier.py
+++ b/
osm_mon/plugins/OpenStack/Aodh/notifier.py
@@
-61,7
+61,6
@@
class NotifierHandler(BaseHTTPRequestHandler):
def do_GET(self):
"""Get request functionality."""
self._set_headers()
def do_GET(self):
"""Get request functionality."""
self._set_headers()
- self.wfile.write("<html><body><h1>hi!</h1></body></html>")
def do_POST(self):
"""POST request function."""
def do_POST(self):
"""POST request function."""
@@
-74,7
+73,6
@@
class NotifierHandler(BaseHTTPRequestHandler):
post_data = post_data.decode()
except AttributeError:
pass
post_data = post_data.decode()
except AttributeError:
pass
- self.wfile.write("<html><body><h1>POST!</h1></body></tml>")
log.info("This alarm was triggered: %s", json.loads(post_data))
# Generate a notify_alarm response for the SO
log.info("This alarm was triggered: %s", json.loads(post_data))
# Generate a notify_alarm response for the SO
@@
-121,7
+119,7
@@
class NotifierHandler(BaseHTTPRequestHandler):
sev=values['severity'], date=a_date,
state=values['current'], vim_type="openstack")
producer.notify_alarm(
sev=values['severity'], date=a_date,
state=values['current'], vim_type="openstack")
producer.notify_alarm(
- 'notify_alarm', resp_message
, 'alarm_response'
)
+ 'notify_alarm', resp_message)
log.info("Sent an alarm response to SO: %s", resp_message)
except Exception as exc:
log.exception("Couldn't notify SO of the alarm:")
log.info("Sent an alarm response to SO: %s", resp_message)
except Exception as exc:
log.exception("Couldn't notify SO of the alarm:")