mirror of
https://github.com/moudsen/mailGraph
synced 2025-10-26 07:07:39 +01:00
Refactoring for optimized flow and relevant data retrieval (v1.25)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user