-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
API: delete data #56
Comments
Hello, What is your thought on the way of implementing this: via a separate REST endpoint just for deletion or to attach deletion filters to the same dataset when sending it? I think a separate endpoint would be the way to go... |
Thanks for your response. Any ability to erase/remove/delete to begin with should be fine. Incremental feature enhancement works for me. On your other question, I was thinking of
as it would be easy to package and send them all in one. This is especially useful if the array feature I requested earlier is implemented too However, if
is easier for first cut implementation, I think it should serve the purpose too |
yes. |
Hello @ln-komandur |
Thank you. I am yet to check if this is works for me partly already. In the meantime, from the wiki, I wasn't sure if we can also delete by using the other data set names like Column 1 etc. like below.
|
Hello @ln-komandur |
To hide / filter plotted data, I am of the understanding that the "Threshold" feature in the UI works on values from 'dimension3' made with JSON calls. And the 'dimension1' is the name of the data element being plotted. Please correct me if I am wrong here.
In my application, I have data coming in from 3 sensors, thrice every second (i.e. 3 orientations of accelerometer, 3 orientations of magnetometer, 1 thermometer). I am trying to send them to 3 or 4 different graphs using Rest API calls to plot in near real time. I don't have the need for old data in my graphs in different ways and I want to delete them by sending a suitable JSON object in my Rest API call. Some examples are as below
{'erase': "all"}
This should delete plots for all dimensions in that graph.
{'erase' : "range", dimension1 : "X axis", 'before' : "number of data points before which to delete", 'after' : "number of data points after which to delete", 'range' : "inside" or "outside"}
If passed 'range' : "inside", (or say "within"), then data points between the "after" and "before" should be deleted
If passed 'range' : "outside", (or say "without", or "keep"), then data points other than the ones between the "after" and "before" should be deleted
For e.g (example A), calling
{'erase' : "range", dimension1 : "X axis", 'before' : "200", 'range' : "outside"}
should delete all data points before the last 200 data points. This will help keep the graphs to current interest (last 200 in this example) only.
{'erase' : "dimension", dimension1 : "X axis",'range' : "all"}
This should delete the entire set of data points plotted for the name given in 'dimension1'
{'erase' : "point", 'dimension1': 'X axis', 'dimension2': aTime, 'dimension3': 1}
{'erase' : "keep", dimension1 : "X axis", 'before' : "200"}
should delete all data points before the last 200 data points without making repeated calls like in example A above. They both do the same thing however, example A does it by repeated calling, whereas "keep" is a one time call. Since this is a one time call, it should be possible to reset it also by passing
{'erase' : "reset", dimension1 : "X axis"}
Please advise the functionality is possible in the current implementation. Also please point to the documentation.
The text was updated successfully, but these errors were encountered: