Class: PagerDuty::MaintenanceClient

Inherits:
Service show all
Defined in:
lib/pagerduty/maintenance_client.rb

Constant Summary

Constants inherited from Service

Service::STATSD_KEY_PREFIX

Instance Method Summary collapse

Methods inherited from Service

#perform

Methods inherited from Common::Client::Base

configuration, #raise_backend_exception

Methods included from SentryLogging

#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger

Instance Method Details

#get_all(options = {}) ⇒ Object



11
12
13
14
15
16
# File 'lib/pagerduty/maintenance_client.rb', line 11

def get_all(options = {})
  return [] if PagerDuty::Configuration.service_ids.blank? # require allowlisted services

  raw_mws = get_all_raw(options)
  convert(raw_mws)
end