Skip to content
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

Representing a history of status changes #920

Open
Pavinati opened this issue Apr 3, 2024 · 1 comment
Open

Representing a history of status changes #920

Pavinati opened this issue Apr 3, 2024 · 1 comment
Labels
usecase This issue covers a usecase found in the wild that is not easily handled with the status quo

Comments

@Pavinati
Copy link
Collaborator

Pavinati commented Apr 3, 2024

I'm trying to model the status of a device while also keeping track of its past values.
This concept is something in between a property and a datastream, but neither of those fit my user case well enough.
Properties don't have a history, so i can't retrieve the previous values.
Datastream are more suited for "events" or single datapoints.
I could model the problem with a datastream that tracks the status changes but there is no clear API to retrieve the device status in a given time interval, as using since=X and to=Y will not return which status was active at the timestamp X

@Pavinati Pavinati added the usecase This issue covers a usecase found in the wild that is not easily handled with the status quo label Apr 3, 2024
@Annopaolo
Copy link
Collaborator

This may be related to #591 too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usecase This issue covers a usecase found in the wild that is not easily handled with the status quo
Projects
None yet
Development

No branches or pull requests

2 participants