This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1182275 - [RFE] wildcarding api for mass-statistics
[RFE] wildcarding api for mass-statistics
Status: CLOSED WONTFIX
Product: oVirt
Classification: Community
Component: ovirt-engine-api (Show other bugs)
unspecified
Unspecified Unspecified
unspecified Severity unspecified
: ---
: 4.0.0
Assigned To: Juan Hernández
Pavel Stehlik
infra
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-01-14 14:02 EST by Frank Ch. Eigler
Modified: 2015-09-10 06:14 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-09-10 06:14:27 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Frank Ch. Eigler 2015-01-14 14:02:16 EST
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 02:44:22 EST
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 15:47:48 EST
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 04:00:44 EST
(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.