Module: Lunanode::APIActions::Monitor

Included in:
Lunanode::APIActions
Defined in:
lib/lunanode/api_actions/monitor.rb,
lib/lunanode/api_actions/default/monitor.rb

Instance Method Summary collapse

Instance Method Details

#monitor_alert_add(check_id:, contact_id:) ⇒ Object



38
39
40
# File 'lib/lunanode/api_actions/default/monitor.rb', line 38

def monitor_alert_add(check_id:, contact_id:)
  action(:monitor, :"alert-add", check_id: check_id, contact_id: contact_id)
end

#monitor_alert_list(check_id:) ⇒ Object



34
35
36
# File 'lib/lunanode/api_actions/default/monitor.rb', line 34

def monitor_alert_list(check_id:)
  action(:monitor, :"alert-list", check_id: check_id)
end

#monitor_alert_remove(alert_id:) ⇒ Object



42
43
44
# File 'lib/lunanode/api_actions/default/monitor.rb', line 42

def monitor_alert_remove(alert_id:)
  action(:monitor, :"alert-remove", alert_id: alert_id)
end

#monitor_check_add(name:, type:, fail_count:, success_count:, check_interval:, **from_check_type) ⇒ Object



14
15
16
# File 'lib/lunanode/api_actions/default/monitor.rb', line 14

def monitor_check_add(name:, type:, fail_count:, success_count:, check_interval:, **from_check_type)
  action(:monitor, :"check-add", name: name, type: type, fail_count: fail_count, success_count: success_count, check_interval: check_interval, **from_check_type)
end

#monitor_check_listObject



6
7
8
# File 'lib/lunanode/api_actions/default/monitor.rb', line 6

def monitor_check_list
  action(:monitor, :"check-list")
end

#monitor_check_remove(check_id:) ⇒ Object



18
19
20
# File 'lib/lunanode/api_actions/default/monitor.rb', line 18

def monitor_check_remove(check_id:)
  action(:monitor, :"check-remove", check_id: check_id)
end

#monitor_check_typesObject



10
11
12
# File 'lib/lunanode/api_actions/default/monitor.rb', line 10

def monitor_check_types
  action(:monitor, :"check-types")
end

#monitor_contact_addObject



26
27
28
# File 'lib/lunanode/api_actions/default/monitor.rb', line 26

def monitor_contact_add
  action(:monitor, :"contact-add")
end

#monitor_contact_listObject



22
23
24
# File 'lib/lunanode/api_actions/default/monitor.rb', line 22

def monitor_contact_list
  action(:monitor, :"contact-list")
end

#monitor_contact_remove(type:, rel:) ⇒ Object



30
31
32
# File 'lib/lunanode/api_actions/default/monitor.rb', line 30

def monitor_contact_remove(type:, rel:)
  action(:monitor, :"contact-remove", type: type, rel: rel)
end