public function toArray()

in das-20200116/src/Models/DescribeSlowLogStatisticResponseBody/data/data/logs.php [576:950]


    public function toArray($noStream = false)
    {
        $res = [];
        if (null !== $this->accountName) {
            $res['AccountName'] = $this->accountName;
        }

        if (null !== $this->avgCPUTime) {
            $res['AvgCPUTime'] = $this->avgCPUTime;
        }

        if (null !== $this->avgCPUTimeSeconds) {
            $res['AvgCPUTimeSeconds'] = $this->avgCPUTimeSeconds;
        }

        if (null !== $this->avgDocExamined) {
            $res['AvgDocExamined'] = $this->avgDocExamined;
        }

        if (null !== $this->avgFrows) {
            $res['AvgFrows'] = $this->avgFrows;
        }

        if (null !== $this->avgIOWrites) {
            $res['AvgIOWrites'] = $this->avgIOWrites;
        }

        if (null !== $this->avgKeysExamined) {
            $res['AvgKeysExamined'] = $this->avgKeysExamined;
        }

        if (null !== $this->avgLastRowsCountAffected) {
            $res['AvgLastRowsCountAffected'] = $this->avgLastRowsCountAffected;
        }

        if (null !== $this->avgLockTime) {
            $res['AvgLockTime'] = $this->avgLockTime;
        }

        if (null !== $this->avgLockTimeSeconds) {
            $res['AvgLockTimeSeconds'] = $this->avgLockTimeSeconds;
        }

        if (null !== $this->avgLogicalIOReads) {
            $res['AvgLogicalIOReads'] = $this->avgLogicalIOReads;
        }

        if (null !== $this->avgPhysicalIOReads) {
            $res['AvgPhysicalIOReads'] = $this->avgPhysicalIOReads;
        }

        if (null !== $this->avgQueryTime) {
            $res['AvgQueryTime'] = $this->avgQueryTime;
        }

        if (null !== $this->avgQueryTimeSeconds) {
            $res['AvgQueryTimeSeconds'] = $this->avgQueryTimeSeconds;
        }

        if (null !== $this->avgReturnNum) {
            $res['AvgReturnNum'] = $this->avgReturnNum;
        }

        if (null !== $this->avgRows) {
            $res['AvgRows'] = $this->avgRows;
        }

        if (null !== $this->avgRowsCountAffected) {
            $res['AvgRowsCountAffected'] = $this->avgRowsCountAffected;
        }

        if (null !== $this->avgRowsExamined) {
            $res['AvgRowsExamined'] = $this->avgRowsExamined;
        }

        if (null !== $this->avgRowsSent) {
            $res['AvgRowsSent'] = $this->avgRowsSent;
        }

        if (null !== $this->avgScnt) {
            $res['AvgScnt'] = $this->avgScnt;
        }

        if (null !== $this->CPUTime) {
            $res['CPUTime'] = $this->CPUTime;
        }

        if (null !== $this->CPUTimeSeconds) {
            $res['CPUTimeSeconds'] = $this->CPUTimeSeconds;
        }

        if (null !== $this->command) {
            $res['Command'] = $this->command;
        }

        if (null !== $this->count) {
            $res['Count'] = $this->count;
        }

        if (null !== $this->countRate) {
            $res['CountRate'] = $this->countRate;
        }

        if (null !== $this->DBName) {
            $res['DBName'] = $this->DBName;
        }

        if (null !== $this->database) {
            $res['Database'] = $this->database;
        }

        if (null !== $this->dbInstanceName) {
            $res['DbInstanceName'] = $this->dbInstanceName;
        }

        if (null !== $this->docExamined) {
            $res['DocExamined'] = $this->docExamined;
        }

        if (null !== $this->docsExamined) {
            $res['DocsExamined'] = $this->docsExamined;
        }

        if (null !== $this->frows) {
            $res['Frows'] = $this->frows;
        }

        if (null !== $this->histogram) {
            $res['Histogram'] = null !== $this->histogram ? $this->histogram->toArray($noStream) : $this->histogram;
        }

        if (null !== $this->hostAddress) {
            $res['HostAddress'] = $this->hostAddress;
        }

        if (null !== $this->hostInsId) {
            $res['HostInsId'] = $this->hostInsId;
        }

        if (null !== $this->IOWrites) {
            $res['IOWrites'] = $this->IOWrites;
        }

        if (null !== $this->insName) {
            $res['InsName'] = $this->insName;
        }

        if (null !== $this->insRole) {
            $res['InsRole'] = $this->insRole;
        }

        if (null !== $this->keysExamined) {
            $res['KeysExamined'] = $this->keysExamined;
        }

        if (null !== $this->lastRowsCountAffected) {
            $res['LastRowsCountAffected'] = $this->lastRowsCountAffected;
        }

        if (null !== $this->lockTime) {
            $res['LockTime'] = $this->lockTime;
        }

        if (null !== $this->lockTimeSeconds) {
            $res['LockTimeSeconds'] = $this->lockTimeSeconds;
        }

        if (null !== $this->logicalIOReads) {
            $res['LogicalIOReads'] = $this->logicalIOReads;
        }

        if (null !== $this->maxCPUTime) {
            $res['MaxCPUTime'] = $this->maxCPUTime;
        }

        if (null !== $this->maxCPUTimeSeconds) {
            $res['MaxCPUTimeSeconds'] = $this->maxCPUTimeSeconds;
        }

        if (null !== $this->maxDocExamined) {
            $res['MaxDocExamined'] = $this->maxDocExamined;
        }

        if (null !== $this->maxFrows) {
            $res['MaxFrows'] = $this->maxFrows;
        }

        if (null !== $this->maxIOWrites) {
            $res['MaxIOWrites'] = $this->maxIOWrites;
        }

        if (null !== $this->maxKeysExamined) {
            $res['MaxKeysExamined'] = $this->maxKeysExamined;
        }

        if (null !== $this->maxLastRowsCountAffected) {
            $res['MaxLastRowsCountAffected'] = $this->maxLastRowsCountAffected;
        }

        if (null !== $this->maxLockTime) {
            $res['MaxLockTime'] = $this->maxLockTime;
        }

        if (null !== $this->maxLockTimeSeconds) {
            $res['MaxLockTimeSeconds'] = $this->maxLockTimeSeconds;
        }

        if (null !== $this->maxLogicalIOReads) {
            $res['MaxLogicalIOReads'] = $this->maxLogicalIOReads;
        }

        if (null !== $this->maxPhysicalIOReads) {
            $res['MaxPhysicalIOReads'] = $this->maxPhysicalIOReads;
        }

        if (null !== $this->maxQueryTime) {
            $res['MaxQueryTime'] = $this->maxQueryTime;
        }

        if (null !== $this->maxQueryTimeSeconds) {
            $res['MaxQueryTimeSeconds'] = $this->maxQueryTimeSeconds;
        }

        if (null !== $this->maxReturnNum) {
            $res['MaxReturnNum'] = $this->maxReturnNum;
        }

        if (null !== $this->maxRows) {
            $res['MaxRows'] = $this->maxRows;
        }

        if (null !== $this->maxRowsCountAffected) {
            $res['MaxRowsCountAffected'] = $this->maxRowsCountAffected;
        }

        if (null !== $this->maxRowsExamined) {
            $res['MaxRowsExamined'] = $this->maxRowsExamined;
        }

        if (null !== $this->maxRowsSent) {
            $res['MaxRowsSent'] = $this->maxRowsSent;
        }

        if (null !== $this->maxScnt) {
            $res['MaxScnt'] = $this->maxScnt;
        }

        if (null !== $this->namespace) {
            $res['Namespace'] = $this->namespace;
        }

        if (null !== $this->nodeType) {
            $res['NodeType'] = $this->nodeType;
        }

        if (null !== $this->opType) {
            $res['OpType'] = $this->opType;
        }

        if (null !== $this->originAlias) {
            $res['OriginAlias'] = $this->originAlias;
        }

        if (null !== $this->physicalIOReads) {
            $res['PhysicalIOReads'] = $this->physicalIOReads;
        }

        if (null !== $this->psql) {
            $res['Psql'] = $this->psql;
        }

        if (null !== $this->queryId) {
            $res['QueryId'] = $this->queryId;
        }

        if (null !== $this->queryStartTime) {
            $res['QueryStartTime'] = $this->queryStartTime;
        }

        if (null !== $this->queryTime) {
            $res['QueryTime'] = $this->queryTime;
        }

        if (null !== $this->queryTimeRate) {
            $res['QueryTimeRate'] = $this->queryTimeRate;
        }

        if (null !== $this->queryTimeSeconds) {
            $res['QueryTimeSeconds'] = $this->queryTimeSeconds;
        }

        if (null !== $this->returnItemNumbers) {
            $res['ReturnItemNumbers'] = $this->returnItemNumbers;
        }

        if (null !== $this->returnNum) {
            $res['ReturnNum'] = $this->returnNum;
        }

        if (null !== $this->rows) {
            $res['Rows'] = $this->rows;
        }

        if (null !== $this->rowsCountAffected) {
            $res['RowsCountAffected'] = $this->rowsCountAffected;
        }

        if (null !== $this->rowsExamined) {
            $res['RowsExamined'] = $this->rowsExamined;
        }

        if (null !== $this->rowsSent) {
            $res['RowsSent'] = $this->rowsSent;
        }

        if (null !== $this->ruleId) {
            $res['RuleId'] = $this->ruleId;
        }

        if (null !== $this->SQLText) {
            $res['SQLText'] = $this->SQLText;
        }

        if (null !== $this->scheme) {
            $res['Scheme'] = $this->scheme;
        }

        if (null !== $this->scnt) {
            $res['Scnt'] = $this->scnt;
        }

        if (null !== $this->sqlId) {
            $res['SqlId'] = $this->sqlId;
        }

        if (null !== $this->sqlTag) {
            $res['SqlTag'] = null !== $this->sqlTag ? $this->sqlTag->toArray($noStream) : $this->sqlTag;
        }

        if (null !== $this->sqlType) {
            $res['SqlType'] = $this->sqlType;
        }

        if (null !== $this->subInstanceId) {
            $res['SubInstanceId'] = $this->subInstanceId;
        }

        if (null !== $this->tableName) {
            $res['TableName'] = $this->tableName;
        }

        if (null !== $this->threadId) {
            $res['ThreadId'] = $this->threadId;
        }

        if (null !== $this->timestamp) {
            $res['Timestamp'] = $this->timestamp;
        }

        if (null !== $this->trend) {
            if (\is_array($this->trend)) {
                $res['Trend'] = [];
                $n1 = 0;
                foreach ($this->trend as $item1) {
                    $res['Trend'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
                }
            }
        }

        if (null !== $this->user) {
            $res['User'] = $this->user;
        }

        return $res;
    }