Loading src/nextcloud.py 0 → 100644 +15 −0 Original line number Diff line number Diff line from utils import check_urls def handler(event, context): # pylint: disable=unused-argument """Lambda event handler.""" checks = [ {"url": "http://nextcloud.shore.co.il/", "codes": [301, 302]}, {"url": "https://nextcloud.shore.co.il/", "codes": [301, 302]}, {"url": "https://nextcloud.shore.co.il/login"}, ] check_urls(checks) if __name__ == "__main__": handler("event", "context") Loading
src/nextcloud.py 0 → 100644 +15 −0 Original line number Diff line number Diff line from utils import check_urls def handler(event, context): # pylint: disable=unused-argument """Lambda event handler.""" checks = [ {"url": "http://nextcloud.shore.co.il/", "codes": [301, 302]}, {"url": "https://nextcloud.shore.co.il/", "codes": [301, 302]}, {"url": "https://nextcloud.shore.co.il/login"}, ] check_urls(checks) if __name__ == "__main__": handler("event", "context")