125 lines
4.3 KiB
C#
125 lines
4.3 KiB
C#
/*
|
||
* 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
|
||
{
|
||
|
||
/// <summary>
|
||
/// Sql的执行时间。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("Timestamp")]
|
||
public ulong? Timestamp{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Sql的执行时长。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("QueryTime")]
|
||
public float? QueryTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Sql语句。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("SqlText")]
|
||
public string SqlText{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 客户端地址。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("UserHost")]
|
||
public string UserHost{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 用户名。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("UserName")]
|
||
public string UserName{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 数据库名。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("Database")]
|
||
public string Database{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 锁时长。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("LockTime")]
|
||
public float? LockTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 扫描行数。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("RowsExamined")]
|
||
public long? RowsExamined{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 结果集行数。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("RowsSent")]
|
||
public long? RowsSent{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Sql模板。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("SqlTemplate")]
|
||
public string SqlTemplate{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Sql语句的md5。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("Md5")]
|
||
public string Md5{ get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// For internal usage only. DO NOT USE IT.
|
||
/// </summary>
|
||
internal override void ToMap(Dictionary<string, string> 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);
|
||
}
|
||
}
|
||
}
|
||
|