Newer
Older
from utils import check_urls
def handler(event, context): # pylint: disable=unused-argument
"""Lambda event handler."""
checks = [
{"url": "http://registry.shore.co.il/", "codes": [301, 302]},
{"url": "https://registry.shore.co.il/"},
{"url": "https://registry.shore.co.il/v2/_catalog"},
]
check_urls(checks)
if __name__ == "__main__":
handler("event", "context")