ВМ1: реализован сбор логов
This commit is contained in:
@@ -133,6 +133,8 @@ class InboxEvent(Common, Base):
|
||||
bitrix_message_id: Mapped[str | None] = mapped_column(String(255))
|
||||
payload_fingerprint: Mapped[str] = mapped_column(String(64))
|
||||
normalized_json: Mapped[dict] = mapped_column(JSON)
|
||||
request_id: Mapped[str | None] = mapped_column(String(64))
|
||||
traceparent: Mapped[str | None] = mapped_column(String(55))
|
||||
status: Mapped[str] = mapped_column(String(32), default="received")
|
||||
attempt_count: Mapped[int] = mapped_column(Integer, default=0)
|
||||
next_attempt_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), default=now)
|
||||
@@ -149,6 +151,8 @@ class OutboundMessage(Common, Base):
|
||||
external_chat_id: Mapped[uuid.UUID] = mapped_column(UUID(as_uuid=True))
|
||||
request_fingerprint: Mapped[str] = mapped_column(String(64))
|
||||
payload_json: Mapped[dict] = mapped_column(JSON)
|
||||
request_id: Mapped[str | None] = mapped_column(String(64))
|
||||
traceparent: Mapped[str | None] = mapped_column(String(55))
|
||||
status: Mapped[str] = mapped_column(String(32), default="received")
|
||||
bitrix_message_id: Mapped[str | None] = mapped_column(String(255))
|
||||
response_json: Mapped[dict | None] = mapped_column(JSON)
|
||||
@@ -165,6 +169,8 @@ class DeliveryAckOutbox(Common, Base):
|
||||
UUID(as_uuid=True), ForeignKey(f"{SCHEMA}.inbox_events.id"), unique=True
|
||||
)
|
||||
payload_json: Mapped[dict] = mapped_column(JSON)
|
||||
request_id: Mapped[str | None] = mapped_column(String(64))
|
||||
traceparent: Mapped[str | None] = mapped_column(String(55))
|
||||
status: Mapped[str] = mapped_column(String(32), default="pending")
|
||||
attempt_count: Mapped[int] = mapped_column(Integer, default=0)
|
||||
next_attempt_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), default=now)
|
||||
|
||||
Reference in New Issue
Block a user