public static String toHawkularFormat ( BasicMessage msg ) { return String . format ( "%s=%s" , msg . getClass ( ) . getSimpleName ( ) , msg . toJSON ( ) ) ; }
Returns a string that encodes the given object as a JSON message but then prefixes that JSON with additional information that a Hawkular client will need to be able to deserialize the JSON .