Sha256: 3b395662b30f6e969f974bcdb2cd036c54e79d769c5a87e882027b90ab9384ff

Contents?: true

Size: 317 Bytes

Versions: 3

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

object @host_report

extends 'api/v2/host_reports/base'
extends 'api/v2/layouts/permissions'

attributes :format, :host_id, :proxy_id, :reported_at, :change, :nochange, :failure

node(:host_name) do |report|
  report.host.name
end
node(:proxy_name) do |report|
  report.proxy&.name
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_host_reports-1.0.2 app/views/api/v2/host_reports/main.json.rabl
foreman_host_reports-1.0.1 app/views/api/v2/host_reports/main.json.rabl
foreman_host_reports-1.0.0 app/views/api/v2/host_reports/main.json.rabl