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

Version Path
foreman_rh_cloud-3.0.33 lib/insights_cloud.rb
foreman_rh_cloud-3.0.32 lib/insights_cloud.rb
foreman_rh_cloud-3.0.29 lib/insights_cloud.rb
foreman_rh_cloud-3.0.28 lib/insights_cloud.rb
foreman_rh_cloud-3.0.26 lib/insights_cloud.rb
foreman_rh_cloud-3.0.25 lib/insights_cloud.rb
foreman_rh_cloud-4.0.25 lib/insights_cloud.rb
foreman_rh_cloud-3.0.24.1 lib/insights_cloud.rb
foreman_rh_cloud-4.0.24.1 lib/insights_cloud.rb
foreman_rh_cloud-3.0.24 lib/insights_cloud.rb
foreman_rh_cloud-4.0.24 lib/insights_cloud.rb
foreman_rh_cloud-3.0.23 lib/insights_cloud.rb
foreman_rh_cloud-4.0.23 lib/insights_cloud.rb
foreman_rh_cloud-3.0.22 lib/insights_cloud.rb
foreman_rh_cloud-4.0.22 lib/insights_cloud.rb
foreman_rh_cloud-4.0.21.1 lib/insights_cloud.rb
foreman_rh_cloud-3.0.21.1 lib/insights_cloud.rb
foreman_rh_cloud-3.0.21 lib/insights_cloud.rb
foreman_rh_cloud-3.0.20 lib/insights_cloud.rb