20#ifndef ORES_COMPUTE_DOMAIN_HOST_HPP
21#define ORES_COMPUTE_DOMAIN_HOST_HPP
26#include "ores.utility/uuid/tenant_id.hpp"
28namespace ores::compute::domain {
50 boost::uuids::uuid
id;
A registered compute node in the distributed grid.
Definition host.hpp:36
std::string modified_by
Username of the person who last modified this compute host.
Definition host.hpp:96
std::string change_commentary
Free-text commentary explaining the change.
Definition host.hpp:113
int cpu_count
Total logical CPU cores available.
Definition host.hpp:71
double credit_total
Accumulated work units successfully processed by this host.
Definition host.hpp:91
std::int64_t ram_mb
Total system memory in megabytes.
Definition host.hpp:76
std::string external_id
User-defined name or hostname for the node.
Definition host.hpp:55
std::string display_name
Whimsical adjective+animal display name assigned on first registration. Display-only; never used as a...
Definition host.hpp:61
std::chrono::system_clock::time_point recorded_at
Timestamp when this version of the record was recorded.
Definition host.hpp:118
boost::uuids::uuid id
UUID primary key for the host.
Definition host.hpp:50
int version
Version number for optimistic locking and change tracking.
Definition host.hpp:40
std::chrono::system_clock::time_point last_rpc_time
Timestamp of the last heartbeat received from this node.
Definition host.hpp:86
std::string location
Physical site or region identifier.
Definition host.hpp:66
std::string performed_by
Username of the account that performed this action.
Definition host.hpp:101
std::string gpu_type
GPU model identifier, e.g. 'A100' or NULL if no GPU.
Definition host.hpp:81
utility::uuid::tenant_id tenant_id
Tenant identifier for multi-tenancy isolation.
Definition host.hpp:45
std::string change_reason_code
Code identifying the reason for the change.
Definition host.hpp:108
A strongly-typed wrapper around a UUID representing a tenant identifier.
Definition tenant_id.hpp:66
static tenant_id system()
Creates a tenant_id representing the system tenant.
Definition tenant_id.cpp:41