bookclerk_library::entities::node_status
SeaORM entity for node_status: each node's latest daemon heartbeat.
| Item | Kind | Summary |
|---|---|---|
Model |
struct | Row shape for this table (DeriveEntityModel). |
ColumnIter |
struct | An iterator over the variants of [Column] |
Entity |
struct | Generated by sea-orm-macros |
PrimaryKeyIter |
struct | An iterator over the variants of [PrimaryKey] |
ActiveModel |
struct | Generated by sea-orm-macros |
RelationIter |
struct | An iterator over the variants of [Relation] |
Column |
enum | Generated by sea-orm-macros |
PrimaryKey |
enum | Generated by sea-orm-macros |
Relation |
enum | Declared SeaORM relations (none). |
pub struct Model {
pub node_id: String,
pub incarnation: String,
pub started_at: String,
pub heartbeat_at: String,
pub heartbeat_ms: i64,
pub interval_ms: i64,
pub cpu_millicores: i64,
pub memory_bytes: Option<i64>,
pub cpu_budget_millicores: i64,
pub memory_budget_bytes: Option<i64>,
pub schedulable: i64,
pub cpu_used_millicores: Option<i64>,
pub memory_available_bytes: Option<i64>,
pub files_dir_free_bytes: Option<i64>,
pub reserved_cpu_millicores: i64,
pub reserved_memory_bytes: i64,
pub running_guests: i64,
pub availability_ppm: i64,
pub online_since_ms: i64,
pub cache_bytes: Option<i64>,
pub cache_budget_bytes: Option<i64>,
pub cache_swept_ms: Option<i64>,
pub public_origin: Option<String>,
}
Row shape for this table (DeriveEntityModel).
Fields
node_id: Reporting node.incarnation: Daemon process incarnation.started_at: RFC 3339 time the daemon process started.heartbeat_at: RFC 3339 time of this heartbeat.heartbeat_ms: Same time in Unix milliseconds (liveness arithmetic).interval_ms: Heartbeat interval the daemon promised, in milliseconds.cpu_millicores: Detected CPU capacity in millicores (machine or cgroup, whichever is tighter).memory_bytes: Detected memory in bytes; empty when unknown.cpu_budget_millicores: CPU the scheduler may commit here, in millicores.memory_budget_bytes: Memory the scheduler may commit here; empty when memory is unknown.schedulable:1unless an operator drained the node.cpu_used_millicores: Measured CPU in use, in millicores; empty until two samples exist.memory_available_bytes: Measured memory available to new work.files_dir_free_bytes: Free bytes on the files directory's filesystem.reserved_cpu_millicores: Sum of running guests' CPU ceilings, in millicores.reserved_memory_bytes: Sum of running guests' memory ceilings.running_guests: Guests running on the node.availability_ppm: Recent online fraction in parts per million.online_since_ms: Unix milliseconds the current unbroken online stretch began.cache_bytes: Bytes the node's image caches hold; empty from a node that keeps none.cache_budget_bytes: Bytes the node's image caches may hold.cache_swept_ms: Unix milliseconds the node's last cache sweep finished.public_origin: The public origin a branch reported (integrations.public_origin, normalized); empty for a branch that reports none and for a shared node.
pub fn into_ex(self) -> Self
Generated by sea-orm-macros
Implements: Clone, Debug, Eq, From<Model>, FromQueryResult, IntoActiveModel<ActiveModel>, ModelTrait, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>
pub struct ColumnIter {
/* private fields */
}
An iterator over the variants of Column
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
pub struct Entity;
Generated by sea-orm-macros
Implements: Clone, Copy, Debug, Default, EntityName, EntityTrait, Iden, IdenStatic
pub struct PrimaryKeyIter {
/* private fields */
}
An iterator over the variants of PrimaryKey
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
pub struct ActiveModel {
pub node_id: ActiveValue<String>,
pub incarnation: ActiveValue<String>,
pub started_at: ActiveValue<String>,
pub heartbeat_at: ActiveValue<String>,
pub heartbeat_ms: ActiveValue<i64>,
pub interval_ms: ActiveValue<i64>,
pub cpu_millicores: ActiveValue<i64>,
pub memory_bytes: ActiveValue<Option<i64>>,
pub cpu_budget_millicores: ActiveValue<i64>,
pub memory_budget_bytes: ActiveValue<Option<i64>>,
pub schedulable: ActiveValue<i64>,
pub cpu_used_millicores: ActiveValue<Option<i64>>,
pub memory_available_bytes: ActiveValue<Option<i64>>,
pub files_dir_free_bytes: ActiveValue<Option<i64>>,
pub reserved_cpu_millicores: ActiveValue<i64>,
pub reserved_memory_bytes: ActiveValue<i64>,
pub running_guests: ActiveValue<i64>,
pub availability_ppm: ActiveValue<i64>,
pub online_since_ms: ActiveValue<i64>,
pub cache_bytes: ActiveValue<Option<i64>>,
pub cache_budget_bytes: ActiveValue<Option<i64>>,
pub cache_swept_ms: ActiveValue<Option<i64>>,
pub public_origin: ActiveValue<Option<String>>,
}
Generated by sea-orm-macros
Fields
node_id: Generated by sea-orm-macrosincarnation: Generated by sea-orm-macrosstarted_at: Generated by sea-orm-macrosheartbeat_at: Generated by sea-orm-macrosheartbeat_ms: Generated by sea-orm-macrosinterval_ms: Generated by sea-orm-macroscpu_millicores: Generated by sea-orm-macrosmemory_bytes: Generated by sea-orm-macroscpu_budget_millicores: Generated by sea-orm-macrosmemory_budget_bytes: Generated by sea-orm-macrosschedulable: Generated by sea-orm-macroscpu_used_millicores: Generated by sea-orm-macrosmemory_available_bytes: Generated by sea-orm-macrosfiles_dir_free_bytes: Generated by sea-orm-macrosreserved_cpu_millicores: Generated by sea-orm-macrosreserved_memory_bytes: Generated by sea-orm-macrosrunning_guests: Generated by sea-orm-macrosavailability_ppm: Generated by sea-orm-macrosonline_since_ms: Generated by sea-orm-macroscache_bytes: Generated by sea-orm-macroscache_budget_bytes: Generated by sea-orm-macroscache_swept_ms: Generated by sea-orm-macrospublic_origin: Generated by sea-orm-macros
Implements: ActiveModelBehavior, ActiveModelTrait, Clone, Debug, Default, From<Model>, IntoActiveModel<ActiveModel>, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>
pub struct RelationIter {
/* private fields */
}
An iterator over the variants of Relation
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
pub enum Column {
NodeId,
Incarnation,
StartedAt,
HeartbeatAt,
HeartbeatMs,
IntervalMs,
CpuMillicores,
MemoryBytes,
CpuBudgetMillicores,
MemoryBudgetBytes,
Schedulable,
CpuUsedMillicores,
MemoryAvailableBytes,
FilesDirFreeBytes,
ReservedCpuMillicores,
ReservedMemoryBytes,
RunningGuests,
AvailabilityPpm,
OnlineSinceMs,
CacheBytes,
CacheBudgetBytes,
CacheSweptMs,
PublicOrigin,
}
Generated by sea-orm-macros
Variants
NodeId: Generated by sea-orm-macrosIncarnation: Generated by sea-orm-macrosStartedAt: Generated by sea-orm-macrosHeartbeatAt: Generated by sea-orm-macrosHeartbeatMs: Generated by sea-orm-macrosIntervalMs: Generated by sea-orm-macrosCpuMillicores: Generated by sea-orm-macrosMemoryBytes: Generated by sea-orm-macrosCpuBudgetMillicores: Generated by sea-orm-macrosMemoryBudgetBytes: Generated by sea-orm-macrosSchedulable: Generated by sea-orm-macrosCpuUsedMillicores: Generated by sea-orm-macrosMemoryAvailableBytes: Generated by sea-orm-macrosFilesDirFreeBytes: Generated by sea-orm-macrosReservedCpuMillicores: Generated by sea-orm-macrosReservedMemoryBytes: Generated by sea-orm-macrosRunningGuests: Generated by sea-orm-macrosAvailabilityPpm: Generated by sea-orm-macrosOnlineSinceMs: Generated by sea-orm-macrosCacheBytes: Generated by sea-orm-macrosCacheBudgetBytes: Generated by sea-orm-macrosCacheSweptMs: Generated by sea-orm-macrosPublicOrigin: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
NodeId,
}
Generated by sea-orm-macros
Variants
NodeId: Generated by sea-orm-macros
Implements: Clone, Copy, Debug, Iden, IdenStatic, IntoEnumIterator, PrimaryKeyToColumn, PrimaryKeyTrait
pub enum Relation {}
Declared SeaORM relations (none).
Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait
Generated from crates/bookclerk-library at main · View as Markdown