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 #1842

Merged
merged 7 commits into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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