Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-22996

[fiware-stackoverflow] QuantumLeap: store the same model with different columns in two tables (timescale)

    Details

    • Type: Monitor
    • Status: Answered
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: FIWARE-TECH-HELP

      Description

      Created question in FIWARE Q/A platform on 23-11-2023 at 15:11
      Please, ANSWER this question AT https://stackoverflow.com/questions/77537711/quantumleap-store-the-same-model-with-different-columns-in-two-tables-timescal

      Question:
      QuantumLeap: store the same model with different columns in two tables (timescale)

      Description:
      I am using NGSI-LD and Orion Context Broker v1.4.
      I need to store in two independent tables that start data from the same model but have different attributes.
      If I use two subscriptions it stores them in the same table.
      1 Subscription:
      {
      "description": "Store vehicle data",
      "type": "Subscription",
      "entities": [

      { "type": "Vehicle" }

      ],
      "watchedAttributes": ["alternateName", "color", "license_plate", "name"],
      "notification": {
      "attributes": ["id", "alternateName", "color", "license_plate", "name"],
      "format": "normalized",
      "endpoint": {
      "uri": "qunatumleap:8668/v2/notify",
      "accept": "application/json"
      }
      }
      }

      2 Subscription:
      {
      "description": "Store dynamic data",
      "type": "Subscription",
      "entities": [

      { "type": "Vehicle" }

      ],
      "watchedAttributes": ["location", "heading", "speed"],
      "notification": {
      "attributes": ["id","location", "heading", "speed"],
      "format": "normalized",
      "endpoint": {
      "uri": "quantumleap:8668/v2/notify",
      "accept": "application/json"
      }
      }
      }

        Activity

        Hide
        newbacklogmanager Backlog Manager added a comment -

        2025-02-04 17:52|CREATED monitor | # answers= 1, accepted answer= False

        Show
        newbacklogmanager Backlog Manager added a comment - 2025-02-04 17:52|CREATED monitor | # answers= 1, accepted answer= False
        Hide
        newbacklogmanager Backlog Manager added a comment -

        2025-02-05 01:00|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        newbacklogmanager Backlog Manager added a comment - 2025-02-05 01:00|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        Hide
        newbacklogmanager Backlog Manager added a comment -

        2025-02-06 01:01|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        newbacklogmanager Backlog Manager added a comment - 2025-02-06 01:01|UPDATED status: transition Answered| # answers= 1, accepted answer= False

          People

          • Assignee:
            jason.fox Jason Fox
            Reporter:
            newbacklogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: