GET /v1/resource/instance/some_existing_id/metric is a 404, should it list available metrics?

Bug #1450093 reported by Chris Dent
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gnocchi
Fix Released
Wishlist
Mehdi Abaakouk

Bug Description

A request of the form:

    /v1/resource/instance/some_existing_id/metric

will result in a 404 whereas if there are named metrics a request to

    /v1/resource/instance/some_existing_id/metric/cpu.util

will grant some data.

It might make sense for /metric URI to return a list of metrics available on this resource. Yes we have it elsewhere, but for convenience and traversability it might be nice.

Julien Danjou (jdanjou)
Changed in gnocchi:
status: New → Confirmed
importance: Undecided → Wishlist
Changed in gnocchi:
assignee: nobody → Romain Soufflet (romain-s)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to gnocchi (master)

Fix proposed to branch: master
Review: https://review.openstack.org/210242

Changed in gnocchi:
assignee: Romain Soufflet (romain-s) → Mehdi Abaakouk (sileht)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to gnocchi (master)

Reviewed: https://review.openstack.org/210242
Committed: https://git.openstack.org/cgit/openstack/gnocchi/commit/?id=16609692691b92245cfa7db68ae7004cf239239a
Submitter: Jenkins
Branch: master

commit 16609692691b92245cfa7db68ae7004cf239239a
Author: Mehdi Abaakouk <email address hidden>
Date: Fri Aug 7 09:45:05 2015 +0200

    rest: return metrics for ../<resource_id>/metric

    This change adds the handling of the /resource/generic/<id>/metric

    Closes-bug: #1450093
    Change-Id: I8db07370b1ddf5a11b32e2a4c60d0e9ad16e5564

Changed in gnocchi:
status: In Progress → Fix Committed
Julien Danjou (jdanjou)
Changed in gnocchi:
milestone: none → 1.1.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.