From 2ccda12cc2af84de290b57d1f0367fc32e3991b4 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 14 Mar 2019 16:31:56 +0100 Subject: [PATCH] Added ObjectManager::Attribute count to monitoring status result. --- app/controllers/monitoring_controller.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/controllers/monitoring_controller.rb b/app/controllers/monitoring_controller.rb index e1d4a838b..4955e9bc1 100644 --- a/app/controllers/monitoring_controller.rb +++ b/app/controllers/monitoring_controller.rb @@ -226,12 +226,13 @@ curl http://localhost/api/v1/monitoring/status?token=XXX } map = { - users: User, - groups: Group, - overviews: Overview, - tickets: Ticket, - ticket_articles: Ticket::Article, - text_modules: TextModule, + users: User, + groups: Group, + overviews: Overview, + tickets: Ticket, + ticket_articles: Ticket::Article, + text_modules: TextModule, + object_manager_attributes: ObjectManager::Attribute, } map.each do |key, class_name| status[:counts][key] = class_name.count