Class: ForemanStatistics::StatisticsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ForemanStatistics::StatisticsController
- Defined in:
- app/controllers/foreman_statistics/statistics_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 |
# File 'app/controllers/foreman_statistics/statistics_controller.rb', line 5 def index render :json => { :charts => charts.map(&:metadata) } end |
#show ⇒ Object
9 10 11 |
# File 'app/controllers/foreman_statistics/statistics_controller.rb', line 9 def show render :json => @stat..merge(:data => @stat.calculate.map(&:values)) end |