public static Id createId ( MonitorConfig config ) { // Need to ensure that Servo type tag is removed to avoid incorrectly reprocessing the // data in later transforms Map < String , String > tags = new HashMap <> ( config . getTags ( ) . asMap ( ) ) ; tags . remove ( "type" ) ; return registry . createId ( config . getName ( ) ) . withTags ( tags ) ; }
Convert servo config to spectator id .