Commit 69ad28a2 authored by nimrod's avatar nimrod
Browse files

Check Nextcloud.

parent 19d44862
Loading
Loading
Loading
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")