IndustryFusion / DigitalTwin

This repository contains the ingredients for the Digital Twin Concept of Industry Fusion.
Apache License 2.0
33 stars 20 forks source link

[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 6 months ago

yshashix commented 6 months ago

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

yshashix commented 5 months ago

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}