Sha256: a9e165a30b8130efbf87e286cd226fef96c5ceed21737a4160e880b798591c14
Contents?: true
Size: 833 Bytes
Versions: 19
Compression:
Stored size: 833 Bytes
Contents
module InsightsCloud module WebUi ADVISOR = 'advisor' VULNERABILITY = 'vulnerability' PATCH = 'patch' def self.system_url(subsystem, host_uuid) ForemanRhCloud.base_url + "/insights/#{subsystem}/systems/#{host_uuid}" end end def self.hits_export_url ForemanRhCloud.base_url + '/api/insights/v1/export/hits/' end def self.rules_url(limit: ForemanRhCloud.query_limit, offset: 0) ForemanRhCloud.base_url + "/api/insights/v1/rule/?impacting=true&rule_status=enabled&has_playbook=true&limit=#{limit}&offset=#{offset}" end def self.resolutions_url ForemanRhCloud.base_url + '/api/remediations/v1/resolutions' end def self.playbook_url ForemanRhCloud.base_url + '/api/remediations/v1/playbook' end def self.remediation_rule_id(rule_id) "advisor:#{rule_id}" end end
Version data entries
19 entries across 19 versions & 1 rubygems