From e8cd5c0393f2f415dc67011630b1ba9d670caa37 Mon Sep 17 00:00:00 2001 From: Deralden <121487413+Deralden@users.noreply.github.com> Date: Tue, 20 Aug 2024 17:48:12 +0300 Subject: [PATCH] Changes to alert message structure (#1843) * Github actions implementation (#1833) * Services alerts fix (#1835) * Key fix in config (#1837) * Opensearch logs introduction (#1839) * Opensearch introduction * Add endpoint information to logs * Opensearch package added * Datetime fix (#1840) * Opensearch introduction * Add endpoint information to logs * Opensearch package added * datetime fix --------- Co-authored-by: Valery Geraskin * Changes to alert message structure (#1842) * Opensearch introduction * Add endpoint information to logs * Opensearch package added * datetime fix * Changes to alert message structure --------- Co-authored-by: Valery Geraskin --------- Co-authored-by: Valery Geraskin --- service_status/service_status.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/service_status/service_status.py b/service_status/service_status.py index 3543e10b6..681e33fa6 100644 --- a/service_status/service_status.py +++ b/service_status/service_status.py @@ -193,9 +193,7 @@ def _send_notification(self, org_id, service_id, recipients, endpoint, error_det logger.info(f"Invalid email_id: {recipient}") def _get_slack_message(self, org_id, service_id, endpoint, recipients, error_details, debug_error_string): - slack_message = f"Alert!\n\nService {service_id} under organization {org_id} is down for {NETWORK_NAME} " \ - f"network.\nEndpoint: {endpoint}\nDebug Error String: " \ - f"{debug_error_string}" + slack_message = f"Service {service_id} under organization {org_id} is down for {NETWORK_NAME} network." return slack_message def _send_email_notification(self, org_id, service_id, recipient, endpoint):