Merge pull request #41974 from rhcs-dashboard/fix-POST-alerts

mgr/dashboard: Alertmanager fails to POST alerts
This commit is contained in:
Ernesto Puerta 2021-06-23 13:05:58 +02:00 committed by GitHub
commit ced341a511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))