class Host
- Host
- 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: "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
- #cpu : Int32 | Int64 | Nil | Nil
- #cpu!
- #cpu=(cpu : Int32 | Int64 | Nil | Nil)
- #cpu?
- #created_at : Time | Nil | Nil
- #created_at!
- #created_at=(created_at : Time | Nil | Nil)
- #created_at?
- #cycle : Int32 | Int64 | Nil | Nil
- #cycle!
- #cycle=(cycle : Int32 | Int64 | Nil | Nil)
- #cycle?
- #id : UUID | Nil | Nil
- #id!
- #id=(id : UUID | Nil | Nil)
- #id?
- #mem : Int32 | Int64 | Nil | Nil
- #mem!
- #mem=(mem : Int32 | Int64 | Nil | Nil)
- #mem?
- #name : String | Nil | Nil
- #name!
- #name=(name : String | Nil | Nil)
- #name?
- #os_arch : String | Nil | Nil
- #os_arch!
- #os_arch=(os_arch : String | Nil | Nil)
- #os_arch?
- #os_name : String | Nil | Nil
- #os_name!
- #os_name=(os_name : String | Nil | Nil)
- #os_name?
- #os_release : String | Nil | Nil
- #os_release!
- #os_release=(os_release : String | Nil | Nil)
- #os_release?
- #os_version : String | Nil | Nil
- #os_version!
- #os_version=(os_version : String | Nil | Nil)
- #os_version?
- #services
- #state : Int32 | Int64 | Nil | Nil
- #state!
- #state=(state : Int32 | Int64 | Nil | Nil)
- #state?
- #swap : Int32 | Int64 | Nil | Nil
- #swap!
- #swap=(swap : Int32 | Int64 | Nil | Nil)
- #swap?
- #updated_at : Time | Nil | Nil
- #updated_at!
- #updated_at=(updated_at : Time | Nil | Nil)
- #updated_at?
- #uptime : Int32 | Int64 | Nil | Nil
- #uptime!
- #uptime=(uptime : Int32 | Int64 | Nil | Nil)
- #uptime?
- #version : String | Nil | Nil
- #version!
- #version=(version : String | Nil | Nil)
- #version?