class Host

Defined in:

models/monit.cr

Constant Summary

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 Method Summary

Instance Method Detail

def cpu : Int32 | Int64 | Nil | Nil #

def cpu! #

def cpu=(cpu : Int32 | Int64 | Nil | Nil) #

def cpu? #

def created_at : Time | Nil | Nil #

def created_at! #

def created_at=(created_at : Time | Nil | Nil) #

def created_at? #

def cycle : Int32 | Int64 | Nil | Nil #

def cycle! #

def cycle=(cycle : Int32 | Int64 | Nil | Nil) #

def cycle? #

def id : UUID | Nil | Nil #

def id! #

def id=(id : UUID | Nil | Nil) #

def id? #

def mem : Int32 | Int64 | Nil | Nil #

def mem! #

def mem=(mem : Int32 | Int64 | Nil | Nil) #

def mem? #

def name : String | Nil | Nil #

def name! #

def name=(name : String | Nil | Nil) #

def name? #

def os_arch : String | Nil | Nil #

def os_arch! #

def os_arch=(os_arch : String | Nil | Nil) #

def os_arch? #

def os_name : String | Nil | Nil #

def os_name! #

def os_name=(os_name : String | Nil | Nil) #

def os_name? #

def os_release : String | Nil | Nil #

def os_release! #

def os_release=(os_release : String | Nil | Nil) #

def os_release? #

def os_version : String | Nil | Nil #

def os_version! #

def os_version=(os_version : String | Nil | Nil) #

def os_version? #

def services #

def state : Int32 | Int64 | Nil | Nil #

def state! #

def state=(state : Int32 | Int64 | Nil | Nil) #

def state? #

def swap : Int32 | Int64 | Nil | Nil #

def swap! #

def swap=(swap : Int32 | Int64 | Nil | Nil) #

def swap? #

def updated_at : Time | Nil | Nil #

def updated_at! #

def updated_at=(updated_at : Time | Nil | Nil) #

def updated_at? #

def uptime : Int32 | Int64 | Nil | Nil #

def uptime! #

def uptime=(uptime : Int32 | Int64 | Nil | Nil) #

def uptime? #

def version : String | Nil | Nil #

def version! #

def version=(version : String | Nil | Nil) #

def version? #