t('Host Name'), 'ip' => t('IP'), 'port' => t('Port') ]; } public function getSearchColumns() { return ['hostname']; } public function createBehaviors(Behaviors $behaviors) { $behaviors->add(new Ip(['ip'])); $behaviors->add(new MillisecondTimestamp([ 'ctime', 'mtime', 'last_scan' ])); } public function createRelations(Relations $relations) { $relations->belongsTo('chain', X509CertificateChain::class) ->setCandidateKey('latest_certificate_chain_id'); } }