public static TelemetryData buildJobData ( String queryId , TelemetryField field , long value ) { ObjectNode obj = mapper . createObjectNode ( ) ; obj . put ( TYPE , field . toString ( ) ) ; obj . put ( QUERY_ID , queryId ) ; obj . put ( VALUE , value ) ; return new TelemetryData ( obj , System . currentTimeMillis ( ) ) ; }
Create a simple TelemetryData instance for Job metrics using given parameters