[openstack-dev] [all][oslo] Parse ISO8601 (open) time intervals

milanisko k vetrisko at gmail.com
Tue Sep 27 12:30:09 UTC 2016


Hello Stackers!

The ironic inspector project keeps track of introspection finished_at time
stamps.
We're just discussing how to reasonably query time ranges over the API[1]
to serve matching introspection statuses to the user.
Wikipedia[2] mentions the ISO8601 time interval specification (and there
are open-interval extensions to that).
It would be nice to be able to specify a query like :
     /v1/introspection?finished_at=2016:09:27:14:17/PT1H
to fetch all introspection statuses that finished within 1hour around 14:17
Today,
or to be able to state an open-ended interval:
    /v1/introspection?finished_at=2016:09:27:14:17/
but oslo_utils.timeutils lacks parsing support for ISO8061 time intervals.

I'd like to ask whether other projects need to parse time intervals and/or
how do they achieve that.

Thanks!
milan

[1]
https://review.openstack.org/#/c/375045/3/specs/list-introspection-statuses.rst
[2] https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160927/717975aa/attachment.html>


More information about the OpenStack-dev mailing list