Files
exo/shared/logging/common.py
2025-07-14 21:41:14 +01:00

19 lines
408 B
Python

from collections.abc import Set
from enum import Enum
from typing import Generic, TypeVar
from pydantic import BaseModel
LogEntryTypeT = TypeVar("LogEntryTypeT", bound=str)
class LogEntryType(str, Enum):
telemetry = "telemetry"
metrics = "metrics"
cluster = "cluster"
class LogEntry(BaseModel, Generic[LogEntryTypeT]):
entry_destination: Set[LogEntryType]
entry_type: LogEntryTypeT