Regenerate openapi

This commit is contained in:
Ashwin Bharambe 2024-12-08 20:46:22 -08:00
parent e951852848
commit d7dc69c8a9
4 changed files with 933 additions and 90 deletions

View file

@ -155,16 +155,23 @@ class SpanWithChildren(Span):
status: Optional[SpanStatus] = None
@json_schema_type
class QueryConditionOp(Enum):
EQ = "eq"
NE = "ne"
GT = "gt"
LT = "lt"
@json_schema_type
class QueryCondition(BaseModel):
key: str
op: Literal["eq", "ne", "gt", "lt"]
op: QueryConditionOp
value: Any
@runtime_checkable
class Telemetry(Protocol):
@webmethod(route="/telemetry/log-event")
async def log_event(
self, event: Event, ttl_seconds: int = DEFAULT_TTL_DAYS * 86400