Commit aa40e958 authored by nimrod's avatar nimrod
Browse files

Add checks for transmission.shore.co.il.

parent 789fdbf3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ locals {
    "www",
    "myip",
    "kodi",
    "transmission",
  ]
  function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"]
}

src/transmission.py

0 → 100644
+14 −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://transmission.shore.co.il/", "codes": [301, 302]},
        {"url": "https://transmission.shore.co.il/", "codes": [401]},
    ]
    check_urls(checks)


if __name__ == "__main__":
    handler("event", "context")