Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to alert message structure #1843

Merged
merged 10 commits into from
Aug 20, 2024
4 changes: 1 addition & 3 deletions service_status/service_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Loading