mirror of
https://github.com/exo-explore/exo.git
synced 2025-12-23 14:17:58 -05:00
19 lines
408 B
Python
19 lines
408 B
Python
from enum import Enum
|
|
from typing import Generic, TypeVar
|
|
from pydantic import BaseModel
|
|
|
|
from collections.abc import Set
|
|
|
|
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
|