/* * 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.Postgres.V20170312.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class NormalQueryItem : AbstractModel { /// /// 用户名 /// [JsonProperty("UserName")] public string UserName{ get; set; } /// /// 调用次数 /// [JsonProperty("Calls")] public long? Calls{ get; set; } /// /// 粒度点 /// [JsonProperty("CallsGrids")] public long?[] CallsGrids{ get; set; } /// /// 花费总时间 /// [JsonProperty("CostTime")] public float? CostTime{ get; set; } /// /// 影响的行数 /// [JsonProperty("Rows")] public long? Rows{ get; set; } /// /// 花费最小时间 /// [JsonProperty("MinCostTime")] public float? MinCostTime{ get; set; } /// /// 花费最大时间 /// [JsonProperty("MaxCostTime")] public float? MaxCostTime{ get; set; } /// /// 最早一条慢SQL时间 /// [JsonProperty("FirstTime")] public string FirstTime{ get; set; } /// /// 最晚一条慢SQL时间 /// [JsonProperty("LastTime")] public string LastTime{ get; set; } /// /// 读共享内存块数 /// [JsonProperty("SharedReadBlks")] public long? SharedReadBlks{ get; set; } /// /// 写共享内存块数 /// [JsonProperty("SharedWriteBlks")] public long? SharedWriteBlks{ get; set; } /// /// 读io总耗时 /// [JsonProperty("ReadCostTime")] public long? ReadCostTime{ get; set; } /// /// 写io总耗时 /// [JsonProperty("WriteCostTime")] public long? WriteCostTime{ get; set; } /// /// 数据库名字 /// [JsonProperty("DatabaseName")] public string DatabaseName{ get; set; } /// /// 脱敏后的慢SQL /// [JsonProperty("NormalQuery")] public string NormalQuery{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "UserName", this.UserName); this.SetParamSimple(map, prefix + "Calls", this.Calls); this.SetParamArraySimple(map, prefix + "CallsGrids.", this.CallsGrids); this.SetParamSimple(map, prefix + "CostTime", this.CostTime); this.SetParamSimple(map, prefix + "Rows", this.Rows); this.SetParamSimple(map, prefix + "MinCostTime", this.MinCostTime); this.SetParamSimple(map, prefix + "MaxCostTime", this.MaxCostTime); this.SetParamSimple(map, prefix + "FirstTime", this.FirstTime); this.SetParamSimple(map, prefix + "LastTime", this.LastTime); this.SetParamSimple(map, prefix + "SharedReadBlks", this.SharedReadBlks); this.SetParamSimple(map, prefix + "SharedWriteBlks", this.SharedWriteBlks); this.SetParamSimple(map, prefix + "ReadCostTime", this.ReadCostTime); this.SetParamSimple(map, prefix + "WriteCostTime", this.WriteCostTime); this.SetParamSimple(map, prefix + "DatabaseName", this.DatabaseName); this.SetParamSimple(map, prefix + "NormalQuery", this.NormalQuery); } } }