feat:增加批量插入和查询日志告警功能
This commit is contained in:
@@ -2,17 +2,16 @@ from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
# sqlite连接方式:sqlite:///
|
||||
database_url: str = "sqlite:///./logs.db"
|
||||
wechat_webhook: str = ""
|
||||
smtp_server: str = ""
|
||||
smtp_port: int = 587
|
||||
smtp_user: str = ""
|
||||
smtp_password: str = ""
|
||||
smtp_sender: str = "log-alert@example.com"
|
||||
log_level: str
|
||||
database_url: str
|
||||
wechat_webhook_url: str
|
||||
wechat_webhook_key: str
|
||||
openobserve_url: str
|
||||
openobserve_username: str
|
||||
openobserve_password: str
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
|
||||
|
||||
settings = Settings()
|
||||
settings = Settings()
|
||||
|
||||
Reference in New Issue
Block a user