class Alert

Defined in:

models/monit.cr

Constant Summary

FIELDS_ = {"id" => {type: "big_int", kwargs: {primary_key: true, auto: true}}, "host" => {type: "many_to_one", kwargs: {to: Host}}} of Nil => Nil

Instance Method Summary

Instance Method Detail

def host : Host | Nil #

def host! : Host #

def host=(related_object : Host | Nil) #

def host? #

def host_id : Marten::DB::Field::ReferenceDBTypes | Nil #

def host_id! #

def host_id=(related_id : Marten::DB::Field::ReferenceDBTypes | Nil) #

def host_id? #

def id : Int32 | Int64 | Nil | Nil #

def id! #

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

def id? #