Integrating modelId from Azure Digital Twin into Time Series Insights

Matas Kaucikas 21 Reputation points
2020-11-27T15:33:16.02+00:00

Hi there,

What I'm currently trying to get my head around is the ability to integrate the model Id from an Azure Digital Twin instance within Time Series Insights. I understand that Time Series Insights (Gen2) accepts the datatype of a string, however when I try to initiate that state, it doesn't appear within TSI when a connection is successfully established with Azure Digital Twin and Time Series Insights.

43274-screenshot-2020-11-27-152843.png

Is there potentially a way to define this 'modelId' so that it can be viewed as an instance or even as a hierarchy within Time Series Insights, so that I don't manually have to this step?

Many thanks,

Matas

Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
231 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,201 questions
Azure Time Series Insights
Azure Time Series Insights
An Azure internet of things (IoT) analytics platform to monitor, analyze, and visualize industrial IoT analytics data at scale.
78 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Radhakrishnan Srinivasan 31 Reputation points Microsoft Employee
    2020-12-01T09:06:47.72+00:00

    @Matas Kaucikas , I am assuming you are trying to insert modelID as one of the instance field of an instance in TSI through our ingestion service.
    If that is the case, unfortunately we cant insert instance fields through our ingestor service. Instead you can call our API to insert instance field and its values. The API could be called from your "ProcessDTUpdatetoTSI" function or using upload JSON option in TSI model page.
    In either case, you cant upload the DTDL model directly as you are trying in the screenshot provided by you. TSI has its own syntax please refer to the attachment for details
    44004-capture.png43986-sample-model.txt

    Please refer to the following documentation for information about TSI model, Patch Syntax and API details!
    https://learn.microsoft.com/en-us/azure/time-series-insights/concepts-model-overview
    https://learn.microsoft.com/en-us/rest/api/time-series-insights/dataaccessgen2/timeseriesinstances/executebatch#instancesbatchput

    Please let me know if I could be of further help!

    1 person found this answer helpful.
    0 comments No comments

  2. Matas Kaucikas 21 Reputation points
    2020-12-07T11:11:14.75+00:00

    @Radhakrishnan Srinivasan , Thank you for the clarification in terms of the process of implementing ADT models into TSI directly.

    My next question would really be if there's a way to convert the DTDL model into a TSI compatible syntax? For e.g. adding the put parameters within the DTDL model and uploading the JSON via TSI directly or is there's further adjustments that would need to be made?

    Do let me know if this makes sense!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.