首次推送

This commit is contained in:
lym
2026-03-09 00:13:46 +08:00
commit b19613bb31
13974 changed files with 2767735 additions and 0 deletions

View File

@@ -0,0 +1,216 @@
/*
* 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
{
using Newtonsoft.Json;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Dbbrain.V20191016.Models;
public class DbbrainClient : AbstractClient{
private const string endpoint = "dbbrain.tencentcloudapi.com";
private const string version = "2019-10-16";
/// <summary>
/// Client constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
public DbbrainClient(Credential credential, string region)
: this(credential, region, new ClientProfile())
{
}
/// <summary>
/// Client Constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
/// <param name="profile">Client profiles.</param>
public DbbrainClient(Credential credential, string region, ClientProfile profile)
: base(endpoint, version, credential, region, profile)
{
}
/// <summary>
/// 获取实例异常诊断事件的详情信息。
/// </summary>
/// <param name="req"><see cref="DescribeDBDiagEventRequest"/></param>
/// <returns><see cref="DescribeDBDiagEventResponse"/></returns>
public async Task<DescribeDBDiagEventResponse> DescribeDBDiagEvent(DescribeDBDiagEventRequest req)
{
JsonResponseModel<DescribeDBDiagEventResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeDBDiagEvent");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeDBDiagEventResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 获取实例异常诊断事件的详情信息。
/// </summary>
/// <param name="req"><see cref="DescribeDBDiagEventRequest"/></param>
/// <returns><see cref="DescribeDBDiagEventResponse"/></returns>
public DescribeDBDiagEventResponse DescribeDBDiagEventSync(DescribeDBDiagEventRequest req)
{
JsonResponseModel<DescribeDBDiagEventResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeDBDiagEvent");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeDBDiagEventResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 获取实例诊断事件的列表。
/// </summary>
/// <param name="req"><see cref="DescribeDBDiagHistoryRequest"/></param>
/// <returns><see cref="DescribeDBDiagHistoryResponse"/></returns>
public async Task<DescribeDBDiagHistoryResponse> DescribeDBDiagHistory(DescribeDBDiagHistoryRequest req)
{
JsonResponseModel<DescribeDBDiagHistoryResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeDBDiagHistory");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeDBDiagHistoryResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 获取实例诊断事件的列表。
/// </summary>
/// <param name="req"><see cref="DescribeDBDiagHistoryRequest"/></param>
/// <returns><see cref="DescribeDBDiagHistoryResponse"/></returns>
public DescribeDBDiagHistoryResponse DescribeDBDiagHistorySync(DescribeDBDiagHistoryRequest req)
{
JsonResponseModel<DescribeDBDiagHistoryResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeDBDiagHistory");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeDBDiagHistoryResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 获取慢日志统计柱状图
/// </summary>
/// <param name="req"><see cref="DescribeSlowLogTimeSeriesStatsRequest"/></param>
/// <returns><see cref="DescribeSlowLogTimeSeriesStatsResponse"/></returns>
public async Task<DescribeSlowLogTimeSeriesStatsResponse> DescribeSlowLogTimeSeriesStats(DescribeSlowLogTimeSeriesStatsRequest req)
{
JsonResponseModel<DescribeSlowLogTimeSeriesStatsResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeSlowLogTimeSeriesStats");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeSlowLogTimeSeriesStatsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 获取慢日志统计柱状图
/// </summary>
/// <param name="req"><see cref="DescribeSlowLogTimeSeriesStatsRequest"/></param>
/// <returns><see cref="DescribeSlowLogTimeSeriesStatsResponse"/></returns>
public DescribeSlowLogTimeSeriesStatsResponse DescribeSlowLogTimeSeriesStatsSync(DescribeSlowLogTimeSeriesStatsRequest req)
{
JsonResponseModel<DescribeSlowLogTimeSeriesStatsResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeSlowLogTimeSeriesStats");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeSlowLogTimeSeriesStatsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 按照Sql模板+schema的聚合方式统计排序指定时间段内的top慢sql。
/// </summary>
/// <param name="req"><see cref="DescribeSlowLogTopSqlsRequest"/></param>
/// <returns><see cref="DescribeSlowLogTopSqlsResponse"/></returns>
public async Task<DescribeSlowLogTopSqlsResponse> DescribeSlowLogTopSqls(DescribeSlowLogTopSqlsRequest req)
{
JsonResponseModel<DescribeSlowLogTopSqlsResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeSlowLogTopSqls");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeSlowLogTopSqlsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 按照Sql模板+schema的聚合方式统计排序指定时间段内的top慢sql。
/// </summary>
/// <param name="req"><see cref="DescribeSlowLogTopSqlsRequest"/></param>
/// <returns><see cref="DescribeSlowLogTopSqlsResponse"/></returns>
public DescribeSlowLogTopSqlsResponse DescribeSlowLogTopSqlsSync(DescribeSlowLogTopSqlsRequest req)
{
JsonResponseModel<DescribeSlowLogTopSqlsResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeSlowLogTopSqls");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeSlowLogTopSqlsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 DescribeDBDiagEventRequest : AbstractModel
{
/// <summary>
/// 实例 ID 。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 事件 ID 。通过“获取实例诊断历史DescribeDBDiagHistory”获取。
/// </summary>
[JsonProperty("EventId")]
public long? EventId{ 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 + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "EventId", this.EventId);
}
}
}

View File

@@ -0,0 +1,121 @@
/*
* 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 DescribeDBDiagEventResponse : AbstractModel
{
/// <summary>
/// 诊断项。
/// </summary>
[JsonProperty("DiagItem")]
public string DiagItem{ get; set; }
/// <summary>
/// 诊断类型。
/// </summary>
[JsonProperty("DiagType")]
public string DiagType{ get; set; }
/// <summary>
/// 事件 ID 。
/// </summary>
[JsonProperty("EventId")]
public long? EventId{ get; set; }
/// <summary>
/// 事件详情。
/// </summary>
[JsonProperty("Explanation")]
public string Explanation{ get; set; }
/// <summary>
/// 概要。
/// </summary>
[JsonProperty("Outline")]
public string Outline{ get; set; }
/// <summary>
/// 诊断出的问题。
/// </summary>
[JsonProperty("Problem")]
public string Problem{ get; set; }
/// <summary>
/// 严重程度。严重程度分为5级按影响程度从高至低分别为1致命2严重3告警4提示5健康。
/// </summary>
[JsonProperty("Severity")]
public long? Severity{ get; set; }
/// <summary>
/// 开始时间
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 建议。
/// </summary>
[JsonProperty("Suggestions")]
public string Suggestions{ get; set; }
/// <summary>
/// 保留字段。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Metric")]
public string Metric{ get; set; }
/// <summary>
/// 结束时间。
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "DiagItem", this.DiagItem);
this.SetParamSimple(map, prefix + "DiagType", this.DiagType);
this.SetParamSimple(map, prefix + "EventId", this.EventId);
this.SetParamSimple(map, prefix + "Explanation", this.Explanation);
this.SetParamSimple(map, prefix + "Outline", this.Outline);
this.SetParamSimple(map, prefix + "Problem", this.Problem);
this.SetParamSimple(map, prefix + "Severity", this.Severity);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "Suggestions", this.Suggestions);
this.SetParamSimple(map, prefix + "Metric", this.Metric);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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 DescribeDBDiagHistoryRequest : AbstractModel
{
/// <summary>
/// 实例 ID 。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 开始时间。如“2019-09-10 12:13:14”。
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 结束时间。如“2019-09-11 12:13:14”。
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ 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 + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 DescribeDBDiagHistoryResponse : AbstractModel
{
/// <summary>
/// 事件描述。
/// </summary>
[JsonProperty("Events")]
public DiagHistoryEventItem[] Events{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "Events.", this.Events);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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 DescribeSlowLogTimeSeriesStatsRequest : AbstractModel
{
/// <summary>
/// 实例 ID 。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 开始时间。
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 结束时间。
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ 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 + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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 DescribeSlowLogTimeSeriesStatsResponse : AbstractModel
{
/// <summary>
/// 柱间单位时间间隔,单位为秒。
/// </summary>
[JsonProperty("Period")]
public long? Period{ get; set; }
/// <summary>
/// 单位时间间隔内慢日志数量统计。
/// </summary>
[JsonProperty("TimeSeries")]
public TimeSlice[] TimeSeries{ get; set; }
/// <summary>
/// 单位时间间隔内的实例 cpu 利用率监控数据。
/// </summary>
[JsonProperty("SeriesData")]
public MonitorMetricSeriesData SeriesData{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "Period", this.Period);
this.SetParamArrayObj(map, prefix + "TimeSeries.", this.TimeSeries);
this.SetParamObj(map, prefix + "SeriesData.", this.SeriesData);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,85 @@
/*
* 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 DescribeSlowLogTopSqlsRequest : AbstractModel
{
/// <summary>
/// 实例 ID 。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 开始时间。
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 截止时间。
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
/// <summary>
/// 排序键,目前支持 QueryTime,ExecTimes,RowsSent,LockTime以及RowsExamined 等排序键。
/// </summary>
[JsonProperty("SortBy")]
public string SortBy{ get; set; }
/// <summary>
/// 排序方式支持ASC升序以及DESC降序
/// </summary>
[JsonProperty("OrderBy")]
public string OrderBy{ get; set; }
/// <summary>
/// 返回数量默认为20最大值为100。
/// </summary>
[JsonProperty("Limit")]
public long? Limit{ get; set; }
/// <summary>
/// 偏移量默认为0。
/// </summary>
[JsonProperty("Offset")]
public long? Offset{ 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 + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "SortBy", this.SortBy);
this.SetParamSimple(map, prefix + "OrderBy", this.OrderBy);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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 DescribeSlowLogTopSqlsResponse : AbstractModel
{
/// <summary>
/// 符合条件的记录总数。
/// </summary>
[JsonProperty("TotalCount")]
public long? TotalCount{ get; set; }
/// <summary>
/// 慢日志 top sql 列表
/// </summary>
[JsonProperty("Rows")]
public SlowLogTopSqlItem[] Rows{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "TotalCount", this.TotalCount);
this.SetParamArrayObj(map, prefix + "Rows.", this.Rows);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,109 @@
/*
* 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 DiagHistoryEventItem : AbstractModel
{
/// <summary>
/// 诊断类型。
/// </summary>
[JsonProperty("DiagType")]
public string DiagType{ get; set; }
/// <summary>
/// 结束时间。
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
/// <summary>
/// 开始时间。
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 事件 ID 。
/// </summary>
[JsonProperty("EventId")]
public long? EventId{ get; set; }
/// <summary>
/// 严重程度。严重程度分为5级按影响程度从高至低分别为1致命2严重3告警4提示5健康。
/// </summary>
[JsonProperty("Severity")]
public long? Severity{ get; set; }
/// <summary>
/// 概要。
/// </summary>
[JsonProperty("Outline")]
public string Outline{ get; set; }
/// <summary>
/// 诊断项。
/// </summary>
[JsonProperty("DiagItem")]
public string DiagItem{ get; set; }
/// <summary>
/// 实例 ID 。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 保留字段
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Metric")]
public string Metric{ get; set; }
/// <summary>
/// 地域
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Region")]
public string Region{ 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 + "DiagType", this.DiagType);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EventId", this.EventId);
this.SetParamSimple(map, prefix + "Severity", this.Severity);
this.SetParamSimple(map, prefix + "Outline", this.Outline);
this.SetParamSimple(map, prefix + "DiagItem", this.DiagItem);
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "Metric", this.Metric);
this.SetParamSimple(map, prefix + "Region", this.Region);
}
}
}

View File

@@ -0,0 +1,58 @@
/*
* 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 MonitorMetric : AbstractModel
{
/// <summary>
/// 指标名称。
/// </summary>
[JsonProperty("Metric")]
public string Metric{ get; set; }
/// <summary>
/// 指标单位。
/// </summary>
[JsonProperty("Unit")]
public string Unit{ get; set; }
/// <summary>
/// 指标值。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Values")]
public long?[] Values{ 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 + "Metric", this.Metric);
this.SetParamSimple(map, prefix + "Unit", this.Unit);
this.SetParamArraySimple(map, prefix + "Values.", this.Values);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 MonitorMetricSeriesData : AbstractModel
{
/// <summary>
/// 监控指标。
/// </summary>
[JsonProperty("Series")]
public MonitorMetric[] Series{ get; set; }
/// <summary>
/// 监控指标对应的时间戳。
/// </summary>
[JsonProperty("Timestamp")]
public long?[] Timestamp{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "Series.", this.Series);
this.SetParamArraySimple(map, prefix + "Timestamp.", this.Timestamp);
}
}
}

View File

@@ -0,0 +1,176 @@
/*
* 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
{
/// <summary>
/// sql总锁等待时间
/// </summary>
[JsonProperty("LockTime")]
public float? LockTime{ get; set; }
/// <summary>
/// 最大锁等待时间
/// </summary>
[JsonProperty("LockTimeMax")]
public float? LockTimeMax{ get; set; }
/// <summary>
/// 最小锁等待时间
/// </summary>
[JsonProperty("LockTimeMin")]
public float? LockTimeMin{ get; set; }
/// <summary>
/// 总扫描行数
/// </summary>
[JsonProperty("RowsExamined")]
public long? RowsExamined{ get; set; }
/// <summary>
/// 最大扫描行数
/// </summary>
[JsonProperty("RowsExaminedMax")]
public long? RowsExaminedMax{ get; set; }
/// <summary>
/// 最小扫描行数
/// </summary>
[JsonProperty("RowsExaminedMin")]
public long? RowsExaminedMin{ get; set; }
/// <summary>
/// 总耗时
/// </summary>
[JsonProperty("QueryTime")]
public float? QueryTime{ get; set; }
/// <summary>
/// 最大执行时间
/// </summary>
[JsonProperty("QueryTimeMax")]
public float? QueryTimeMax{ get; set; }
/// <summary>
/// 最小执行时间
/// </summary>
[JsonProperty("QueryTimeMin")]
public float? QueryTimeMin{ get; set; }
/// <summary>
/// 总返回行数
/// </summary>
[JsonProperty("RowsSent")]
public long? RowsSent{ get; set; }
/// <summary>
/// 最大返回行数
/// </summary>
[JsonProperty("RowsSentMax")]
public long? RowsSentMax{ get; set; }
/// <summary>
/// 最小返回行数
/// </summary>
[JsonProperty("RowsSentMin")]
public long? RowsSentMin{ get; set; }
/// <summary>
/// 执行次数
/// </summary>
[JsonProperty("ExecTimes")]
public long? ExecTimes{ get; set; }
/// <summary>
/// sql模板
/// </summary>
[JsonProperty("SqlTemplate")]
public string SqlTemplate{ get; set; }
/// <summary>
/// 带参数SQL随机
/// </summary>
[JsonProperty("SqlText")]
public string SqlText{ get; set; }
/// <summary>
/// schema
/// </summary>
[JsonProperty("Schema")]
public string Schema{ get; set; }
/// <summary>
/// 总耗时占比
/// </summary>
[JsonProperty("QueryTimeRatio")]
public float? QueryTimeRatio{ get; set; }
/// <summary>
/// sql总锁等待时间占比
/// </summary>
[JsonProperty("LockTimeRatio")]
public float? LockTimeRatio{ get; set; }
/// <summary>
/// 总扫描行数占比
/// </summary>
[JsonProperty("RowsExaminedRatio")]
public float? RowsExaminedRatio{ get; set; }
/// <summary>
/// 总返回行数占比
/// </summary>
[JsonProperty("RowsSentRatio")]
public float? RowsSentRatio{ 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 + "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);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 TimeSlice : AbstractModel
{
/// <summary>
/// 总数
/// </summary>
[JsonProperty("Count")]
public long? Count{ get; set; }
/// <summary>
/// 统计开始时间
/// </summary>
[JsonProperty("Timestamp")]
public long? Timestamp{ 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 + "Count", this.Count);
this.SetParamSimple(map, prefix + "Timestamp", this.Timestamp);
}
}
}