Hello,
We have an application that is integrated with SCOM. We are using various methods from the management group for getting different data. But as per documentation :
GetMonitoringPerformanceData() and some other similar performance APIs are now obsolete.
I can see that there are various updates now. On this link, we can see the new command mentioned to be used instead of this one.
We were using GetMonitoringPerformanceDataReader() and it did not have any parameters to be passed in this function. The replacement for this would be GetMonitoringPerformanceDataReader(MonitoringPerformanceDataCriteria). So, we need to compulsory pass criteria in it.
Earlier the case was it brought all data and our use case remain the same, so we need to choose a condition that brings all the data.
These were some criteria we thought of:
CounterName LIKE '%'
CounterName IS NOT NULL
CounterName LIKE '%' OR CounterName IS NULL
CounterName is NULL OR CounterName IS NOT NULL
It might be the case that in our environment we don't get certain events or edge case events.
Can you suggest what would be the best criteria which we can use so that our functionality works the same before replacing it with new command?
Thanks
CC: @LeonLaude