Using data from another datasource
Hi, we are creating a new datasource that needs data that is already being collected on another datasource. It is possible to use that data already collected instead of polling the device again?
Our need is to re organize collected data on another way to simplify the LM Services creation as it cannot filter instances by any instance property.
Thanks!
smaidana
Posted 1 year ago·Last reply 1 year ago
6 comments
smaidana
OP1 year agoCan you help me with an example or link to documentation for the API ? I didn´t figure how it can be done in a datasource.
Joe Williams
·1 year agoLook in the Modules section and look up any of the modules that start with LogicMonitor_Portal. Those all show querying the LogicMonitor API and returning something. In your case you would target fetchdata or another api endpoint.
Joe Williams
·1 year agoYou have two options for this as far as I can see. You can query the API via the Datasource to retrieve the data and use it that way, or you can adjust the other datasource to cache its data and use that cache in the other datasource.