Add direct accesses to samples

Registered by Ladislav Smola on 2013-09-02

The idea is to add an API equivalent to the /meter/<meter id> but with /samples/<sample-id>, allowing to not specify a meter name.

- GET /sample would return the whole list of sample [done]
- GET /sample/<sample-id> would return one sample [done]
- GET /sample?q= would allow for filtering on samples, like done for /meter
- POST /sample would post a sample (like done currently)
- GET /sample-statistics/?q= would allow to get statistics

Blueprint information

Status:
Complete
Approver:
Julien Danjou
Priority:
Medium
Drafter:
Julien Danjou
Direction:
Approved
Assignee:
Julien Danjou
Definition:
Approved
Series goal:
Accepted for icehouse
Implementation:
Implemented
Milestone target:
milestone icon 2014.1
Started by
Julien Danjou on 2013-12-06
Completed by
Julien Danjou on 2014-01-22

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/sample-api,n,z

Addressed by: https://review.openstack.org/60540
    Implement the /v2/sample API

Addressed by: https://review.openstack.org/61814
    Implement the /v2/samples/<sample-id> API

Gerrit topic: https://review.openstack.org/#q,topic:jd/sample-api,n,z

Addressed by: https://review.openstack.org/61962
    api: raise ClientSideError rather than ValueError

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.