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

[User Story] As a service developer I want call rest NGSILD API for temporal/history data stored in timeseries database using Scorpio broker #552

Open
yshashix opened this issue May 17, 2024 · 1 comment
Assignees

Comments

@yshashix
Copy link
Collaborator

yshashix commented May 17, 2024

Details

Use NGSILD API with temporal query format to access timeseries data

Acceptance Criteria

  1. Start with a normal temporal query in NGSI-LD API format, should receive a response based on time duration
  2. Apply complex temporal query like aggregation function on temporal entity data using NGSILD API
  • Response should have value according to Aggregation method

Tasks

[] Analyse SQL complex query implemented by Scorpio Broker and evaluate if it make sense with timeseries db function
[] Adapt Scorpio Broker history manager to timescaledb
[] Create connection of Scorpio broker with timescaledb

Resources:

Notes

  • Socpio 4.1.15 store entity data in temporalentityattrinstance table on jsonb format and process it.
  • look in file for reference implementation of temporal aggregation query Scorpio history manager implementation link
@yshashix yshashix self-assigned this May 17, 2024
@yshashix yshashix changed the title [User Story] As a service developer I want call rest NGSILD API for temporal/history data using Scorpio broker [User Story] As a service developer I want call rest NGSILD API for temporal/history data stored in timeseries database using Scorpio broker May 17, 2024
@yshashix
Copy link
Collaborator Author

Multiple temporal API are like below from standard which is handled in temporal query manager of scorpio but need to be adjusted for timescaledb query as timeseries hyperfunction aggregate, max,min query read data directly.

  1. temporal/entities/
  2. temporal/entities/{entityId}
  3. temporal/entities/{entityId}/attrs/
  4. temporal/entities/{entityId}/attrs/{attrId}
  5. /temporal/entities/{entityId}/attrs/{attrId}/{instanceId}

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

No branches or pull requests

1 participant