function validateProcessInfo(processInfo) {
  const result = Joi.validate(processInfo, processInfoSchema);
  if (result.error !== null) {
    throw new ValidationError({
      message: JSON.stringify(result.error.details),
    });
  }
}
/**
 * Validates that processInfo confirms with processInfoSchema
 * @param  {Object} processInfo - Process info of collector
 * @throws {ValidationError} If processInfo does not contain valid attributes
 */
Validates that processInfo confirms with processInfoSchema
@param  {Object} processInfo - Process info of collector
@throws {ValidationError} If processInfo does not contain valid attributes
Validates that processInfo confirms with processInfoSchema @param { Object } processInfo - Process info of collector @throws { ValidationError } If processInfo does not contain valid attributes
function validateProcessInfo(processInfo) {
  const result = Joi.validate(processInfo, processInfoSchema);
  if (result.error !== null) {
    throw new ValidationError({
      message: JSON.stringify(result.error.details),
    });
  }
}
function validateProcessInfo ( processInfo ) { const result = Joi . validate ( processInfo , processInfoSchema ) ; if ( result . error !== null ) { throw new ValidationError ( { message : JSON . stringify ( result . error . details ) , } ) ; } }
Validates that processInfo confirms with processInfoSchema
 @param  {Object} processInfo - Process info of collector
 @throws {ValidationError} If processInfo does not contain valid attributes
Validates that processInfo confirms with processInfoSchema @param { Object } processInfo - Process info of collector @throws { ValidationError } If processInfo does not contain valid attributes