Skip to content

Commit

Permalink
Changes to alert message structure (#1843)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* 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 <[email protected]>

---------

Co-authored-by: Valery Geraskin <[email protected]>
  • Loading branch information
Deralden and Valery Geraskin authored Aug 20, 2024
1 parent 465382e commit e8cd5c0
Showing 1 changed file with 1 addition and 3 deletions.
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

0 comments on commit e8cd5c0

Please sign in to comment.