class Service
- Service
- Marten::DB::Model
- Reference
- Object
Defined in:
models/monit.crConstant 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
- #ack : Bool | Nil | Nil
- #ack!
- #ack=(ack : Bool | Nil | Nil)
- #ack?
- #active : Int32 | Int64 | Nil | Nil
- #active!
- #active=(active : Int32 | Int64 | Nil | Nil)
- #active?
- #created_at : Time | Nil | Nil
- #created_at!
- #created_at=(created_at : Time | Nil | Nil)
- #created_at?
- #event : String | Nil | Nil
- #event!
- #event=(event : String | Nil | Nil)
- #event?
- #host : Host | Nil
- #host! : Host
- #host=(related_object : Host | Nil)
- #host?
- #host_id : Marten::DB::Field::ReferenceDBTypes | Nil
- #host_id!
- #host_id=(related_id : Marten::DB::Field::ReferenceDBTypes | Nil)
- #host_id?
- #id : Int32 | Int64 | Nil | Nil
- #id!
- #id=(id : Int32 | Int64 | Nil | Nil)
- #id?
- #monitor : Int32 | Int64 | Nil | Nil
- #monitor!
- #monitor=(monitor : Int32 | Int64 | Nil | Nil)
- #monitor?
- #name : String | Nil | Nil
- #name!
- #name=(name : String | Nil | Nil)
- #name?
- #status : Int32 | Int64 | Nil | Nil
- #status!
- #status=(status : Int32 | Int64 | Nil | Nil)
- #status?
- #svc_type : Int32 | Int64 | Nil | Nil
- #svc_type!
- #svc_type=(svc_type : Int32 | Int64 | Nil | Nil)
- #svc_type?
- #updated_at : Time | Nil | Nil
- #updated_at!
- #updated_at=(updated_at : Time | Nil | Nil)
- #updated_at?