Improvements for API v2

Registered by Nick Barcet

The API needs to evolve in order to solve more advanced questions from billing engines such as:

- Give me the maximum usage of a resource that lasted more than 1h
- Give me the use of a resource over a period of time, listing changes by increment of X volume over a period of Y time
- Provide additional statistical function (Deviation, Median, Variation, Distribution, Slope, etc...) which could be given as multiple results for a given data set collection
- OR operator in filter

Blueprint information

Status:
Complete
Approver:
Julien Danjou
Priority:
Undefined
Drafter:
François Charlier
Direction:
Approved
Assignee:
Julien Danjou
Definition:
Obsolete
Series goal:
None
Implementation:
Started
Milestone target:
milestone icon next
Started by
Julien Danjou
Completed by
gordon chung

Related branches

Whiteboard

(asalkeld) I have tried to summerize the different usecases here:
https://wiki.openstack.org/wiki/Ceilometer/blueprints/api-v2-improvements
(Doug I moved the pagination to the wiki too.)

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

Addressed by: https://review.openstack.org/36107
    Add first and last sample timestamp

Addressed by: https://review.openstack.org/35297
    Use MongoDB aggregate to get resources list

Addressed by: https://review.openstack.org/33290
    Use a real MongoDB instance to run unit tests

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

this covers way too much stuff, some already implemented -- gordc (10.11.15)

(?)

Work Items