PagerDuty event payload does not need the "vendor" key.

This commit is contained in:
Pēteris Caune 2019-11-22 11:29:09 +02:00
parent f6d36b3491
commit 0349a3997b
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2

View File

@ -279,13 +279,12 @@ class PagerDuty(HttpTransport):
def notify(self, check):
description = tmpl("pd_description.html", check=check)
payload = {
"vendor": settings.PD_VENDOR_KEY,
"service_key": self.channel.pd_service_key,
"incident_key": str(check.code),
"event_type": "trigger" if check.status == "down" else "resolve",
"description": description,
"client": settings.SITE_NAME,
"client_url": settings.SITE_ROOT,
"client_url": check.details_url(),
}
return self.post(self.URL, json=payload)