[Hawkular-dev] inventory and resource config props

Lukas Krejci lkrejci at redhat.com
Thu Jul 14 09:48:01 EDT 2016


On čtvrtek 14. července 2016 8:41:44 CEST John Mazzitelli wrote:
> > Yes, /bulk is just for creating stuff. So if your entities already exist,
> > bulk just skips them, never updates. This is exactly what /sync is for.
> 
> So can I assume I can just switch over my URL from "bulk/" to "sync/" and
> things will just work as expected? (i.e. resources and their related data
> like config props that don't exist are created, resources and their related
> data that do exist are updated)??

Unfortunately the format of the data is different to what is used in /bulk. It 
still uses the various blueprint types but they are composed together 
differently. Also, there now is a builder for the whole structure, so it might 
be easier for you to make use of it.

See https://github.com/hawkular/hawkular-inventory/blob/master/hawkular-inventory-api/src/main/java/org/hawkular/inventory/api/model/
InventoryStructure.java#L348

-- 
Lukas Krejci



More information about the hawkular-dev mailing list