/* * 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.Cdb.V20170320.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class SlowLogItem : AbstractModel { /// /// Sql的执行时间。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Timestamp")] public ulong? Timestamp{ get; set; } /// /// Sql的执行时长。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("QueryTime")] public float? QueryTime{ get; set; } /// /// Sql语句。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("SqlText")] public string SqlText{ get; set; } /// /// 客户端地址。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("UserHost")] public string UserHost{ get; set; } /// /// 用户名。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("UserName")] public string UserName{ get; set; } /// /// 数据库名。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Database")] public string Database{ get; set; } /// /// 锁时长。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("LockTime")] public float? LockTime{ get; set; } /// /// 扫描行数。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("RowsExamined")] public long? RowsExamined{ get; set; } /// /// 结果集行数。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("RowsSent")] public long? RowsSent{ get; set; } /// /// Sql模板。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("SqlTemplate")] public string SqlTemplate{ get; set; } /// /// Sql语句的md5。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Md5")] public string Md5{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "Timestamp", this.Timestamp); this.SetParamSimple(map, prefix + "QueryTime", this.QueryTime); this.SetParamSimple(map, prefix + "SqlText", this.SqlText); this.SetParamSimple(map, prefix + "UserHost", this.UserHost); this.SetParamSimple(map, prefix + "UserName", this.UserName); this.SetParamSimple(map, prefix + "Database", this.Database); this.SetParamSimple(map, prefix + "LockTime", this.LockTime); this.SetParamSimple(map, prefix + "RowsExamined", this.RowsExamined); this.SetParamSimple(map, prefix + "RowsSent", this.RowsSent); this.SetParamSimple(map, prefix + "SqlTemplate", this.SqlTemplate); this.SetParamSimple(map, prefix + "Md5", this.Md5); } } }