Module: Livestatus::CheckType

Included in:
Host, Service
Defined in:
lib/livestatus/models.rb

Instance Method Summary collapse

Instance Method Details

#check_typeObject



77
78
79
80
81
82
# File 'lib/livestatus/models.rb', line 77

def check_type
  {
    0 => :active,
    1 => :passive,
  }[data[:check_type]]
end