Forum Discussion
botekp
9 months agoNeophyte
Is there any official way of pulling historical data in LM Groovy? LM Support advised me today that com.santaba.agent.groovyapi.api.DataCollectionAPI is not officially supported by Logic Monitor.
- Anonymous9 months ago
You could use collector script caching to remember the previous week’s values. Add the current value to that list, find the max and output it. Given the number of poll cycles in a week, you’d size your list accordingly so when you add a new point if the total size of the list is more than a week, you’d just drop the oldest value.
The collector script cache is the way to do this.
Related Content
- 6 months ago
- 6 months ago
- 10 months ago