send notification to opsgiene
amolsh opened this issue · 4 comments
Hi,
I wanted to send notification to OpsGenie , i declared like this and it's not working
{'type': 'OPSGENEI', 'channel': 'Cloud Platform OpsGenie'}
I just merged a fix such that OpsGenie Notification Channels should now be supported. At this point, using the same examples/create_alert.py that you were starting from, if I find the channel with:
notify_channels = [ {'type': 'OPSGENIE', 'name': 'Cloud Platform OpsGenie'} ]
...the same code fragment in your original issue now works for me, with the resulting Alert as seen in my UI:
In conclusion, it looks to me like your second reported issue was the whole of the issue. Can you confirm if that's the case? If you could, please just pull the latest code from GitHub. I'll upload a release with the OpsGenie fix to PyPI for pip install use once I'm confident I've addressed all your issues.
As it turns out, I had to tag and upload a new version of the Python client onto PyPI for other reasons, so the OpsGenie support should be in there if you just do a pip install sdcclient (which should give you version 0.5.1). Please let me know if your issue is addressed.
