feat:初始化工程
This commit is contained in:
BIN
schemas/__pycache__/log_alert.cpython-312.pyc
Normal file
BIN
schemas/__pycache__/log_alert.cpython-312.pyc
Normal file
Binary file not shown.
14
schemas/log_alert.py
Normal file
14
schemas/log_alert.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class LogAlertTrigger(BaseModel):
|
||||
alter_name: str
|
||||
timestamp: int
|
||||
|
||||
|
||||
class OpenobserveQuery(BaseModel):
|
||||
start_time: int
|
||||
end_time: int
|
||||
from_: int = Field(default=0, alias="from")
|
||||
size: int = 10
|
||||
sql: str = "select * from default"
|
||||
Reference in New Issue
Block a user