Update FilterXByY()
and ExcludeXByY()
functions to return the number of excluded items
#373
Labels
enhancement
New feature or request
output/logging
output/perfdata
Service Perf Data (aka, "performance data")
refactor
Milestone
For example, the
vsphere.FilterVMsByPowerState()
function currently accepts a collection ofmo.VirtualMachine
values and a boolean flag indicating whether Virtual Machines in a powered off state should be evaluated. Then, a new collection is returned filtered based on that criteria.check-vmware/cmd/check_vmware_tools/main.go
Lines 196 to 200 in 97bdb15
The function could be updated to return the number of excluded or filtered out items for use in performance data metrics and log messages.
The text was updated successfully, but these errors were encountered: