2025-07-14 15:11:25 +03:00
|
|
|
from typing import Optional
|
|
|
|
|
|
2024-09-28 22:21:42 +03:00
|
|
|
from pydantic import Field
|
|
|
|
|
|
|
|
|
|
from .base import FrigateBaseModel
|
|
|
|
|
|
|
|
|
|
__all__ = ["TelemetryConfig", "StatsConfig"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class StatsConfig(FrigateBaseModel):
|
|
|
|
|
amd_gpu_stats: bool = Field(default=True, title="Enable AMD GPU stats.")
|
|
|
|
|
intel_gpu_stats: bool = Field(default=True, title="Enable Intel GPU stats.")
|
|
|
|
|
network_bandwidth: bool = Field(
|
|
|
|
|
default=False, title="Enable network bandwidth for ffmpeg processes."
|
|
|
|
|
)
|
2025-07-14 15:11:25 +03:00
|
|
|
intel_gpu_device: Optional[str] = Field(
|
|
|
|
|
default=None, title="Define the device to use when gathering SR-IOV stats."
|
2025-01-03 18:43:44 +03:00
|
|
|
)
|
2024-09-28 22:21:42 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class TelemetryConfig(FrigateBaseModel):
|
|
|
|
|
network_interfaces: list[str] = Field(
|
|
|
|
|
default=[],
|
|
|
|
|
title="Enabled network interfaces for bandwidth calculation.",
|
|
|
|
|
)
|
|
|
|
|
stats: StatsConfig = Field(
|
|
|
|
|
default_factory=StatsConfig, title="System Stats Configuration"
|
|
|
|
|
)
|
|
|
|
|
version_check: bool = Field(default=True, title="Enable latest version check.")
|