Sha256: 1abc26b5d49dcca0378a6d2e9fc48a878845d43186dd159b4e186ed6f0024af2
Contents?: true
Size: 904 Bytes
Versions: 17
Compression:
Stored size: 904 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 def self.enable_client_param 'host_registration_insights' end end
Version data entries
17 entries across 17 versions & 1 rubygems