Rename newrelic dmarc event

This commit is contained in:
Adrià Casajús 2022-03-24 12:51:58 +01:00
parent 32fd65b69b
commit e5fa90cf04
No known key found for this signature in database
GPG Key ID: F0033226A5AFC9B9
1 changed files with 1 additions and 3 deletions

View File

@ -544,9 +544,7 @@ def apply_dmarc_policy(
) -> Optional[str]:
dmarc_result = get_dmarc_status(msg)
if dmarc_result:
newrelic.agent.record_custom_event(
"Custom/dmarc_check", {"result": dmarc_result.name}
)
newrelic.agent.record_custom_event("DmarcCheck", {"result": dmarc_result.name})
if not DMARC_CHECK_ENABLED or not dmarc_result:
return None