class

Host

Inherits Marten::DB::Model < Marten::Template::Object::Auto < Marten::Template::Object < Marten::DB::Model::Callbacks < Marten::Core::Validation::Callbacks < Marten::Core::Validation < Marten::DB::Model::Validation < Marten::DB::Model::Querying < Marten::DB::Model::Persistence < Marten::DB::Model::Comparison < Marten::DB::Model::Table < Marten::DB::Model::Connection < Marten::Apps::Association < Marten::DB::Model::AppConfig < Marten::DB::Model::Inheritance < Reference < Object

Constants

FIELDS_ = {"created_at" => {type: "date_time", kwargs: {auto_now_add: true}}, "updated_at" => {type: "date_time", kwargs: {auto_now: true}}, "id" => {type: "uuid", kwargs: {primary_key: true, unique: true, index: true}}, "name" => {type: "string", kwargs: {max_size: 40}}, "version" => {type: "string", kwargs: {max_size: 25}}, "state" => {type: "int", kwargs: {primary_key: false, default: 1}}, "os_name" => {type: "string", kwargs: {max_size: 50}}, "os_release" => {type: "string", kwargs: {max_size: 50}}, "os_version" => {type: "string", kwargs: {max_size: 50}}, "os_arch" => {type: "string", kwargs: {max_size: 50}}, "cpu" => {type: "int", kwargs: {null: true}}, "mem" => {type: "int", kwargs: {null: true}}, "swap" => {type: "int", kwargs: {null: true}}, "cycle" => {type: "int", kwargs: {null: true}}, "uptime" => {type: "int", kwargs: {null: true}}} of Nil => Nil

Instance methods

cpu
cpu!
cpu=(cpu : Int32 | Int64 | Nil | Nil)
cpu?
created_at
created_at!
created_at=(created_at : Time | Nil | Nil)
created_at?
cycle
cycle!
cycle=(cycle : Int32 | Int64 | Nil | Nil)
cycle?
id
id!
id=(id : UUID | Nil | Nil)
id?
mem
mem!
mem=(mem : Int32 | Int64 | Nil | Nil)
mem?
name
name!
name=(name : String | Nil | Nil)
name?
os_arch
os_arch!
os_arch=(os_arch : String | Nil | Nil)
os_arch?
os_name
os_name!
os_name=(os_name : String | Nil | Nil)
os_name?
os_release
os_release!
os_release=(os_release : String | Nil | Nil)
os_release?
os_version
os_version!
os_version=(os_version : String | Nil | Nil)
os_version?
services
state
state!
state=(state : Int32 | Int64 | Nil | Nil)
state?
swap
swap!
swap=(swap : Int32 | Int64 | Nil | Nil)
swap?
updated_at
updated_at!
updated_at=(updated_at : Time | Nil | Nil)
updated_at?
uptime
uptime!
uptime=(uptime : Int32 | Int64 | Nil | Nil)
uptime?
version
version!
version=(version : String | Nil | Nil)
version?