Revision 91ad276d
Added by Greg Sutcliffe over 10 years ago
app/models/concerns/report_common.rb | ||
---|---|---|
METRIC = %w[applied restarted failed failed_restarts skipped pending]
|
||
BIT_NUM = 6
|
||
MAX = (1 << BIT_NUM) -1 # maximum value per metric
|
||
LOG_LEVELS = %w[debug info notice warning err alert emerg crit]
|
||
|
||
extend ActiveSupport::Concern
|
||
|
Also available in: Unified diff
Fixes #2414 - Move puppet report processing code to the report processor
This creates a API route for POST:/api/reports which matches the GET
format for reports. Tests are updated, with the report model tests
moving to the puppet-foreman module (along with the report fixtures).