mirror of https://github.com/MISP/PyMISP
new: Add ZMQ publishing method
parent
533b69d944
commit
394c312d0d
|
@ -357,6 +357,12 @@ class PyMISP(object):
|
|||
response = session.delete(url)
|
||||
return self._check_response(response)
|
||||
|
||||
def pushEventToZMQ(self, event_id):
|
||||
session = self.__prepare_session()
|
||||
url = urljoin(self.root_url, 'events/pushEventToZMQ/{}.json'.format(event_id))
|
||||
response = session.post(url)
|
||||
return self._check_response(response)
|
||||
|
||||
# ##############################################
|
||||
# ############### Event handling ###############
|
||||
# ##############################################
|
||||
|
|
Loading…
Reference in New Issue