public function onCassandraCommand(CassandraEvent $event)
    {
        $data = [
            'keyspace'      => $event->getKeyspace(),
            'command'       => $event->getCommand(),
            'argument'      => $this->getArguments($event),
            'options'       => $this->getOptions($event),
            'executionTime' => $event->getExecutionTime()
        ];

        $this->data['cassandra']->enqueue($data);
    }
public function onCassandraCommand(CassandraEvent $event)
    {
        $data = [
            'keyspace'      => $event->getKeyspace(),
            'command'       => $event->getCommand(),
            'argument'      => $this->getArguments($event),
            'options'       => $this->getOptions($event),
            'executionTime' => $event->getExecutionTime()
        ];

        $this->data['cassandra']->enqueue($data);
    }
public function onCassandraCommand ( CassandraEvent $ event ) { $ data = [ 'keyspace' => $ event -> getKeyspace ( ) , 'command' => $ event -> getCommand ( ) , 'argument' => $ this -> getArguments ( $ event ) , 'options' => $ this -> getOptions ( $ event ) , 'executionTime' => $ event -> getExecutionTime ( ) ] ; $ this -> data [ 'cassandra' ] -> enqueue ( $ data ) ; }
Collect data for casandra command

Listen for cassandra event

@param CassandraEvent $event
Collect data for casandra command