-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
index / events API #2670
Comments
Can you please take a look at the v3 api design? I think I have covered what you want there. v2 API is kind of feature freeze. |
I pasted it here for you
You can simply range over all the key space. And it will return you events in index order. |
@schmichael Thanks for the feedback here. As @xiang90 mentioned this is the direction we plan to take etcd in via the proposed v3 api. |
Looking at #2675 it looks like WatchRequests will work for this case perfectly. I'll close this issue. |
When debugging application interactions with etcd it's often useful to view events in index order instead of as a hierarchical tree of keys. Currently this history can be constructed through a sequence of watches which increment the
waitIndex
over the desired window.For example if I want to know what happened between indexes 20 and 30:
A new API to view a history for a given window could simplify this:
If the requested range is partially outside of etcd's window it would reply with all available events.
If the requested range is completely outside of etcd's window it would reply with a 401 error code like watches.
The text was updated successfully, but these errors were encountered: