module InsightsCloud
Public Class Methods
enable_client_param()
click to toggle source
# File lib/insights_cloud.rb, line 36 def self.enable_client_param 'host_registration_insights' end
enable_client_param_inventory()
click to toggle source
# File lib/insights_cloud.rb, line 40 def self.enable_client_param_inventory 'host_registration_insights_inventory' end
enable_cloud_remediations_param()
click to toggle source
# File lib/insights_cloud.rb, line 44 def self.enable_cloud_remediations_param 'enable_cloud_remediations' end
gateway_url()
click to toggle source
# File lib/insights_cloud.rb, line 24 def self.gateway_url ForemanRhCloud.cert_base_url end
hits_export_url()
click to toggle source
# File lib/insights_cloud.rb, line 8 def self.hits_export_url ForemanRhCloud.cert_base_url + '/api/insights/v1/export/hits/' end
playbook_url()
click to toggle source
# File lib/insights_cloud.rb, line 20 def self.playbook_url ForemanRhCloud.cert_base_url + '/api/remediations/v1/playbook' end
remediation_rule_id(rule_id)
click to toggle source
# File lib/insights_cloud.rb, line 32 def self.remediation_rule_id(rule_id) "advisor:#{rule_id}" end
resolutions_url()
click to toggle source
# File lib/insights_cloud.rb, line 16 def self.resolutions_url ForemanRhCloud.cert_base_url + '/api/remediations/v1/resolutions' end
rules_url(limit: ForemanRhCloud.query_limit, offset: 0)
click to toggle source
# File lib/insights_cloud.rb, line 12 def self.rules_url(limit: ForemanRhCloud.query_limit, offset: 0) ForemanRhCloud.cert_base_url + "/api/insights/v1/rule/?impacting=true&rule_status=enabled&has_playbook=true&limit=#{limit}&offset=#{offset}" end
ui_base_url()
click to toggle source
# File lib/insights_cloud.rb, line 28 def self.ui_base_url InsightsCloud.gateway_url end
vmaas_reposcan_sync_url()
click to toggle source
# File lib/insights_cloud.rb, line 48 def self.vmaas_reposcan_sync_url ForemanRhCloud.iop_smart_proxy.url + '/api/vmaas-reposcan/v1/sync' end