Sysadmin/admin-only settings page for configuring how long device log history is kept before pruning. GET/PUT /api/settings/log-retention, new LogRetentionSettings page, nav entry, and route. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
11 lines
198 B
Python
11 lines
198 B
Python
from pydantic import BaseModel
|
|
from typing import Optional
|
|
|
|
|
|
class LogRetentionSettings(BaseModel):
|
|
days: int = 180
|
|
|
|
|
|
class LogRetentionSettingsUpdate(BaseModel):
|
|
days: Optional[int] = None
|