private static MonitorConfig newObjectConfig ( Class < ? > c , String id , TagList tags ) { final MonitorConfig . Builder builder = MonitorConfig . builder ( id ) ; final String className = className ( c ) ; if ( ! className . isEmpty ( ) ) { builder . withTag ( "class" , className ) ; } if ( tags != null ) { builder . withTags ( tags ) ; } return builder . build ( ) ; }
Creates a monitor config for a composite object .