Cloned from launchpad blueprint https://blueprints.launchpad.net/ceilometer/+spec/sync-api.
The idea behind this blueprint is to be able to retrieve all samples (or events) from Ceilometer to sync up with it.
The current design idea is the following:
1. Add a stored_at attribute on the samples/events that indicates when it was INSERTed in the database. This will also be useful to compare the generation timestamp with the insertion timestamp to have some performance metric about Ceilometer.
The purpose of this field will also to be used as a (non-unique) sequence indicator.
2. Add an API request that allows to request all events/samples with stored_at>=<timestamp>.
(3. We also could envision to not close the HTTP socket and stream events are they are inserted in the database)
Specification URL (additional information):