GroveStreams
hicaro private msg quote post Address this user
Is there a way to download all the data (first submitted to the most recent one) for a particular stream using API calls?
Post 1 • IP   flag post
MikeMills private msg quote post Address this user
Not really. Our sample store indexing works from latest to earliest. Is there a use case that requires you to retrieve from earliest to latest?
Post 2 • IP   flag post
hicaro private msg quote post Address this user
Latest to earliest also works. After downloading the data I can re-sort them through my code.
A client who uses your services has a great amount of data and wants all of it offline to run analysis over it.

What would be the API call that I would have to perform to fetch the data?
Is it "GET component/{componentUid}/feed"?
Post 3 • IP   flag post
MikeMills private msg quote post Address this user
comp/{compId}/feed returns samples for all streams for the component.

comp/{compId}/stream/{streamId}/feed returns samples for just one stream.


Both of the above will return 1,000 samples at a time.

I would recommend calling comp/{compId}/stream/{streamId}/feed separately for each stream. Include the ed parameter. Set it to something large (or Now time) for the first call, then set it to the earliest sample time returned for the next call and so on until less than 1,000 samples come back.
Post 4 • IP   flag post
hicaro private msg quote post Address this user
That is great! I'll try that.

Thank you for the help, Mike.
Post 5 • IP   flag post
2511 5 5
Log in or sign up to compose a reply.
destitute