Icinga / icinga-notifications

Icinga Notifications: new and improved notifications and incident management for Icinga (work in progress, not ready for production yet)
GNU General Public License v2.0
9 stars 0 forks source link

Code enhancements for future use #198

Closed yhabteab closed 4 months ago

yhabteab commented 4 months ago

This PR proposes the following improvements in preparation for #188.

yhabteab commented 4 months ago

The output of zap.Object("escalation", escalation) looks as follows:

2024-05-17T10:05:49.375+0200    INFO    incident        Rule reached escalation {"object": "icinga-2!ping4", "incident": "#12", "rule": "default", "escalation": {"id": 1, "rule_id": 1, "name": "[S] Working Hours, [C] Yonas Habteab", "condition": "incident_severity>=ok"}}