add healthcheck

This commit is contained in:
ThePhaseless committed 2024-11-25 10:19:09 +00:00
1 parent 00e443a5eb
commit c366ce7db6
5 files changed
+52 -100

No files matched your search

+3 -3
View File
@@ -4,13 +4,13 @@ import time
from http import HTTPStatus
from typing import Any
from pydantic import BaseModel
from pydantic import BaseModel, Field
class LinkRequest(BaseModel):
cmd: str
cmd: str = "get"
url: str
maxTimeout: int # noqa: N815 # Ignore to preserve compatibility
max_timeout: int = Field(30, alias="maxTimeout")
class ProtectionTriggeredError(Exception):