Sha256: e2a4e72ad4a223f70fac8977f89f84e3a44fe58d3d2bbf986e973360267cc502
Contents?: true
Size: 420 Bytes
Versions: 36
Compression:
Stored size: 420 Bytes
Contents
module Ddr class Alert < AuxiliaryResource ADMIN_SITE = 'admin' PUBLIC_SITE = 'public' # @param [String] the application ('admin' or 'public') for which to return active alerts # @return [Array] the active alerts for the requested application site def self.call(site) get(:active, site: site).map { |resp| new(resp) } rescue ActiveResource::ServerError => e [] end end end
Version data entries
36 entries across 36 versions & 1 rubygems