/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace TencentCloud.Dbbrain.V20191016.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class SlowLogTopSqlItem : AbstractModel { /// /// sql总锁等待时间 /// [JsonProperty("LockTime")] public float? LockTime{ get; set; } /// /// 最大锁等待时间 /// [JsonProperty("LockTimeMax")] public float? LockTimeMax{ get; set; } /// /// 最小锁等待时间 /// [JsonProperty("LockTimeMin")] public float? LockTimeMin{ get; set; } /// /// 总扫描行数 /// [JsonProperty("RowsExamined")] public long? RowsExamined{ get; set; } /// /// 最大扫描行数 /// [JsonProperty("RowsExaminedMax")] public long? RowsExaminedMax{ get; set; } /// /// 最小扫描行数 /// [JsonProperty("RowsExaminedMin")] public long? RowsExaminedMin{ get; set; } /// /// 总耗时 /// [JsonProperty("QueryTime")] public float? QueryTime{ get; set; } /// /// 最大执行时间 /// [JsonProperty("QueryTimeMax")] public float? QueryTimeMax{ get; set; } /// /// 最小执行时间 /// [JsonProperty("QueryTimeMin")] public float? QueryTimeMin{ get; set; } /// /// 总返回行数 /// [JsonProperty("RowsSent")] public long? RowsSent{ get; set; } /// /// 最大返回行数 /// [JsonProperty("RowsSentMax")] public long? RowsSentMax{ get; set; } /// /// 最小返回行数 /// [JsonProperty("RowsSentMin")] public long? RowsSentMin{ get; set; } /// /// 执行次数 /// [JsonProperty("ExecTimes")] public long? ExecTimes{ get; set; } /// /// sql模板 /// [JsonProperty("SqlTemplate")] public string SqlTemplate{ get; set; } /// /// 带参数SQL(随机) /// [JsonProperty("SqlText")] public string SqlText{ get; set; } /// /// schema /// [JsonProperty("Schema")] public string Schema{ get; set; } /// /// 总耗时占比 /// [JsonProperty("QueryTimeRatio")] public float? QueryTimeRatio{ get; set; } /// /// sql总锁等待时间占比 /// [JsonProperty("LockTimeRatio")] public float? LockTimeRatio{ get; set; } /// /// 总扫描行数占比 /// [JsonProperty("RowsExaminedRatio")] public float? RowsExaminedRatio{ get; set; } /// /// 总返回行数占比 /// [JsonProperty("RowsSentRatio")] public float? RowsSentRatio{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "LockTime", this.LockTime); this.SetParamSimple(map, prefix + "LockTimeMax", this.LockTimeMax); this.SetParamSimple(map, prefix + "LockTimeMin", this.LockTimeMin); this.SetParamSimple(map, prefix + "RowsExamined", this.RowsExamined); this.SetParamSimple(map, prefix + "RowsExaminedMax", this.RowsExaminedMax); this.SetParamSimple(map, prefix + "RowsExaminedMin", this.RowsExaminedMin); this.SetParamSimple(map, prefix + "QueryTime", this.QueryTime); this.SetParamSimple(map, prefix + "QueryTimeMax", this.QueryTimeMax); this.SetParamSimple(map, prefix + "QueryTimeMin", this.QueryTimeMin); this.SetParamSimple(map, prefix + "RowsSent", this.RowsSent); this.SetParamSimple(map, prefix + "RowsSentMax", this.RowsSentMax); this.SetParamSimple(map, prefix + "RowsSentMin", this.RowsSentMin); this.SetParamSimple(map, prefix + "ExecTimes", this.ExecTimes); this.SetParamSimple(map, prefix + "SqlTemplate", this.SqlTemplate); this.SetParamSimple(map, prefix + "SqlText", this.SqlText); this.SetParamSimple(map, prefix + "Schema", this.Schema); this.SetParamSimple(map, prefix + "QueryTimeRatio", this.QueryTimeRatio); this.SetParamSimple(map, prefix + "LockTimeRatio", this.LockTimeRatio); this.SetParamSimple(map, prefix + "RowsExaminedRatio", this.RowsExaminedRatio); this.SetParamSimple(map, prefix + "RowsSentRatio", this.RowsSentRatio); } } }