mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-08 13:51:01 +02:00
* Replaces `sriov` flag with an explicit path to the GPU device for intel GPUs * Sort imports
30 lines
968 B
Python
30 lines
968 B
Python
from typing import Optional
|
|
|
|
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."
|
|
)
|
|
intel_gpu_device: Optional[str] = Field(
|
|
default=None, title="Define the device to use when gathering SR-IOV stats."
|
|
)
|
|
|
|
|
|
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.")
|