pub struct Process {Show 13 fields
pub id: String,
pub flow_name: String,
pub stage_name: String,
pub service_name: String,
pub container_id: Option<String>,
pub pid: Option<u32>,
pub state: ProcessState,
pub started_at: i64,
pub stopped_at: Option<i64>,
pub image: String,
pub memory_usage: Option<u64>,
pub cpu_usage: Option<f64>,
pub ports: Vec<Port>,
}Expand description
Process - 実行中のプロセス情報
Flowから起動された実際のプロセス(コンテナ)の状態を表します。 DBに格納され、実行中のプロセスを追跡・管理します。
Fields§
§id: StringプロセスID(UUID)
flow_name: String関連するFlow名
stage_name: String関連するステージ名
service_name: Stringサービス名
container_id: Option<String>コンテナID(Docker/Podman)
pid: Option<u32>プロセスID(OS)
state: ProcessStateプロセス状態
started_at: i64起動時刻(Unix timestamp)
stopped_at: Option<i64>停止時刻(Unix timestamp、停止していない場合はNone)
image: Stringイメージ名
memory_usage: Option<u64>使用メモリ(バイト)
cpu_usage: Option<f64>CPU使用率(パーセント)
ports: Vec<Port>ポートマッピング
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Process
impl<'de> Deserialize<'de> for Process
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Process
impl RefUnwindSafe for Process
impl Send for Process
impl Sync for Process
impl Unpin for Process
impl UnwindSafe for Process
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more