petter2025's picture
Upload folder using huggingface_hub
afa4de7 verified
raw
history blame
430 Bytes
from typing import Literal
from pydantic import BaseModel, Field
class IncidentReport(BaseModel):
service: str = Field(..., description="Service name")
signal_type: Literal["latency", "error_rate", "cpu",
"memory"] = Field(..., description="Type of signal")
value: float = Field(..., description="Measured value")
class IncidentResponse(BaseModel):
service: str
reliability: float