class Service

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: "big_int", kwargs: {primary_key: true, auto: true, index: true}}, "host" => {type: "many_to_one", kwargs: {to: Host, related: :services, index: true}}, "name" => {type: "string", kwargs: {max_size: 40}}, "status" => {type: "int", kwargs: {primary_key: false, null: true, blank: true}}, "active" => {type: "int", kwargs: {primary_key: false, null: true, blank: true}}, "svc_type" => {type: "int", kwargs: {primary_key: false, null: true, blank: true}}, "monitor" => {type: "int", kwargs: {primary_key: false, null: true, blank: true}}, "event" => {type: "string", kwargs: {null: true, max_size: 300, blank: true}}, "ack" => {type: "bool", kwargs: {null: true, blank: true}}} of Nil => Nil

Instance Method Summary

Instance Method Detail

def ack : Bool | Nil | Nil #

def ack! #

def ack=(ack : Bool | Nil | Nil) #

def ack? #

def active : Int32 | Int64 | Nil | Nil #

def active! #

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

def active? #

def created_at : Time | Nil | Nil #

def created_at! #

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

def created_at? #

def event : String | Nil | Nil #

def event! #

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

def event? #

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? #

def monitor : Int32 | Int64 | Nil | Nil #

def monitor! #

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

def monitor? #

def name : String | Nil | Nil #

def name! #

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

def name? #

def status : Int32 | Int64 | Nil | Nil #

def status! #

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

def status? #

def svc_type : Int32 | Int64 | Nil | Nil #

def svc_type! #

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

def svc_type? #

def updated_at : Time | Nil | Nil #

def updated_at! #

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

def updated_at? #