|
@@ -32,9 +32,9 @@ def get_result():
|
|
|
if total_services == services_up:
|
|
|
# if so, return a success object
|
|
|
returnResponse["style"] = "is-success"
|
|
|
- returnResponse["title"] = "All good in the hood boss"
|
|
|
+ returnResponse["title"] = "Everything is up and running"
|
|
|
returnResponse["content"] = (
|
|
|
- "<b>%s / %s Services showing as online. Check <a href=%s target=_blank>here</a> for more info. </br> <p>"
|
|
|
+ "<b>Online %s / %s. Check <a href=%s target=_blank>here</a> for more info. </br> <p>"
|
|
|
% (services_up, total_services, statping_endpoint)
|
|
|
)
|
|
|
|
|
@@ -42,14 +42,14 @@ def get_result():
|
|
|
else:
|
|
|
# return a numpty message
|
|
|
returnResponse["style"] = "is-danger"
|
|
|
- returnResponse["title"] = "Halp"
|
|
|
+ returnResponse["title"] = "Service disruption"
|
|
|
# need to build the return message to include the failures as a formatted list
|
|
|
numptyList = "<ul>"
|
|
|
for i in failure_list:
|
|
|
numptyList += "<li>" + i + "</li>"
|
|
|
numptyList += "</ul>"
|
|
|
returnResponse["content"] = (
|
|
|
- "<b>%s / %s Services showing as online. Check <a href=%s target=_blank>here</a> for more info. </br> <p> <br>Here are the numpties that are letting the side down:</br> %s"
|
|
|
+ "<b>Online %s / %s. Check <a href=%s target=_blank>here</a> for more info. </br> <p> <br>These are reported down:</br> %s"
|
|
|
% (services_up, total_services, numptyList, statping_endpoint)
|
|
|
)
|
|
|
|
|
@@ -57,8 +57,8 @@ def get_result():
|
|
|
|
|
|
except:
|
|
|
returnResponse["style"] = "is-danger"
|
|
|
- returnResponse["title"] = "I have the sads"
|
|
|
- returnResponse["content"] = "Like, man cannot even holla at Statping."
|
|
|
+ returnResponse["title"] = "Issue with upstream"
|
|
|
+ returnResponse["content"] = "Statping is unreachable, check your endpoint: %s" % statping_endpoint
|
|
|
|
|
|
return returnResponse
|
|
|
|