Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/omnibase_infra/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
# ONEX Infrastructure Framework
__version__ = "0.1.0"
20 changes: 16 additions & 4 deletions src/omnibase_infra/enums/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
"""ONEX Infrastructure enumerations."""
"""ONEX Infrastructure Enumerations."""

from .enum_kafka_message_format import EnumKafkaMessageFormat
from .enum_kafka_operation_type import EnumKafkaOperationType
from omnibase_infra.enums.enum_circuit_breaker_state import EnumCircuitBreakerState
from omnibase_infra.enums.enum_health_status import EnumHealthStatus
from omnibase_infra.enums.enum_kafka_message_format import EnumKafkaMessageFormat
from omnibase_infra.enums.enum_kafka_operation_type import EnumKafkaOperationType
from omnibase_infra.enums.enum_omninode_topic_class import EnumOmniNodeTopicClass
from omnibase_infra.enums.enum_postgres_query_type import EnumPostgresQueryType
from omnibase_infra.enums.enum_slack_channel import EnumSlackChannel
from omnibase_infra.enums.enum_slack_priority import EnumSlackPriority

__all__ = [
"EnumCircuitBreakerState",
"EnumHealthStatus",
"EnumKafkaMessageFormat",
"EnumKafkaOperationType",
]
"EnumOmniNodeTopicClass",
"EnumPostgresQueryType",
"EnumSlackChannel",
"EnumSlackPriority",
]
11 changes: 11 additions & 0 deletions src/omnibase_infra/enums/enum_circuit_breaker_state.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"""Circuit breaker state enumeration for fault tolerance monitoring."""

from enum import Enum


class EnumCircuitBreakerState(str, Enum):
"""Circuit breaker state enumeration for fault tolerance patterns."""

CLOSED = "CLOSED"
HALF_OPEN = "HALF_OPEN"
OPEN = "OPEN"
14 changes: 14 additions & 0 deletions src/omnibase_infra/enums/enum_health_status.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""Health status enumeration for service health monitoring."""

from enum import Enum


class EnumHealthStatus(str, Enum):
"""Health status enumeration following ONEX health monitoring standards."""

HEALTHY = "healthy"
WARNING = "warning"
UNHEALTHY = "unhealthy"
CRITICAL = "critical"
UNKNOWN = "unknown"
DEGRADED = "degraded"
4 changes: 2 additions & 2 deletions src/omnibase_infra/enums/enum_omninode_topic_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
class EnumOmniNodeTopicClass(str, Enum):
"""
OmniNode Topic Classes for proper topic namespace organization.

Following the OmniNode topic design:
<env>.<tenant>.<context>.<class>.<topic>.<v>

Topic classes define the type of content and usage patterns.
"""

Expand Down
16 changes: 16 additions & 0 deletions src/omnibase_infra/enums/enum_postgres_query_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""PostgreSQL query type enumeration."""

from enum import Enum


class EnumPostgresQueryType(str, Enum):
"""PostgreSQL query type enumeration."""

SELECT = "select"
INSERT = "insert"
UPDATE = "update"
DELETE = "delete"
DDL = "ddl" # Data Definition Language (CREATE, DROP, ALTER, etc.)
DCL = "dcl" # Data Control Language (GRANT, REVOKE, etc.)
TCL = "tcl" # Transaction Control Language (COMMIT, ROLLBACK, etc.)
GENERAL = "general" # General/mixed queries
6 changes: 3 additions & 3 deletions src/omnibase_infra/enums/enum_slack_priority.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class EnumSlackPriority(str, Enum):
"""Alert priority levels with corresponding Slack formatting."""

CRITICAL = "danger" # Red
HIGH = "warning" # Yellow
MEDIUM = "good" # Green
INFO = "#36a64f" # Custom green
HIGH = "warning" # Yellow
MEDIUM = "good" # Green
INFO = "#36a64f" # Custom green
Empty file.
1 change: 0 additions & 1 deletion src/omnibase_infra/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
"""Shared models for omnibase_infra."""
1 change: 0 additions & 1 deletion src/omnibase_infra/nodes/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
"""ONEX infrastructure nodes."""
Empty file.
Loading