Sha256: 2322d8a4e2fad78dd00edebbd2ef2da6183809b88666f0327d03d90160080c65

Contents?: true

Size: 791 Bytes

Versions: 3

Compression:

Stored size: 791 Bytes

Contents

module InsightsCloud
  module WebUi
    ADVISOR = 'advisor'
    VULNERABILITY = 'vulnerability'
    PATCH = 'patch'
  end

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

  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

  def self.resolutions_url
    ForemanRhCloud.cert_base_url + '/api/remediations/v1/resolutions'
  end

  def self.playbook_url
    ForemanRhCloud.cert_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

3 entries across 3 versions & 1 rubygems

Version Path
foreman_rh_cloud-5.0.38 lib/insights_cloud.rb
foreman_rh_cloud-5.0.37 lib/insights_cloud.rb
foreman_rh_cloud-5.0.36 lib/insights_cloud.rb