Skip to content

Ditto history: Getting events only from specific feature #2039

Answered by thjaeckle
ondrej-charvat asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ondrej-charvat

Thanks a lot for formulating your question so well 👍

What you describe should be possible with the added #1583 (search in history).
So you should be able to e.g. open a SSE:

http://<host>:<port>/api/2/things/<thingId>?filter=exists(features/State)

And with this only get events/changes back in which the features/State was modified.

Opening a SSE for a specific feature like you described is not yet supported - only the "Thing level" currently is. Same goes for the WebSocket - which should behave the same as SSE.

By the way, for our use case It would be best to be able to limit also what part of the thing history is being stored (e.g. only subset of the features) to limi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ondrej-charvat
Comment options

Answer selected by ondrej-charvat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants