[Hawkular-dev] Metric under Resource Type
John Mazzitelli
mazz at redhat.com
Sat Aug 6 14:16:02 EDT 2016
> I posted my feed, resources and metrics to inventory with /bulk api.
> But the errors shows:
> "errorMsg" : "Entity of type 'Metric' cannot be created under an entity of
> type 'Resource'."
> Why is this not allowed since I can do it with normal create entity api?
> How can I create a metric under a certain resource with bulk api?
The agent does it in its /bulk requests. You can see how the agent does it here:
https://github.com/hawkular/hawkular-agent/blob/master/hawkular-wildfly-agent/src/main/java/org/hawkular/agent/monitor/storage/AsyncInventoryStorage.java#L194
More information about the hawkular-dev
mailing list