Module: InsightsCloud

Defined in:
lib/insights_cloud.rb,
lib/insights_cloud/async/rules_result.rb,
lib/insights_cloud/async/insights_full_sync.rb,
lib/insights_cloud/async/insights_rules_sync.rb,
app/controllers/insights_cloud/hits_controller.rb,
app/controllers/insights_cloud/tasks_controller.rb,
lib/insights_cloud/async/insights_scheduled_sync.rb,
app/controllers/insights_cloud/settings_controller.rb,
lib/insights_cloud/async/insights_resolutions_sync.rb,
lib/insights_cloud/async/insights_client_status_aging.rb,
lib/insights_cloud/async/cloud_connector_announce_task.rb,
app/controllers/concerns/insights_cloud/candlepin_cache.rb,
lib/insights_cloud/async/insights_generate_notifications.rb,
lib/insights_cloud/generators/playbook_progress_generator.rb,
app/controllers/concerns/insights_cloud/client_authentication.rb,
lib/insights_cloud/async/connector_playbook_execution_reporter_task.rb

Defined Under Namespace

Modules: Api, Async, CandlepinCache, ClientAuthentication, Generators, WebUi Classes: HitsController, SettingsController, TasksController

Class Method Summary collapse

Class Method Details

.enable_client_paramObject



28
29
30
# File 'lib/insights_cloud.rb', line 28

def self.enable_client_param
  'host_registration_insights'
end

.enable_cloud_remediations_paramObject



32
33
34
# File 'lib/insights_cloud.rb', line 32

def self.enable_cloud_remediations_param
  'enable_cloud_remediations'
end

.hits_export_urlObject



8
9
10
# File 'lib/insights_cloud.rb', line 8

def self.hits_export_url
  ForemanRhCloud.cert_base_url + '/api/insights/v1/export/hits/'
end

.playbook_urlObject



20
21
22
# 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) ⇒ Object



24
25
26
# File 'lib/insights_cloud.rb', line 24

def self.remediation_rule_id(rule_id)
  "advisor:#{rule_id}"
end

.resolutions_urlObject



16
17
18
# 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) ⇒ Object



12
13
14
# 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