in das-20200116/src/Models/DescribeSlowLogStatisticResponseBody/data/data/logs.php [957:1331]
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AccountName'])) {
$model->accountName = $map['AccountName'];
}
if (isset($map['AvgCPUTime'])) {
$model->avgCPUTime = $map['AvgCPUTime'];
}
if (isset($map['AvgCPUTimeSeconds'])) {
$model->avgCPUTimeSeconds = $map['AvgCPUTimeSeconds'];
}
if (isset($map['AvgDocExamined'])) {
$model->avgDocExamined = $map['AvgDocExamined'];
}
if (isset($map['AvgFrows'])) {
$model->avgFrows = $map['AvgFrows'];
}
if (isset($map['AvgIOWrites'])) {
$model->avgIOWrites = $map['AvgIOWrites'];
}
if (isset($map['AvgKeysExamined'])) {
$model->avgKeysExamined = $map['AvgKeysExamined'];
}
if (isset($map['AvgLastRowsCountAffected'])) {
$model->avgLastRowsCountAffected = $map['AvgLastRowsCountAffected'];
}
if (isset($map['AvgLockTime'])) {
$model->avgLockTime = $map['AvgLockTime'];
}
if (isset($map['AvgLockTimeSeconds'])) {
$model->avgLockTimeSeconds = $map['AvgLockTimeSeconds'];
}
if (isset($map['AvgLogicalIOReads'])) {
$model->avgLogicalIOReads = $map['AvgLogicalIOReads'];
}
if (isset($map['AvgPhysicalIOReads'])) {
$model->avgPhysicalIOReads = $map['AvgPhysicalIOReads'];
}
if (isset($map['AvgQueryTime'])) {
$model->avgQueryTime = $map['AvgQueryTime'];
}
if (isset($map['AvgQueryTimeSeconds'])) {
$model->avgQueryTimeSeconds = $map['AvgQueryTimeSeconds'];
}
if (isset($map['AvgReturnNum'])) {
$model->avgReturnNum = $map['AvgReturnNum'];
}
if (isset($map['AvgRows'])) {
$model->avgRows = $map['AvgRows'];
}
if (isset($map['AvgRowsCountAffected'])) {
$model->avgRowsCountAffected = $map['AvgRowsCountAffected'];
}
if (isset($map['AvgRowsExamined'])) {
$model->avgRowsExamined = $map['AvgRowsExamined'];
}
if (isset($map['AvgRowsSent'])) {
$model->avgRowsSent = $map['AvgRowsSent'];
}
if (isset($map['AvgScnt'])) {
$model->avgScnt = $map['AvgScnt'];
}
if (isset($map['CPUTime'])) {
$model->CPUTime = $map['CPUTime'];
}
if (isset($map['CPUTimeSeconds'])) {
$model->CPUTimeSeconds = $map['CPUTimeSeconds'];
}
if (isset($map['Command'])) {
$model->command = $map['Command'];
}
if (isset($map['Count'])) {
$model->count = $map['Count'];
}
if (isset($map['CountRate'])) {
$model->countRate = $map['CountRate'];
}
if (isset($map['DBName'])) {
$model->DBName = $map['DBName'];
}
if (isset($map['Database'])) {
$model->database = $map['Database'];
}
if (isset($map['DbInstanceName'])) {
$model->dbInstanceName = $map['DbInstanceName'];
}
if (isset($map['DocExamined'])) {
$model->docExamined = $map['DocExamined'];
}
if (isset($map['DocsExamined'])) {
$model->docsExamined = $map['DocsExamined'];
}
if (isset($map['Frows'])) {
$model->frows = $map['Frows'];
}
if (isset($map['Histogram'])) {
$model->histogram = histogram::fromMap($map['Histogram']);
}
if (isset($map['HostAddress'])) {
$model->hostAddress = $map['HostAddress'];
}
if (isset($map['HostInsId'])) {
$model->hostInsId = $map['HostInsId'];
}
if (isset($map['IOWrites'])) {
$model->IOWrites = $map['IOWrites'];
}
if (isset($map['InsName'])) {
$model->insName = $map['InsName'];
}
if (isset($map['InsRole'])) {
$model->insRole = $map['InsRole'];
}
if (isset($map['KeysExamined'])) {
$model->keysExamined = $map['KeysExamined'];
}
if (isset($map['LastRowsCountAffected'])) {
$model->lastRowsCountAffected = $map['LastRowsCountAffected'];
}
if (isset($map['LockTime'])) {
$model->lockTime = $map['LockTime'];
}
if (isset($map['LockTimeSeconds'])) {
$model->lockTimeSeconds = $map['LockTimeSeconds'];
}
if (isset($map['LogicalIOReads'])) {
$model->logicalIOReads = $map['LogicalIOReads'];
}
if (isset($map['MaxCPUTime'])) {
$model->maxCPUTime = $map['MaxCPUTime'];
}
if (isset($map['MaxCPUTimeSeconds'])) {
$model->maxCPUTimeSeconds = $map['MaxCPUTimeSeconds'];
}
if (isset($map['MaxDocExamined'])) {
$model->maxDocExamined = $map['MaxDocExamined'];
}
if (isset($map['MaxFrows'])) {
$model->maxFrows = $map['MaxFrows'];
}
if (isset($map['MaxIOWrites'])) {
$model->maxIOWrites = $map['MaxIOWrites'];
}
if (isset($map['MaxKeysExamined'])) {
$model->maxKeysExamined = $map['MaxKeysExamined'];
}
if (isset($map['MaxLastRowsCountAffected'])) {
$model->maxLastRowsCountAffected = $map['MaxLastRowsCountAffected'];
}
if (isset($map['MaxLockTime'])) {
$model->maxLockTime = $map['MaxLockTime'];
}
if (isset($map['MaxLockTimeSeconds'])) {
$model->maxLockTimeSeconds = $map['MaxLockTimeSeconds'];
}
if (isset($map['MaxLogicalIOReads'])) {
$model->maxLogicalIOReads = $map['MaxLogicalIOReads'];
}
if (isset($map['MaxPhysicalIOReads'])) {
$model->maxPhysicalIOReads = $map['MaxPhysicalIOReads'];
}
if (isset($map['MaxQueryTime'])) {
$model->maxQueryTime = $map['MaxQueryTime'];
}
if (isset($map['MaxQueryTimeSeconds'])) {
$model->maxQueryTimeSeconds = $map['MaxQueryTimeSeconds'];
}
if (isset($map['MaxReturnNum'])) {
$model->maxReturnNum = $map['MaxReturnNum'];
}
if (isset($map['MaxRows'])) {
$model->maxRows = $map['MaxRows'];
}
if (isset($map['MaxRowsCountAffected'])) {
$model->maxRowsCountAffected = $map['MaxRowsCountAffected'];
}
if (isset($map['MaxRowsExamined'])) {
$model->maxRowsExamined = $map['MaxRowsExamined'];
}
if (isset($map['MaxRowsSent'])) {
$model->maxRowsSent = $map['MaxRowsSent'];
}
if (isset($map['MaxScnt'])) {
$model->maxScnt = $map['MaxScnt'];
}
if (isset($map['Namespace'])) {
$model->namespace = $map['Namespace'];
}
if (isset($map['NodeType'])) {
$model->nodeType = $map['NodeType'];
}
if (isset($map['OpType'])) {
$model->opType = $map['OpType'];
}
if (isset($map['OriginAlias'])) {
$model->originAlias = $map['OriginAlias'];
}
if (isset($map['PhysicalIOReads'])) {
$model->physicalIOReads = $map['PhysicalIOReads'];
}
if (isset($map['Psql'])) {
$model->psql = $map['Psql'];
}
if (isset($map['QueryId'])) {
$model->queryId = $map['QueryId'];
}
if (isset($map['QueryStartTime'])) {
$model->queryStartTime = $map['QueryStartTime'];
}
if (isset($map['QueryTime'])) {
$model->queryTime = $map['QueryTime'];
}
if (isset($map['QueryTimeRate'])) {
$model->queryTimeRate = $map['QueryTimeRate'];
}
if (isset($map['QueryTimeSeconds'])) {
$model->queryTimeSeconds = $map['QueryTimeSeconds'];
}
if (isset($map['ReturnItemNumbers'])) {
$model->returnItemNumbers = $map['ReturnItemNumbers'];
}
if (isset($map['ReturnNum'])) {
$model->returnNum = $map['ReturnNum'];
}
if (isset($map['Rows'])) {
$model->rows = $map['Rows'];
}
if (isset($map['RowsCountAffected'])) {
$model->rowsCountAffected = $map['RowsCountAffected'];
}
if (isset($map['RowsExamined'])) {
$model->rowsExamined = $map['RowsExamined'];
}
if (isset($map['RowsSent'])) {
$model->rowsSent = $map['RowsSent'];
}
if (isset($map['RuleId'])) {
$model->ruleId = $map['RuleId'];
}
if (isset($map['SQLText'])) {
$model->SQLText = $map['SQLText'];
}
if (isset($map['Scheme'])) {
$model->scheme = $map['Scheme'];
}
if (isset($map['Scnt'])) {
$model->scnt = $map['Scnt'];
}
if (isset($map['SqlId'])) {
$model->sqlId = $map['SqlId'];
}
if (isset($map['SqlTag'])) {
$model->sqlTag = sqlTag::fromMap($map['SqlTag']);
}
if (isset($map['SqlType'])) {
$model->sqlType = $map['SqlType'];
}
if (isset($map['SubInstanceId'])) {
$model->subInstanceId = $map['SubInstanceId'];
}
if (isset($map['TableName'])) {
$model->tableName = $map['TableName'];
}
if (isset($map['ThreadId'])) {
$model->threadId = $map['ThreadId'];
}
if (isset($map['Timestamp'])) {
$model->timestamp = $map['Timestamp'];
}
if (isset($map['Trend'])) {
if (!empty($map['Trend'])) {
$model->trend = [];
$n1 = 0;
foreach ($map['Trend'] as $item1) {
$model->trend[$n1++] = trend::fromMap($item1);
}
}
}
if (isset($map['User'])) {
$model->user = $map['User'];
}
return $model;
}