add healthcheck

This commit is contained in:
ThePhaseless
2024-11-25 10:19:09 +00:00
parent 00e443a5eb
commit c366ce7db6
5 changed files with 52 additions and 100 deletions
+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):