in das-20200116/src/Models/DescribeSlowLogHistogramAsyncResponseBody/data/data.php [493:1021]
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->avgCPUTime) {
if (\is_array($this->avgCPUTime)) {
$res['AvgCPUTime'] = [];
$n1 = 0;
foreach ($this->avgCPUTime as $item1) {
$res['AvgCPUTime'][$n1++] = $item1;
}
}
}
if (null !== $this->avgDocExamined) {
if (\is_array($this->avgDocExamined)) {
$res['AvgDocExamined'] = [];
$n1 = 0;
foreach ($this->avgDocExamined as $item1) {
$res['AvgDocExamined'][$n1++] = $item1;
}
}
}
if (null !== $this->avgFrows) {
if (\is_array($this->avgFrows)) {
$res['AvgFrows'] = [];
$n1 = 0;
foreach ($this->avgFrows as $item1) {
$res['AvgFrows'][$n1++] = $item1;
}
}
}
if (null !== $this->avgIOWrites) {
if (\is_array($this->avgIOWrites)) {
$res['AvgIOWrites'] = [];
$n1 = 0;
foreach ($this->avgIOWrites as $item1) {
$res['AvgIOWrites'][$n1++] = $item1;
}
}
}
if (null !== $this->avgKeysExamined) {
if (\is_array($this->avgKeysExamined)) {
$res['AvgKeysExamined'] = [];
$n1 = 0;
foreach ($this->avgKeysExamined as $item1) {
$res['AvgKeysExamined'][$n1++] = $item1;
}
}
}
if (null !== $this->avgLastRowsCountAffected) {
if (\is_array($this->avgLastRowsCountAffected)) {
$res['AvgLastRowsCountAffected'] = [];
$n1 = 0;
foreach ($this->avgLastRowsCountAffected as $item1) {
$res['AvgLastRowsCountAffected'][$n1++] = $item1;
}
}
}
if (null !== $this->avgLockTime) {
if (\is_array($this->avgLockTime)) {
$res['AvgLockTime'] = [];
$n1 = 0;
foreach ($this->avgLockTime as $item1) {
$res['AvgLockTime'][$n1++] = $item1;
}
}
}
if (null !== $this->avgLogicalIOReads) {
if (\is_array($this->avgLogicalIOReads)) {
$res['AvgLogicalIOReads'] = [];
$n1 = 0;
foreach ($this->avgLogicalIOReads as $item1) {
$res['AvgLogicalIOReads'][$n1++] = $item1;
}
}
}
if (null !== $this->avgPhysicalIOReads) {
if (\is_array($this->avgPhysicalIOReads)) {
$res['AvgPhysicalIOReads'] = [];
$n1 = 0;
foreach ($this->avgPhysicalIOReads as $item1) {
$res['AvgPhysicalIOReads'][$n1++] = $item1;
}
}
}
if (null !== $this->avgReturnNum) {
if (\is_array($this->avgReturnNum)) {
$res['AvgReturnNum'] = [];
$n1 = 0;
foreach ($this->avgReturnNum as $item1) {
$res['AvgReturnNum'][$n1++] = $item1;
}
}
}
if (null !== $this->avgRows) {
if (\is_array($this->avgRows)) {
$res['AvgRows'] = [];
$n1 = 0;
foreach ($this->avgRows as $item1) {
$res['AvgRows'][$n1++] = $item1;
}
}
}
if (null !== $this->avgRowsCountAffected) {
if (\is_array($this->avgRowsCountAffected)) {
$res['AvgRowsCountAffected'] = [];
$n1 = 0;
foreach ($this->avgRowsCountAffected as $item1) {
$res['AvgRowsCountAffected'][$n1++] = $item1;
}
}
}
if (null !== $this->avgRowsExamined) {
if (\is_array($this->avgRowsExamined)) {
$res['AvgRowsExamined'] = [];
$n1 = 0;
foreach ($this->avgRowsExamined as $item1) {
$res['AvgRowsExamined'][$n1++] = $item1;
}
}
}
if (null !== $this->avgRowsSent) {
if (\is_array($this->avgRowsSent)) {
$res['AvgRowsSent'] = [];
$n1 = 0;
foreach ($this->avgRowsSent as $item1) {
$res['AvgRowsSent'][$n1++] = $item1;
}
}
}
if (null !== $this->avgRt) {
if (\is_array($this->avgRt)) {
$res['AvgRt'] = [];
$n1 = 0;
foreach ($this->avgRt as $item1) {
$res['AvgRt'][$n1++] = $item1;
}
}
}
if (null !== $this->avgScnt) {
if (\is_array($this->avgScnt)) {
$res['AvgScnt'] = [];
$n1 = 0;
foreach ($this->avgScnt as $item1) {
$res['AvgScnt'][$n1++] = $item1;
}
}
}
if (null !== $this->CPUTime) {
if (\is_array($this->CPUTime)) {
$res['CPUTime'] = [];
$n1 = 0;
foreach ($this->CPUTime as $item1) {
$res['CPUTime'][$n1++] = $item1;
}
}
}
if (null !== $this->count) {
if (\is_array($this->count)) {
$res['Count'] = [];
$n1 = 0;
foreach ($this->count as $item1) {
$res['Count'][$n1++] = $item1;
}
}
}
if (null !== $this->docExamined) {
if (\is_array($this->docExamined)) {
$res['DocExamined'] = [];
$n1 = 0;
foreach ($this->docExamined as $item1) {
$res['DocExamined'][$n1++] = $item1;
}
}
}
if (null !== $this->frows) {
if (\is_array($this->frows)) {
$res['Frows'] = [];
$n1 = 0;
foreach ($this->frows as $item1) {
$res['Frows'][$n1++] = $item1;
}
}
}
if (null !== $this->IOWrites) {
if (\is_array($this->IOWrites)) {
$res['IOWrites'] = [];
$n1 = 0;
foreach ($this->IOWrites as $item1) {
$res['IOWrites'][$n1++] = $item1;
}
}
}
if (null !== $this->item) {
if (\is_array($this->item)) {
$res['Item'] = [];
$n1 = 0;
foreach ($this->item as $item1) {
$res['Item'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->keysExamined) {
if (\is_array($this->keysExamined)) {
$res['KeysExamined'] = [];
$n1 = 0;
foreach ($this->keysExamined as $item1) {
$res['KeysExamined'][$n1++] = $item1;
}
}
}
if (null !== $this->lastRowsCountAffected) {
if (\is_array($this->lastRowsCountAffected)) {
$res['LastRowsCountAffected'] = [];
$n1 = 0;
foreach ($this->lastRowsCountAffected as $item1) {
$res['LastRowsCountAffected'][$n1++] = $item1;
}
}
}
if (null !== $this->lockTime) {
if (\is_array($this->lockTime)) {
$res['LockTime'] = [];
$n1 = 0;
foreach ($this->lockTime as $item1) {
$res['LockTime'][$n1++] = $item1;
}
}
}
if (null !== $this->logicalIOReads) {
if (\is_array($this->logicalIOReads)) {
$res['LogicalIOReads'] = [];
$n1 = 0;
foreach ($this->logicalIOReads as $item1) {
$res['LogicalIOReads'][$n1++] = $item1;
}
}
}
if (null !== $this->maxCPUTime) {
if (\is_array($this->maxCPUTime)) {
$res['MaxCPUTime'] = [];
$n1 = 0;
foreach ($this->maxCPUTime as $item1) {
$res['MaxCPUTime'][$n1++] = $item1;
}
}
}
if (null !== $this->maxDocExamined) {
if (\is_array($this->maxDocExamined)) {
$res['MaxDocExamined'] = [];
$n1 = 0;
foreach ($this->maxDocExamined as $item1) {
$res['MaxDocExamined'][$n1++] = $item1;
}
}
}
if (null !== $this->maxFrows) {
if (\is_array($this->maxFrows)) {
$res['MaxFrows'] = [];
$n1 = 0;
foreach ($this->maxFrows as $item1) {
$res['MaxFrows'][$n1++] = $item1;
}
}
}
if (null !== $this->maxIOWrites) {
if (\is_array($this->maxIOWrites)) {
$res['MaxIOWrites'] = [];
$n1 = 0;
foreach ($this->maxIOWrites as $item1) {
$res['MaxIOWrites'][$n1++] = $item1;
}
}
}
if (null !== $this->maxKeysExamined) {
if (\is_array($this->maxKeysExamined)) {
$res['MaxKeysExamined'] = [];
$n1 = 0;
foreach ($this->maxKeysExamined as $item1) {
$res['MaxKeysExamined'][$n1++] = $item1;
}
}
}
if (null !== $this->maxLastRowsCountAffected) {
if (\is_array($this->maxLastRowsCountAffected)) {
$res['MaxLastRowsCountAffected'] = [];
$n1 = 0;
foreach ($this->maxLastRowsCountAffected as $item1) {
$res['MaxLastRowsCountAffected'][$n1++] = $item1;
}
}
}
if (null !== $this->maxLockTime) {
if (\is_array($this->maxLockTime)) {
$res['MaxLockTime'] = [];
$n1 = 0;
foreach ($this->maxLockTime as $item1) {
$res['MaxLockTime'][$n1++] = $item1;
}
}
}
if (null !== $this->maxLogicalIOReads) {
if (\is_array($this->maxLogicalIOReads)) {
$res['MaxLogicalIOReads'] = [];
$n1 = 0;
foreach ($this->maxLogicalIOReads as $item1) {
$res['MaxLogicalIOReads'][$n1++] = $item1;
}
}
}
if (null !== $this->maxPhysicalIOReads) {
if (\is_array($this->maxPhysicalIOReads)) {
$res['MaxPhysicalIOReads'] = [];
$n1 = 0;
foreach ($this->maxPhysicalIOReads as $item1) {
$res['MaxPhysicalIOReads'][$n1++] = $item1;
}
}
}
if (null !== $this->maxReturnNum) {
if (\is_array($this->maxReturnNum)) {
$res['MaxReturnNum'] = [];
$n1 = 0;
foreach ($this->maxReturnNum as $item1) {
$res['MaxReturnNum'][$n1++] = $item1;
}
}
}
if (null !== $this->maxRows) {
if (\is_array($this->maxRows)) {
$res['MaxRows'] = [];
$n1 = 0;
foreach ($this->maxRows as $item1) {
$res['MaxRows'][$n1++] = $item1;
}
}
}
if (null !== $this->maxRowsCountAffected) {
if (\is_array($this->maxRowsCountAffected)) {
$res['MaxRowsCountAffected'] = [];
$n1 = 0;
foreach ($this->maxRowsCountAffected as $item1) {
$res['MaxRowsCountAffected'][$n1++] = $item1;
}
}
}
if (null !== $this->maxRowsExamined) {
if (\is_array($this->maxRowsExamined)) {
$res['MaxRowsExamined'] = [];
$n1 = 0;
foreach ($this->maxRowsExamined as $item1) {
$res['MaxRowsExamined'][$n1++] = $item1;
}
}
}
if (null !== $this->maxRowsSent) {
if (\is_array($this->maxRowsSent)) {
$res['MaxRowsSent'] = [];
$n1 = 0;
foreach ($this->maxRowsSent as $item1) {
$res['MaxRowsSent'][$n1++] = $item1;
}
}
}
if (null !== $this->maxRt) {
if (\is_array($this->maxRt)) {
$res['MaxRt'] = [];
$n1 = 0;
foreach ($this->maxRt as $item1) {
$res['MaxRt'][$n1++] = $item1;
}
}
}
if (null !== $this->maxScnt) {
if (\is_array($this->maxScnt)) {
$res['MaxScnt'] = [];
$n1 = 0;
foreach ($this->maxScnt as $item1) {
$res['MaxScnt'][$n1++] = $item1;
}
}
}
if (null !== $this->physicalIOReads) {
if (\is_array($this->physicalIOReads)) {
$res['PhysicalIOReads'] = [];
$n1 = 0;
foreach ($this->physicalIOReads as $item1) {
$res['PhysicalIOReads'][$n1++] = $item1;
}
}
}
if (null !== $this->returnNum) {
if (\is_array($this->returnNum)) {
$res['ReturnNum'] = [];
$n1 = 0;
foreach ($this->returnNum as $item1) {
$res['ReturnNum'][$n1++] = $item1;
}
}
}
if (null !== $this->rows) {
if (\is_array($this->rows)) {
$res['Rows'] = [];
$n1 = 0;
foreach ($this->rows as $item1) {
$res['Rows'][$n1++] = $item1;
}
}
}
if (null !== $this->rowsCountAffected) {
if (\is_array($this->rowsCountAffected)) {
$res['RowsCountAffected'] = [];
$n1 = 0;
foreach ($this->rowsCountAffected as $item1) {
$res['RowsCountAffected'][$n1++] = $item1;
}
}
}
if (null !== $this->rowsExamined) {
if (\is_array($this->rowsExamined)) {
$res['RowsExamined'] = [];
$n1 = 0;
foreach ($this->rowsExamined as $item1) {
$res['RowsExamined'][$n1++] = $item1;
}
}
}
if (null !== $this->rowsSent) {
if (\is_array($this->rowsSent)) {
$res['RowsSent'] = [];
$n1 = 0;
foreach ($this->rowsSent as $item1) {
$res['RowsSent'][$n1++] = $item1;
}
}
}
if (null !== $this->rt) {
if (\is_array($this->rt)) {
$res['Rt'] = [];
$n1 = 0;
foreach ($this->rt as $item1) {
$res['Rt'][$n1++] = $item1;
}
}
}
if (null !== $this->scnt) {
if (\is_array($this->scnt)) {
$res['Scnt'] = [];
$n1 = 0;
foreach ($this->scnt as $item1) {
$res['Scnt'][$n1++] = $item1;
}
}
}
if (null !== $this->total) {
$res['Total'] = $this->total;
}
if (null !== $this->ts) {
if (\is_array($this->ts)) {
$res['Ts'] = [];
$n1 = 0;
foreach ($this->ts as $item1) {
$res['Ts'][$n1++] = $item1;
}
}
}
if (null !== $this->tsEnd) {
if (\is_array($this->tsEnd)) {
$res['TsEnd'] = [];
$n1 = 0;
foreach ($this->tsEnd as $item1) {
$res['TsEnd'][$n1++] = $item1;
}
}
}
return $res;
}