Added ObjectManager::Attribute count to monitoring status result.

This commit is contained in:
Martin Edenhofer 2019-03-14 16:31:56 +01:00
parent 124d979e44
commit 2ccda12cc2

View file

@ -226,12 +226,13 @@ curl http://localhost/api/v1/monitoring/status?token=XXX
} }
map = { map = {
users: User, users: User,
groups: Group, groups: Group,
overviews: Overview, overviews: Overview,
tickets: Ticket, tickets: Ticket,
ticket_articles: Ticket::Article, ticket_articles: Ticket::Article,
text_modules: TextModule, text_modules: TextModule,
object_manager_attributes: ObjectManager::Attribute,
} }
map.each do |key, class_name| map.each do |key, class_name|
status[:counts][key] = class_name.count status[:counts][key] = class_name.count