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

Version Path
foreman_rh_cloud-4.0.36 lib/insights_cloud.rb
foreman_rh_cloud-4.0.35 lib/insights_cloud.rb
foreman_rh_cloud-5.0.35 lib/insights_cloud.rb
foreman_rh_cloud-5.0.34 lib/insights_cloud.rb
foreman_rh_cloud-5.0.33 lib/insights_cloud.rb
foreman_rh_cloud-4.0.32 lib/insights_cloud.rb
foreman_rh_cloud-5.0.32 lib/insights_cloud.rb
foreman_rh_cloud-4.0.31 lib/insights_cloud.rb
foreman_rh_cloud-5.0.31 lib/insights_cloud.rb
foreman_rh_cloud-5.0.30 lib/insights_cloud.rb
foreman_rh_cloud-4.0.30 lib/insights_cloud.rb
foreman_rh_cloud-4.0.29 lib/insights_cloud.rb
foreman_rh_cloud-5.0.29 lib/insights_cloud.rb
foreman_rh_cloud-5.0.28 lib/insights_cloud.rb
foreman_rh_cloud-4.0.27 lib/insights_cloud.rb
foreman_rh_cloud-4.0.26 lib/insights_cloud.rb
foreman_rh_cloud-4.0.25.1 lib/insights_cloud.rb