count = $header['x-log-count']; $this->progress = $header ['x-log-progress']; $this->logs = array (); foreach ( $resp as $data ) { $contents = $data; $time = $data ['__time__']; $source = $data ['__source__']; unset ( $contents ['__time__'] ); unset ( $contents ['__source__'] ); $this->logs [] = new Aliyun_Log_Models_QueriedLog ( $time, $source, $contents ); } } /** * Get log number from the response * * @return integer log number */ public function getCount() { return $this->count; } /** * Check if the get logs query is completed * * @return bool true if this logs query is completed */ public function isCompleted() { return $this->progress == 'Complete'; } /** * Get all logs from the response * * @return array Aliyun_Log_Models_QueriedLog array, all log data */ public function getLogs() { return $this->logs; } }