Refactoring for optimized flow and relevant data retrieval (v1.25)

This commit is contained in:
Mark Oudsen
2021-03-17 13:57:25 +01:00
parent 17cdbea2bd
commit 66b504a66c
2 changed files with 9 additions and 15 deletions

View File

@@ -17,9 +17,7 @@ try {
// Must have fields
fields.itemId = params.itemId;
fields.triggerId = params.triggerId;
fields.eventId = params.eventId;
fields.eventValue = params.eventValue;
fields.recipient = params.recipient;
fields.baseURL = params.baseURL;
fields.duration = params.duration;
@@ -60,4 +58,4 @@ catch (error)
// In case something went wrong in the processing, pass the error back to Zabbix
Zabbix.Log(127, 'MailGraph notification failed : '+error);
throw 'MailGraph notification failed : '+error;
}
}