public static DescribeSQLLogReportListResponse Unmarshall(UnmarshallerContext context)
{
DescribeSQLLogReportListResponse describeSQLLogReportListResponse = new DescribeSQLLogReportListResponse();
describeSQLLogReportListResponse.HttpResponse = context.HttpResponse;
describeSQLLogReportListResponse.RequestId = context.StringValue("DescribeSQLLogReportList.RequestId");
describeSQLLogReportListResponse.TotalRecordCount = context.IntegerValue("DescribeSQLLogReportList.TotalRecordCount");
describeSQLLogReportListResponse.PageNumber = context.IntegerValue("DescribeSQLLogReportList.PageNumber");
describeSQLLogReportListResponse.PageRecordCount = context.IntegerValue("DescribeSQLLogReportList.PageRecordCount");
List<DescribeSQLLogReportListResponse.Item> items = new List<DescribeSQLLogReportListResponse.Item>();
for (int i = 0; i < context.Length("DescribeSQLLogReportList.Items.Length"); i++) {
DescribeSQLLogReportListResponse.Item item = new DescribeSQLLogReportListResponse.Item();
item.ReportTime = context.StringValue("DescribeSQLLogReportList.Items["+ i +"].ReportTime");
List<DescribeSQLLogReportListResponse.Item.LatencyTopNItem> latencyTopNItems = new List<DescribeSQLLogReportListResponse.Item.LatencyTopNItem>();
for (int j = 0; j < context.Length("DescribeSQLLogReportList.Items["+ i +"].LatencyTopNItems.Length"); j++) {
DescribeSQLLogReportListResponse.Item.LatencyTopNItem latencyTopNItem = new DescribeSQLLogReportListResponse.Item.LatencyTopNItem();
latencyTopNItem.SQLText = context.StringValue("DescribeSQLLogReportList.Items["+ i +"].LatencyTopNItems["+ j +"].SQLText");
latencyTopNItem.AvgLatency = context.LongValue("DescribeSQLLogReportList.Items["+ i +"].LatencyTopNItems["+ j +"].AvgLatency");
latencyTopNItem.SQLExecuteTimes = context.LongValue("DescribeSQLLogReportList.Items["+ i +"].LatencyTopNItems["+ j +"].SQLExecuteTimes");
latencyTopNItems.Add(latencyTopNItem);
}
item.LatencyTopNItems = latencyTopNItems;
List<DescribeSQLLogReportListResponse.Item.QPSTopNItem> qPSTopNItems = new List<DescribeSQLLogReportListResponse.Item.QPSTopNItem>();
for (int j = 0; j < context.Length("DescribeSQLLogReportList.Items["+ i +"].QPSTopNItems.Length"); j++) {
DescribeSQLLogReportListResponse.Item.QPSTopNItem qPSTopNItem = new DescribeSQLLogReportListResponse.Item.QPSTopNItem();
qPSTopNItem.SQLText = context.StringValue("DescribeSQLLogReportList.Items["+ i +"].QPSTopNItems["+ j +"].SQLText");
qPSTopNItem.SQLExecuteTimes = context.LongValue("DescribeSQLLogReportList.Items["+ i +"].QPSTopNItems["+ j +"].SQLExecuteTimes");
qPSTopNItems.Add(qPSTopNItem);
}
item.QPSTopNItems = qPSTopNItems;
items.Add(item);
}
describeSQLLogReportListResponse.Items = items;
return describeSQLLogReportListResponse;
}