Forum Discussion
skylaurman
Employee
9 months agoHere is a way to get a list of the wild values:
def listOfWildValues = datasourceinstanceProps.values().collect { it.wildvalue }
Here is a way to do as you wish with the wild values:
datasourceinstanceProps.each { instance, instanceProperties ->
instanceProperties.each {
it ->
def wildValue = it.wildValue
// Do something with wild value
}
}
Anonymous
9 months agoThis is the right answer. Could someone at LM please put in a DOC ticket to get this published into the support documentation or the dev guide?
- skylaurman7 months ago
Employee
Documentation has been updated to include examples: https://www.logicmonitor.com/support/logicmodules/datasources/data-collection-methods/batchscript-data-collection
- skylaurman9 months ago
Employee
Yes, we will get this added to the support documentation.