@ Override public List < CounterSample > getCounterSamples ( String namePattern ) { List < CounterSample > counterSamples = new ArrayList <> ( ) ; for ( Simon simon : manager . getSimons ( SimonPattern . createForCounter ( namePattern ) ) ) { counterSamples . add ( sampleCounter ( simon ) ) ; } return counterSamples ; }
Sample all Counters whose name matches given pattern