public static long count ( nitro_service service , String monitorname ) throws Exception { lbmonitor_metric_binding obj = new lbmonitor_metric_binding ( ) ; obj . set_monitorname ( monitorname ) ; options option = new options ( ) ; option . set_count ( true ) ; lbmonitor_metric_binding response [ ] = ( lbmonitor_metric_binding [ ] ) obj . get_resources ( service , option ) ; if ( response != null ) { return response [ 0 ] . __count ; } return 0 ; }
Use this API to count lbmonitor_metric_binding resources configued on NetScaler .