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

Fetch multiple attributes from Historical Data #442

Open
SakshiSharma-India opened this issue Jun 7, 2018 · 1 comment
Open

Fetch multiple attributes from Historical Data #442

SakshiSharma-India opened this issue Jun 7, 2018 · 1 comment

Comments

@SakshiSharma-India
Copy link

Is there any REST API to fetch multiple attributes from Historical Data:

I want to represent the updated Historical data in tabular format. But when I update the data using below REST API (POST), only the attributes in request body are updated:
https://:/orion/v1.0/updateContext

The remaining attributes are not updated. So, it gets difficult to map all the attributes at a particular timestamp.
The below REST API (GET) gives updated value of only one attribute at a time:
http://:/STH/v1/contextEntities/type//id//attributes/?filetype=csv

@fgalan
Copy link
Member

fgalan commented Jun 7, 2018

Is there any REST API to fetch multiple attributes from Historical Data?

I don't think so. By design, the API is oriented to single-attribute queries.

The problem implementing such functionalyt is that attribute update times are not necesarily aligned, so at the end, it would be a sum of independent histories (which is the same the client can get with the current API, using several call to it, one per attribute to retrieve).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants