17 lines
367 B
Python
17 lines
367 B
Python
from datetime import datetime
|
|
from typing import Optional, Any
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class NotificationLogResponse(BaseModel):
|
|
id: int
|
|
webhook_config_id: int
|
|
webhook_name: str
|
|
event_type: str
|
|
payload: dict[str, Any]
|
|
status: str
|
|
response_text: Optional[str]
|
|
created_at: datetime
|
|
|
|
model_config = {"from_attributes": True}
|