class

Service

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: "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 methods

ack
ack!
ack=(ack : Bool | Nil | Nil)
ack?
active
active!
active=(active : Int32 | Int64 | Nil | Nil)
active?
created_at
created_at!
created_at=(created_at : Time | Nil | Nil)
created_at?
event
event!
event=(event : String | Nil | Nil)
event?
host
host!
host?
host_id
host_id!
host_id?
id
id!
id=(id : Int32 | Int64 | Nil | Nil)
id?
monitor
monitor!
monitor=(monitor : Int32 | Int64 | Nil | Nil)
monitor?
name
name!
name=(name : String | Nil | Nil)
name?
status
status!
status=(status : Int32 | Int64 | Nil | Nil)
status?
svc_type
svc_type!
svc_type=(svc_type : Int32 | Int64 | Nil | Nil)
svc_type?
updated_at
updated_at!
updated_at=(updated_at : Time | Nil | Nil)
updated_at?