Method: WatchList::Exporter#export

Defined in:
lib/watch_list/exporter.rb

#exportObject



17
18
19
20
21
22
23
24
25
# File 'lib/watch_list/exporter.rb', line 17

def export
  monitors = @uptimerobot.getMonitors(showMonitorAlertContacts: 1)
  alert_contacts = @uptimerobot.getAlertContacts

  {
    :monitors       => normalize_monitors(monitors),
    :alert_contacts => normalize_alert_contacts(alert_contacts),
  }
end