Code

store: Let JSON formatter know about the to-be-formatted object type.
authorSebastian Harl <sh@tokkee.org>
Sun, 2 Nov 2014 18:04:42 +0000 (19:04 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 2 Nov 2014 18:04:42 +0000 (19:04 +0100)
commit914549be3bfffdd3ad4b2599ed1e771d857512da
treea47f2d95fad434c481694c394c2bb18f10ae055f
parentfa16153fd58a0a5c36037c81119072f1a0623e48
store: Let JSON formatter know about the to-be-formatted object type.

When formatting services or metrics, expect those objects to be emitted on the
highest level and then create the host object for them first (once for a
series of objects belonging to the same host).
src/core/store_json.c
src/frontend/query.c
src/include/core/store.h
t/unit/core/store_json_test.c