Forum Discussion

manthena2020's avatar
30 days ago

How to capture a Datapoint as property source in Collection Scrit?

In Discovery script, there is way to capture the datapoint value as Property source using print statement. is there any way in Collection Script?

  • Sorry, atleast for me, I don't quite understand your question. Can you describe a bit more on what you are trying to do?

  • I want to capture the Datapoint value from collection script as instance Property.

    • Mike_Moniz's avatar
      Mike_Moniz
      Icon for Professor rankProfessor

      You would need to put the code that collects that value and add it it to the autodiscover script itself.

      As far as I know, you can only add instance properties within the autodiscover script. Also keep in mind that instance properties are not meant to be updated frequently (at most every 15min, but mostly once-a-day) nor does it store history.

  • if we can also add instance properties with Data collection Script that will help us.

    • Mike_Moniz's avatar
      Mike_Moniz
      Icon for Professor rankProfessor

      I would suggest submitting feedback to LM via the portal. I suggest also providing a use case since it kinda sounds like you're trying to workaround something else. Are you trying to work around that DataPoints can only be numbers? There may be alternative options depending to the use case.