From f8c53b169ef53e9dfbc93e8e9f3a2efc7a776697 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 30 Apr 2021 20:53:35 +0300 Subject: [PATCH] Check notify.shore.co.il. --- src/notify.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/notify.py diff --git a/src/notify.py b/src/notify.py new file mode 100644 index 0000000..9f1bca8 --- /dev/null +++ b/src/notify.py @@ -0,0 +1,14 @@ +from utils import check_urls + + +def handler(event, context): # pylint: disable=unused-argument + """Lambda event handler.""" + checks = [ + {"url": "http://notify.shore.co.il/", "codes": [301, 302]}, + {"url": "https://notify.shore.co.il/ping"}, + ] + check_urls(checks) + + +if __name__ == "__main__": + handler("event", "context") -- GitLab