Source code for canarieapi.status


[docs]class Status:
[docs] ok = "ok"
[docs] bad = "bad"
[docs] down = "down"
@staticmethod
[docs] def pretty_msg(status: "Status") -> str: if status == Status.ok: return "Ok" if status == Status.bad: return "Up but returning unexpected response" if status == Status.down: return "Down" return "Unknown status"