public static DescribeSQLLogRecordsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeSQLLogRecordsResponse describeSQLLogRecordsResponse = new DescribeSQLLogRecordsResponse()
            {
                HttpResponse     = context.HttpResponse,
                RequestId        = context.StringValue("DescribeSQLLogRecords.RequestId"),
                TotalRecordCount = context.IntegerValue("DescribeSQLLogRecords.TotalRecordCount"),
                PageNumber       = context.IntegerValue("DescribeSQLLogRecords.PageNumber"),
                PageRecordCount  = context.IntegerValue("DescribeSQLLogRecords.PageRecordCount")
            };
            List <DescribeSQLLogRecordsResponse.SQLRecord> items = new List <DescribeSQLLogRecordsResponse.SQLRecord>();

            for (int i = 0; i < context.Length("DescribeSQLLogRecords.Items.Length"); i++)
            {
                DescribeSQLLogRecordsResponse.SQLRecord sQlRecord = new DescribeSQLLogRecordsResponse.SQLRecord()
                {
                    DBName              = context.StringValue($"DescribeSQLLogRecords.Items[{i}].DBName"),
                    AccountName         = context.StringValue($"DescribeSQLLogRecords.Items[{i}].AccountName"),
                    HostAddress         = context.StringValue($"DescribeSQLLogRecords.Items[{i}].HostAddress"),
                    SQLText             = context.StringValue($"DescribeSQLLogRecords.Items[{i}].SQLText"),
                    TotalExecutionTimes = context.LongValue($"DescribeSQLLogRecords.Items[{i}].TotalExecutionTimes"),
                    ReturnRowCounts     = context.LongValue($"DescribeSQLLogRecords.Items[{i}].ReturnRowCounts"),
                    ExecuteTime         = context.StringValue($"DescribeSQLLogRecords.Items[{i}].ExecuteTime")
                };
                items.Add(sQlRecord);
            }
            describeSQLLogRecordsResponse.Items = items;

            return(describeSQLLogRecordsResponse);
        }
