/**
  * Create an array containing only the available indexer command log property values.
  *
  * @param \Searchperience\Api\Client\Domain\AbstractEntity $commandLog
  * @return array
  */
 protected function buildRequestArray(\Searchperience\Api\Client\Domain\AbstractEntity $commandLog)
 {
     $valueArray = array();
     if (!is_null($commandLog->getCommandName())) {
         $valueArray['commandName'] = $commandLog->getCommandName();
     }
     if (!is_null($commandLog->getProcessId())) {
         $valueArray['processId'] = $commandLog->getProcessId();
     }
     if (!is_null($commandLog->getStatus())) {
         $valueArray['status'] = $commandLog->getStatus();
     }
     if ($commandLog->getStartTime() instanceof \DateTime) {
         $valueArray['startTime'] = $this->dateTimeService->getDateStringFromDateTime($commandLog->getStartTime());
     }
     if (!is_null($commandLog->getDuration())) {
         $valueArray['duration'] = $commandLog->getDuration();
     }
     if (!is_null($commandLog->getLogMessage())) {
         $valueArray['logMessage'] = $commandLog->getLogMessage();
     }
     return $valueArray;
 }