Skip to content

Commit

Permalink
feature(schemas) Upgrade Uptime Kuma API version
Browse files Browse the repository at this point in the history
  • Loading branch information
alencarsouza committed Dec 1, 2023
1 parent 2402078 commit 9af09ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions app/schemas/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@
class Monitor(BaseModel):
type: MonitorType
name: str
description: str
interval: int = 60
retryInterval: int = 60
resendInterval: int = 0
maxretries: int = 0
upsideDown: bool = False
notificationIDList: Optional[List] = None

# HTTP JSON-QUERY
expectedValue: Optional[str] = None
jsonPath: Optional[str] = None

# HTTP KEYWORD
url: Optional[str] = None
expiryNotification: bool = False
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.9"
services:
kuma:
container_name: uptime-kuma
image: louislam/uptime-kuma:1.19.6
image: louislam/uptime-kuma:1.23.2
ports:
- "3001:3001"
restart: always
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sniffio==1.3.0
starlette==0.20.4
tortoise-orm==0.19.2
typing_extensions==4.4.0
uptime-kuma-api==0.13.0
uptime-kuma-api==1.2.1
urllib3==1.26.12
uvloop==0.17.0
watchfiles==0.17.0
Expand Down

0 comments on commit 9af09ea

Please sign in to comment.