Blog Post
Is there a way to get the DeviceDatasourceID as a built in variable from the platform? That would save a ton of API overhead. Then I can just grab the instances from that and get my historical data using the DDI’s properties. I don’t find anything in the LM Docs that state this for use in dataSources, I do find them for alerts though.
I can get the deviceid and the instanceid, but not the datasourceid… from the restAPI, I can access the device and the dataSource, but not the instance… so I have to get the devicedatasource to get to the instance no matter how I slice it. That adds an extra uneccesary API call that could be a single pre-filtered call.
I’ll put in a feedback for the direct instance access as I would prefer that since we seem to have that ID as an instance level token as ##system.instanceid## I would expect there to be a ##system.devicedatasourceid## that we could reach now to get the necessary IDs for filling out the URL to the instance.