CrucibleIR.Deployment.Status (CrucibleIR v0.3.0)
View SourceStatus of an active deployment.
Tracks the current state of a deployment including health, traffic routing, and replica status.
Fields
:id- Status identifier (required):deployment_id- Associated deployment (required):state- Current deployment state:ready_replicas- Number of ready replicas:total_replicas- Total number of replicas:endpoint_url- Active endpoint URL:traffic_percent- Percentage of traffic:health- Health status:last_health_check- Last health check timestamp:error_message- Error if unhealthy:created_at- Creation timestamp:updated_at- Last update timestamp
Examples
iex> status = %CrucibleIR.Deployment.Status{
...> id: :status_001,
...> deployment_id: :deploy_prod,
...> state: :active
...> }
iex> status.state
:active
Summary
Types
@type health() :: :unknown | :healthy | :unhealthy | :degraded | atom()
@type state() :: :pending | :deploying | :active | :degraded | :failed | :terminated | atom()
@type t() :: %CrucibleIR.Deployment.Status{ created_at: DateTime.t() | nil, deployment_id: atom(), endpoint_url: String.t() | nil, error_message: String.t() | nil, health: health(), id: atom(), last_health_check: DateTime.t() | nil, ready_replicas: pos_integer() | nil, state: state(), total_replicas: pos_integer() | nil, traffic_percent: float() | nil, updated_at: DateTime.t() | nil }