mirror of
https://github.com/ceph/ceph
synced 2025-01-02 09:02:34 +00:00
Merge pull request #41974 from rhcs-dashboard/fix-POST-alerts
mgr/dashboard: Alertmanager fails to POST alerts
This commit is contained in:
commit
ced341a511
@ -18,7 +18,7 @@ class PrometheusReceiver(BaseController):
|
||||
"""
|
||||
notifications = []
|
||||
|
||||
@Endpoint('POST', path='/')
|
||||
@Endpoint('POST', path='/', version=None)
|
||||
def fetch_alert(self, **notification):
|
||||
notification['notified'] = datetime.now().isoformat()
|
||||
notification['id'] = str(len(self.notifications))
|
||||
|
Loading…
Reference in New Issue
Block a user