Example #2
0
        public static DescribeSQLLogRecordsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeSQLLogRecordsResponse describeSQLLogRecordsResponse = new DescribeSQLLogRecordsResponse();

            describeSQLLogRecordsResponse.HttpResponse     = context.HttpResponse;
            describeSQLLogRecordsResponse.RequestId        = context.StringValue("DescribeSQLLogRecords.RequestId");
            describeSQLLogRecordsResponse.TotalRecordCount = context.IntegerValue("DescribeSQLLogRecords.TotalRecordCount");
            describeSQLLogRecordsResponse.PageNumber       = context.IntegerValue("DescribeSQLLogRecords.PageNumber");
            describeSQLLogRecordsResponse.PageRecordCount  = context.IntegerValue("DescribeSQLLogRecords.PageRecordCount");

            List <DescribeSQLLogRecordsResponse.DescribeSQLLogRecords_SQLRecord> describeSQLLogRecordsResponse_items = new List <DescribeSQLLogRecordsResponse.DescribeSQLLogRecords_SQLRecord>();

            for (int i = 0; i < context.Length("DescribeSQLLogRecords.Items.Length"); i++)
            {
                DescribeSQLLogRecordsResponse.DescribeSQLLogRecords_SQLRecord sQLRecord = new DescribeSQLLogRecordsResponse.DescribeSQLLogRecords_SQLRecord();
                sQLRecord.DBName              = context.StringValue("DescribeSQLLogRecords.Items[" + i + "].DBName");
                sQLRecord.AccountName         = context.StringValue("DescribeSQLLogRecords.Items[" + i + "].AccountName");
                sQLRecord.HostAddress         = context.StringValue("DescribeSQLLogRecords.Items[" + i + "].HostAddress");
                sQLRecord.SQLText             = context.StringValue("DescribeSQLLogRecords.Items[" + i + "].SQLText");
                sQLRecord.TotalExecutionTimes = context.LongValue("DescribeSQLLogRecords.Items[" + i + "].TotalExecutionTimes");
                sQLRecord.ReturnRowCounts     = context.LongValue("DescribeSQLLogRecords.Items[" + i + "].ReturnRowCounts");
                sQLRecord.ExecuteTime         = context.StringValue("DescribeSQLLogRecords.Items[" + i + "].ExecuteTime");
                sQLRecord.ThreadID            = context.StringValue("DescribeSQLLogRecords.Items[" + i + "].ThreadID");

                describeSQLLogRecordsResponse_items.Add(sQLRecord);
            }
            describeSQLLogRecordsResponse.Items = describeSQLLogRecordsResponse_items;

            return(describeSQLLogRecordsResponse);
        }
        public static DescribeSQLLogRecordsResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeSQLLogRecordsResponse describeSQLLogRecordsResponse = new DescribeSQLLogRecordsResponse();

            describeSQLLogRecordsResponse.HttpResponse      = _ctx.HttpResponse;
            describeSQLLogRecordsResponse.MaxRecordsPerPage = _ctx.IntegerValue("DescribeSQLLogRecords.MaxRecordsPerPage");
            describeSQLLogRecordsResponse.ItemsNumbers      = _ctx.IntegerValue("DescribeSQLLogRecords.ItemsNumbers");
            describeSQLLogRecordsResponse.RequestId         = _ctx.StringValue("DescribeSQLLogRecords.RequestId");
            describeSQLLogRecordsResponse.EndTime           = _ctx.StringValue("DescribeSQLLogRecords.EndTime");
            describeSQLLogRecordsResponse.DBInstanceID      = _ctx.StringValue("DescribeSQLLogRecords.DBInstanceID");
            describeSQLLogRecordsResponse.StartTime         = _ctx.StringValue("DescribeSQLLogRecords.StartTime");
            describeSQLLogRecordsResponse.TotalRecords      = _ctx.IntegerValue("DescribeSQLLogRecords.TotalRecords");
            describeSQLLogRecordsResponse.Finish            = _ctx.StringValue("DescribeSQLLogRecords.Finish");
            describeSQLLogRecordsResponse.PageNumbers       = _ctx.IntegerValue("DescribeSQLLogRecords.PageNumbers");
            describeSQLLogRecordsResponse.JobId             = _ctx.StringValue("DescribeSQLLogRecords.JobId");
            describeSQLLogRecordsResponse.PagingID          = _ctx.StringValue("DescribeSQLLogRecords.PagingID");
            describeSQLLogRecordsResponse.DBInstanceName    = _ctx.StringValue("DescribeSQLLogRecords.DBInstanceName");

            List <DescribeSQLLogRecordsResponse.DescribeSQLLogRecords_SQLLogRecord> describeSQLLogRecordsResponse_items = new List <DescribeSQLLogRecordsResponse.DescribeSQLLogRecords_SQLLogRecord>();

            for (int i = 0; i < _ctx.Length("DescribeSQLLogRecords.Items.Length"); i++)
            {
                DescribeSQLLogRecordsResponse.DescribeSQLLogRecords_SQLLogRecord sQLLogRecord = new DescribeSQLLogRecordsResponse.DescribeSQLLogRecords_SQLLogRecord();
                sQLLogRecord.ExecuteTime = _ctx.StringValue("DescribeSQLLogRecords.Items[" + i + "].ExecuteTime");
                sQLLogRecord.InsName     = _ctx.StringValue("DescribeSQLLogRecords.Items[" + i + "].InsName");
                sQLLogRecord.HostAddress = _ctx.StringValue("DescribeSQLLogRecords.Items[" + i + "].HostAddress");
                sQLLogRecord.UpdateRows  = _ctx.LongValue("DescribeSQLLogRecords.Items[" + i + "].UpdateRows");
                sQLLogRecord.SQLText     = _ctx.StringValue("DescribeSQLLogRecords.Items[" + i + "].SQLText");
                sQLLogRecord.OriginTime  = _ctx.StringValue("DescribeSQLLogRecords.Items[" + i + "].OriginTime");
                sQLLogRecord.Consume     = _ctx.LongValue("DescribeSQLLogRecords.Items[" + i + "].Consume");
                sQLLogRecord.ScanRows    = _ctx.LongValue("DescribeSQLLogRecords.Items[" + i + "].ScanRows");
                sQLLogRecord.ThreadID    = _ctx.IntegerValue("DescribeSQLLogRecords.Items[" + i + "].ThreadID");
                sQLLogRecord.State       = _ctx.StringValue("DescribeSQLLogRecords.Items[" + i + "].State");
                sQLLogRecord.DBName      = _ctx.StringValue("DescribeSQLLogRecords.Items[" + i + "].DBName");
                sQLLogRecord.SqlType     = _ctx.StringValue("DescribeSQLLogRecords.Items[" + i + "].SqlType");
                sQLLogRecord.Vip         = _ctx.StringValue("DescribeSQLLogRecords.Items[" + i + "].Vip");
                sQLLogRecord.AccountName = _ctx.StringValue("DescribeSQLLogRecords.Items[" + i + "].AccountName");

                describeSQLLogRecordsResponse_items.Add(sQLLogRecord);
            }
            describeSQLLogRecordsResponse.Items = describeSQLLogRecordsResponse_items;

            return(describeSQLLogRecordsResponse);
        }