Bug 1182275 - [RFE] wildcarding api for mass-statistics
Summary: [RFE] wildcarding api for mass-statistics
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-api
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.0.0
Assignee: Juan Hernández
QA Contact: Pavel Stehlik
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-14 19:02 UTC by Frank Ch. Eigler
Modified: 2015-09-10 10:14 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-10 10:14:27 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description Frank Ch. Eigler 2015-01-14 19:02:16 UTC
Further to bug #1059783, it would be nice if the /statistics
queries in the REST API had a mode whereby the server/engine
iterated across objects to return one bulk response, rather
than (what I believe is) the current requirement to enumerate
each target object, one per request.  So, for example, please
consider supporting not just:

GET /api/hosts/{host:id}/statistics
GET /api/vms/{vm:id}/nics/{nic:id}/statitics

but also something like:

GET /api/hosts/*/statistics
GET /api/vms/*/nics/*/statistics

and the xml/json results would naturally contain nested
structures, identifying the respective {host:id} or {nic:id}
etc. with a nested tag.

Comment 1 Juan Hernández 2015-01-15 07:44:22 UTC
Doing this is extremelly complicated as it breaks the assumption that one URI maps to one resource. Supporting that wildcard may just be impossible with Resteasy. Anyhow I'm targeting for 4.0 for later reconsideration.

Comment 2 Frank Ch. Eigler 2015-01-16 20:47:48 UTC
OK, until the point where you can reference a group of resources
under one URI / HTTP request, what is the preferred method for
fetching stats about all the resources?  A list-all-objects call
then N separate per-object calls?

Comment 3 Juan Hernández 2015-01-19 09:00:44 UTC
(In reply to Frank Ch. Eigler from comment #2)
> OK, until the point where you can reference a group of resources
> under one URI / HTTP request, what is the preferred method for
> fetching stats about all the resources?  A list-all-objects call
> then N separate per-object calls?

Yes, that is the only way.


Note You need to log in before you can comment on or make changes to this bug.