首次推送

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,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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class BindingPolicyObjectDimension : AbstractModel
{
/// <summary>
/// 地域名
/// </summary>
[JsonProperty("Region")]
public string Region{ get; set; }
/// <summary>
/// 地域ID
/// </summary>
[JsonProperty("RegionId")]
public long? RegionId{ get; set; }
/// <summary>
/// 维度信息
/// </summary>
[JsonProperty("Dimensions")]
public string Dimensions{ get; set; }
/// <summary>
/// 事件维度信息
/// </summary>
[JsonProperty("EventDimensions")]
public string EventDimensions{ 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 + "Region", this.Region);
this.SetParamSimple(map, prefix + "RegionId", this.RegionId);
this.SetParamSimple(map, prefix + "Dimensions", this.Dimensions);
this.SetParamSimple(map, prefix + "EventDimensions", this.EventDimensions);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class BindingPolicyObjectRequest : AbstractModel
{
/// <summary>
/// 策略分组Id
/// </summary>
[JsonProperty("GroupId")]
public long? GroupId{ get; set; }
/// <summary>
/// 必填。固定值"monitor"
/// </summary>
[JsonProperty("Module")]
public string Module{ get; set; }
/// <summary>
/// 实例分组ID
/// </summary>
[JsonProperty("InstanceGroupId")]
public long? InstanceGroupId{ get; set; }
/// <summary>
/// 需要绑定的对象维度信息
/// </summary>
[JsonProperty("Dimensions")]
public BindingPolicyObjectDimension[] Dimensions{ 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 + "GroupId", this.GroupId);
this.SetParamSimple(map, prefix + "Module", this.Module);
this.SetParamSimple(map, prefix + "InstanceGroupId", this.InstanceGroupId);
this.SetParamArrayObj(map, prefix + "Dimensions.", this.Dimensions);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class BindingPolicyObjectResponse : AbstractModel
{
/// <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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,92 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreatePolicyGroupCondition : AbstractModel
{
/// <summary>
/// 指标Id
/// </summary>
[JsonProperty("MetricId")]
public long? MetricId{ get; set; }
/// <summary>
/// 告警发送收敛类型。0连续告警1指数告警
/// </summary>
[JsonProperty("AlarmNotifyType")]
public long? AlarmNotifyType{ get; set; }
/// <summary>
/// 告警发送周期单位秒。<0 不触发, 0 只触发一次, >0 每隔triggerTime秒触发一次
/// </summary>
[JsonProperty("AlarmNotifyPeriod")]
public long? AlarmNotifyPeriod{ get; set; }
/// <summary>
/// 比较类型1表示大于2表示大于等于3表示小于4表示小于等于5表示相等6表示不相等。如果指标有配置默认比较类型值可以不填。
/// </summary>
[JsonProperty("CalcType")]
public long? CalcType{ get; set; }
/// <summary>
/// 比较的值如果指标不必须CalcValue可不填
/// </summary>
[JsonProperty("CalcValue")]
public float? CalcValue{ get; set; }
/// <summary>
/// 数据聚合周期(单位秒),若指标有默认值可不填
/// </summary>
[JsonProperty("CalcPeriod")]
public long? CalcPeriod{ get; set; }
/// <summary>
/// 持续几个检测周期触发规则会告警
/// </summary>
[JsonProperty("ContinuePeriod")]
public long? ContinuePeriod{ get; set; }
/// <summary>
/// 如果通过模版创建需要传入模版中该指标的对应RuleId
/// </summary>
[JsonProperty("RuleId")]
public long? RuleId{ 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 + "MetricId", this.MetricId);
this.SetParamSimple(map, prefix + "AlarmNotifyType", this.AlarmNotifyType);
this.SetParamSimple(map, prefix + "AlarmNotifyPeriod", this.AlarmNotifyPeriod);
this.SetParamSimple(map, prefix + "CalcType", this.CalcType);
this.SetParamSimple(map, prefix + "CalcValue", this.CalcValue);
this.SetParamSimple(map, prefix + "CalcPeriod", this.CalcPeriod);
this.SetParamSimple(map, prefix + "ContinuePeriod", this.ContinuePeriod);
this.SetParamSimple(map, prefix + "RuleId", this.RuleId);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreatePolicyGroupEventCondition : AbstractModel
{
/// <summary>
/// 告警事件的Id
/// </summary>
[JsonProperty("EventId")]
public long? EventId{ get; set; }
/// <summary>
/// 告警发送收敛类型。0连续告警1指数告警
/// </summary>
[JsonProperty("AlarmNotifyType")]
public long? AlarmNotifyType{ get; set; }
/// <summary>
/// 告警发送周期单位秒。<0 不触发, 0 只触发一次, >0 每隔triggerTime秒触发一次
/// </summary>
[JsonProperty("AlarmNotifyPeriod")]
public long? AlarmNotifyPeriod{ get; set; }
/// <summary>
/// 如果通过模版创建需要传入模版中该指标的对应RuleId
/// </summary>
[JsonProperty("RuleId")]
public long? RuleId{ 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 + "EventId", this.EventId);
this.SetParamSimple(map, prefix + "AlarmNotifyType", this.AlarmNotifyType);
this.SetParamSimple(map, prefix + "AlarmNotifyPeriod", this.AlarmNotifyPeriod);
this.SetParamSimple(map, prefix + "RuleId", this.RuleId);
}
}
}

View File

@@ -0,0 +1,120 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreatePolicyGroupRequest : AbstractModel
{
/// <summary>
/// 组策略名称
/// </summary>
[JsonProperty("GroupName")]
public string GroupName{ get; set; }
/// <summary>
/// 固定值,为"monitor"
/// </summary>
[JsonProperty("Module")]
public string Module{ get; set; }
/// <summary>
/// 策略组所属视图的名称,若通过模版创建,可不传入
/// </summary>
[JsonProperty("ViewName")]
public string ViewName{ get; set; }
/// <summary>
/// 策略组所属项目Id会进行鉴权操作
/// </summary>
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
/// <summary>
/// 模版策略组Id, 通过模版创建时才需要传
/// </summary>
[JsonProperty("ConditionTempGroupId")]
public long? ConditionTempGroupId{ get; set; }
/// <summary>
/// 是否屏蔽策略组0表示不屏蔽1表示屏蔽。不填默认为0
/// </summary>
[JsonProperty("IsShielded")]
public long? IsShielded{ get; set; }
/// <summary>
/// 策略组的备注信息
/// </summary>
[JsonProperty("Remark")]
public string Remark{ get; set; }
/// <summary>
/// 插入时间戳格式为Unix时间戳不填则按后台处理时间填充
/// </summary>
[JsonProperty("InsertTime")]
public long? InsertTime{ get; set; }
/// <summary>
/// 策略组中的阈值告警规则
/// </summary>
[JsonProperty("Conditions")]
public CreatePolicyGroupCondition[] Conditions{ get; set; }
/// <summary>
/// 策略组中的事件告警规则
/// </summary>
[JsonProperty("EventConditions")]
public CreatePolicyGroupEventCondition[] EventConditions{ get; set; }
/// <summary>
/// 是否为后端调用。当且仅当值为1时后台拉取策略模版中的规则填充入Conditions以及EventConditions字段
/// </summary>
[JsonProperty("BackEndCall")]
public long? BackEndCall{ get; set; }
/// <summary>
/// 指标告警规则的且或关系0表示或规则(满足任意规则就告警)1表示且规则(满足所有规则才告警)
/// </summary>
[JsonProperty("IsUnionRule")]
public long? IsUnionRule{ 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 + "GroupName", this.GroupName);
this.SetParamSimple(map, prefix + "Module", this.Module);
this.SetParamSimple(map, prefix + "ViewName", this.ViewName);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamSimple(map, prefix + "ConditionTempGroupId", this.ConditionTempGroupId);
this.SetParamSimple(map, prefix + "IsShielded", this.IsShielded);
this.SetParamSimple(map, prefix + "Remark", this.Remark);
this.SetParamSimple(map, prefix + "InsertTime", this.InsertTime);
this.SetParamArrayObj(map, prefix + "Conditions.", this.Conditions);
this.SetParamArrayObj(map, prefix + "EventConditions.", this.EventConditions);
this.SetParamSimple(map, prefix + "BackEndCall", this.BackEndCall);
this.SetParamSimple(map, prefix + "IsUnionRule", this.IsUnionRule);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreatePolicyGroupResponse : AbstractModel
{
/// <summary>
/// 创建成功的策略组Id
/// </summary>
[JsonProperty("GroupId")]
public long? GroupId{ 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 + "GroupId", this.GroupId);
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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DataPoint : AbstractModel
{
/// <summary>
/// 实例对象维度组合
/// </summary>
[JsonProperty("Dimensions")]
public Dimension[] Dimensions{ get; set; }
/// <summary>
/// 时间戳数组,表示那些时间点有数据,缺失的时间戳,没有数据点,可以理解为掉点了
/// </summary>
[JsonProperty("Timestamps")]
public float?[] Timestamps{ get; set; }
/// <summary>
/// 监控值数组该数组和Timestamps一一对应
/// </summary>
[JsonProperty("Values")]
public float?[] Values{ 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 + "Dimensions.", this.Dimensions);
this.SetParamArraySimple(map, prefix + "Timestamps.", this.Timestamps);
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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeletePolicyGroupRequest : AbstractModel
{
/// <summary>
/// 固定值,为"monitor"
/// </summary>
[JsonProperty("Module")]
public string Module{ get; set; }
/// <summary>
/// 策略组id
/// </summary>
[JsonProperty("GroupId")]
public long?[] GroupId{ 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 + "Module", this.Module);
this.SetParamArraySimple(map, prefix + "GroupId.", this.GroupId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeletePolicyGroupResponse : AbstractModel
{
/// <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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,100 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeAccidentEventListAlarms : AbstractModel
{
/// <summary>
/// 事件分类
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("BusinessTypeDesc")]
public string BusinessTypeDesc{ get; set; }
/// <summary>
/// 事件类型
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("AccidentTypeDesc")]
public string AccidentTypeDesc{ get; set; }
/// <summary>
/// 事件分类的ID1表示服务问题2表示其他订阅
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("BusinessID")]
public long? BusinessID{ get; set; }
/// <summary>
/// 事件状态的ID0表示已恢复1表示未恢复
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EventStatus")]
public long? EventStatus{ get; set; }
/// <summary>
/// 影响的对象
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("AffectResource")]
public string AffectResource{ get; set; }
/// <summary>
/// 事件的地域
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Region")]
public string Region{ get; set; }
/// <summary>
/// 事件发生的时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("OccurTime")]
public string OccurTime{ get; set; }
/// <summary>
/// 更新时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UpdateTime")]
public string UpdateTime{ 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 + "BusinessTypeDesc", this.BusinessTypeDesc);
this.SetParamSimple(map, prefix + "AccidentTypeDesc", this.AccidentTypeDesc);
this.SetParamSimple(map, prefix + "BusinessID", this.BusinessID);
this.SetParamSimple(map, prefix + "EventStatus", this.EventStatus);
this.SetParamSimple(map, prefix + "AffectResource", this.AffectResource);
this.SetParamSimple(map, prefix + "Region", this.Region);
this.SetParamSimple(map, prefix + "OccurTime", this.OccurTime);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
}
}
}

View File

@@ -0,0 +1,120 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeAccidentEventListRequest : AbstractModel
{
/// <summary>
/// 接口模块名当前接口取值monitor
/// </summary>
[JsonProperty("Module")]
public string Module{ get; set; }
/// <summary>
/// 起始时间,默认一天前的时间戳
/// </summary>
[JsonProperty("StartTime")]
public long? StartTime{ get; set; }
/// <summary>
/// 结束时间,默认当前时间戳
/// </summary>
[JsonProperty("EndTime")]
public long? EndTime{ get; set; }
/// <summary>
/// 分页参数每页返回的数量取值1~100默认20
/// </summary>
[JsonProperty("Limit")]
public long? Limit{ get; set; }
/// <summary>
/// 分页参数页偏移量从0开始计数默认0
/// </summary>
[JsonProperty("Offset")]
public long? Offset{ get; set; }
/// <summary>
/// 根据UpdateTime排序的规则取值asc或desc
/// </summary>
[JsonProperty("UpdateTimeOrder")]
public string UpdateTimeOrder{ get; set; }
/// <summary>
/// 根据OccurTime排序的规则取值asc或desc优先根据UpdateTimeOrder排序
/// </summary>
[JsonProperty("OccurTimeOrder")]
public string OccurTimeOrder{ get; set; }
/// <summary>
/// 根据事件类型过滤1表示服务问题2表示其他订阅
/// </summary>
[JsonProperty("AccidentType")]
public long?[] AccidentType{ get; set; }
/// <summary>
/// 根据事件过滤1表示云服务器存储问题2表示云服务器网络连接问题3表示云服务器运行异常202表示运营商网络抖动
/// </summary>
[JsonProperty("AccidentEvent")]
public long?[] AccidentEvent{ get; set; }
/// <summary>
/// 根据事件状态过滤0表示已恢复1表示未恢复
/// </summary>
[JsonProperty("AccidentStatus")]
public long?[] AccidentStatus{ get; set; }
/// <summary>
/// 根据事件地域过滤gz表示广州sh表示上海等
/// </summary>
[JsonProperty("AccidentRegion")]
public string[] AccidentRegion{ get; set; }
/// <summary>
/// 根据影响资源过滤比如ins-19a06bka
/// </summary>
[JsonProperty("AffectResource")]
public string AffectResource{ 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 + "Module", this.Module);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "UpdateTimeOrder", this.UpdateTimeOrder);
this.SetParamSimple(map, prefix + "OccurTimeOrder", this.OccurTimeOrder);
this.SetParamArraySimple(map, prefix + "AccidentType.", this.AccidentType);
this.SetParamArraySimple(map, prefix + "AccidentEvent.", this.AccidentEvent);
this.SetParamArraySimple(map, prefix + "AccidentStatus.", this.AccidentStatus);
this.SetParamArraySimple(map, prefix + "AccidentRegion.", this.AccidentRegion);
this.SetParamSimple(map, prefix + "AffectResource", this.AffectResource);
}
}
}

View File

@@ -0,0 +1,59 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeAccidentEventListResponse : AbstractModel
{
/// <summary>
/// 平台事件列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Alarms")]
public DescribeAccidentEventListAlarms[] Alarms{ get; set; }
/// <summary>
/// 平台事件的总数
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Total")]
public long? Total{ 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 + "Alarms.", this.Alarms);
this.SetParamSimple(map, prefix + "Total", this.Total);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeBaseMetricsRequest : AbstractModel
{
/// <summary>
/// 业务命名空间,各个云产品的业务命名空间不同。如需获取业务命名空间,请前往各产品监控接口文档,例如云服务器的命名空间,可参见 [云服务器监控接口](https://cloud.tencent.com/document/api/248/30385)
/// </summary>
[JsonProperty("Namespace")]
public string Namespace{ get; set; }
/// <summary>
/// 指标名,各个云产品的指标名不同。如需获取指标名,请前往各产品监控接口文档,例如云服务器的指标名,可参见 [云服务器监控接口](https://cloud.tencent.com/document/api/248/30385)
/// </summary>
[JsonProperty("MetricName")]
public string MetricName{ 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 + "Namespace", this.Namespace);
this.SetParamSimple(map, prefix + "MetricName", this.MetricName);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeBaseMetricsResponse : AbstractModel
{
/// <summary>
/// 查询得到的指标描述列表
/// </summary>
[JsonProperty("MetricSet")]
public MetricSet[] MetricSet{ 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 + "MetricSet.", this.MetricSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,211 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeBasicAlarmListAlarms : AbstractModel
{
/// <summary>
/// 该条告警的ID
/// </summary>
[JsonProperty("Id")]
public ulong? Id{ get; set; }
/// <summary>
/// 项目ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
/// <summary>
/// 项目名称
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ProjectName")]
public string ProjectName{ get; set; }
/// <summary>
/// 告警状态ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Status")]
public long? Status{ get; set; }
/// <summary>
/// 告警状态
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("AlarmStatus")]
public string AlarmStatus{ get; set; }
/// <summary>
/// 策略组ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("GroupId")]
public long? GroupId{ get; set; }
/// <summary>
/// 策略组名
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("GroupName")]
public string GroupName{ get; set; }
/// <summary>
/// 发生时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FirstOccurTime")]
public string FirstOccurTime{ get; set; }
/// <summary>
/// 持续时间单位s
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Duration")]
public long? Duration{ get; set; }
/// <summary>
/// 结束时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("LastOccurTime")]
public string LastOccurTime{ get; set; }
/// <summary>
/// 告警内容
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Content")]
public string Content{ get; set; }
/// <summary>
/// 告警对象
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ObjName")]
public string ObjName{ get; set; }
/// <summary>
/// 告警对象ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ObjId")]
public string ObjId{ get; set; }
/// <summary>
/// 策略类型
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ViewName")]
public string ViewName{ get; set; }
/// <summary>
/// VPC只有CVM有
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Vpc")]
public string Vpc{ get; set; }
/// <summary>
/// 指标ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("MetricId")]
public long? MetricId{ get; set; }
/// <summary>
/// 指标名
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("MetricName")]
public string MetricName{ get; set; }
/// <summary>
/// 告警类型0表示指标告警2表示产品事件告警3表示平台事件告警
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("AlarmType")]
public long? AlarmType{ get; set; }
/// <summary>
/// 地域
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Region")]
public string Region{ get; set; }
/// <summary>
/// 告警对象维度信息
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Dimensions")]
public string Dimensions{ get; set; }
/// <summary>
/// 通知方式
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("NotifyWay")]
public string[] NotifyWay{ get; set; }
/// <summary>
/// 所属实例组信息
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InstanceGroup")]
public InstanceGroup[] InstanceGroup{ 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 + "Id", this.Id);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamSimple(map, prefix + "ProjectName", this.ProjectName);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "AlarmStatus", this.AlarmStatus);
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
this.SetParamSimple(map, prefix + "FirstOccurTime", this.FirstOccurTime);
this.SetParamSimple(map, prefix + "Duration", this.Duration);
this.SetParamSimple(map, prefix + "LastOccurTime", this.LastOccurTime);
this.SetParamSimple(map, prefix + "Content", this.Content);
this.SetParamSimple(map, prefix + "ObjName", this.ObjName);
this.SetParamSimple(map, prefix + "ObjId", this.ObjId);
this.SetParamSimple(map, prefix + "ViewName", this.ViewName);
this.SetParamSimple(map, prefix + "Vpc", this.Vpc);
this.SetParamSimple(map, prefix + "MetricId", this.MetricId);
this.SetParamSimple(map, prefix + "MetricName", this.MetricName);
this.SetParamSimple(map, prefix + "AlarmType", this.AlarmType);
this.SetParamSimple(map, prefix + "Region", this.Region);
this.SetParamSimple(map, prefix + "Dimensions", this.Dimensions);
this.SetParamArraySimple(map, prefix + "NotifyWay.", this.NotifyWay);
this.SetParamArrayObj(map, prefix + "InstanceGroup.", this.InstanceGroup);
}
}
}

View File

@@ -0,0 +1,113 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeBasicAlarmListRequest : AbstractModel
{
/// <summary>
/// 接口模块名当前取值monitor
/// </summary>
[JsonProperty("Module")]
public string Module{ get; set; }
/// <summary>
/// 起始时间,默认一天前的时间戳
/// </summary>
[JsonProperty("StartTime")]
public long? StartTime{ get; set; }
/// <summary>
/// 结束时间,默认当前时间戳
/// </summary>
[JsonProperty("EndTime")]
public long? EndTime{ get; set; }
/// <summary>
/// 分页参数每页返回的数量取值1~100默认20
/// </summary>
[JsonProperty("Limit")]
public long? Limit{ get; set; }
/// <summary>
/// 分页参数页偏移量从0开始计数默认0
/// </summary>
[JsonProperty("Offset")]
public long? Offset{ get; set; }
/// <summary>
/// 根据发生时间排序取值ASC或DESC
/// </summary>
[JsonProperty("OccurTimeOrder")]
public string OccurTimeOrder{ get; set; }
/// <summary>
/// 根据项目ID过滤
/// </summary>
[JsonProperty("ProjectIds")]
public long?[] ProjectIds{ get; set; }
/// <summary>
/// 根据策略类型过滤
/// </summary>
[JsonProperty("ViewNames")]
public string[] ViewNames{ get; set; }
/// <summary>
/// 根据告警状态过滤
/// </summary>
[JsonProperty("AlarmStatus")]
public long?[] AlarmStatus{ get; set; }
/// <summary>
/// 根据告警对象过滤
/// </summary>
[JsonProperty("ObjLike")]
public string ObjLike{ get; set; }
/// <summary>
/// 根据实例组ID过滤
/// </summary>
[JsonProperty("InstanceGroupIds")]
public long?[] InstanceGroupIds{ 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 + "Module", this.Module);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "OccurTimeOrder", this.OccurTimeOrder);
this.SetParamArraySimple(map, prefix + "ProjectIds.", this.ProjectIds);
this.SetParamArraySimple(map, prefix + "ViewNames.", this.ViewNames);
this.SetParamArraySimple(map, prefix + "AlarmStatus.", this.AlarmStatus);
this.SetParamSimple(map, prefix + "ObjLike", this.ObjLike);
this.SetParamArraySimple(map, prefix + "InstanceGroupIds.", this.InstanceGroupIds);
}
}
}

View File

@@ -0,0 +1,59 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeBasicAlarmListResponse : AbstractModel
{
/// <summary>
/// 告警列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Alarms")]
public DescribeBasicAlarmListAlarms[] Alarms{ get; set; }
/// <summary>
/// 总数
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Total")]
public long? Total{ 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 + "Alarms.", this.Alarms);
this.SetParamSimple(map, prefix + "Total", this.Total);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeBindingPolicyObjectListDimension : AbstractModel
{
/// <summary>
/// 地域id
/// </summary>
[JsonProperty("RegionId")]
public long? RegionId{ get; set; }
/// <summary>
/// 地域简称
/// </summary>
[JsonProperty("Region")]
public string Region{ get; set; }
/// <summary>
/// 维度组合json字符串
/// </summary>
[JsonProperty("Dimensions")]
public string Dimensions{ get; set; }
/// <summary>
/// 事件维度组合json字符串
/// </summary>
[JsonProperty("EventDimensions")]
public string EventDimensions{ 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 + "RegionId", this.RegionId);
this.SetParamSimple(map, prefix + "Region", this.Region);
this.SetParamSimple(map, prefix + "Dimensions", this.Dimensions);
this.SetParamSimple(map, prefix + "EventDimensions", this.EventDimensions);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeBindingPolicyObjectListInstance : AbstractModel
{
/// <summary>
/// 对象唯一id
/// </summary>
[JsonProperty("UniqueId")]
public string UniqueId{ get; set; }
/// <summary>
/// 表示对象实例的维度集合jsonObj字符串
/// </summary>
[JsonProperty("Dimensions")]
public string Dimensions{ get; set; }
/// <summary>
/// 对象是否被屏蔽0表示未屏蔽1表示被屏蔽
/// </summary>
[JsonProperty("IsShielded")]
public long? IsShielded{ get; set; }
/// <summary>
/// 对象所在的地域
/// </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 + "UniqueId", this.UniqueId);
this.SetParamSimple(map, prefix + "Dimensions", this.Dimensions);
this.SetParamSimple(map, prefix + "IsShielded", this.IsShielded);
this.SetParamSimple(map, prefix + "Region", this.Region);
}
}
}

View File

@@ -0,0 +1,93 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeBindingPolicyObjectListInstanceGroup : AbstractModel
{
/// <summary>
/// 实例分组id
/// </summary>
[JsonProperty("InstanceGroupId")]
public long? InstanceGroupId{ get; set; }
/// <summary>
/// 告警策略类型名称
/// </summary>
[JsonProperty("ViewName")]
public string ViewName{ get; set; }
/// <summary>
/// 最后编辑uin
/// </summary>
[JsonProperty("LastEditUin")]
public string LastEditUin{ get; set; }
/// <summary>
/// 实例分组名称
/// </summary>
[JsonProperty("GroupName")]
public string GroupName{ get; set; }
/// <summary>
/// 实例数量
/// </summary>
[JsonProperty("InstanceSum")]
public long? InstanceSum{ get; set; }
/// <summary>
/// 更新时间
/// </summary>
[JsonProperty("UpdateTime")]
public long? UpdateTime{ get; set; }
/// <summary>
/// 创建时间
/// </summary>
[JsonProperty("InsertTime")]
public long? InsertTime{ get; set; }
/// <summary>
/// 实例所在的地域集合
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Regions")]
public string[] Regions{ 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 + "InstanceGroupId", this.InstanceGroupId);
this.SetParamSimple(map, prefix + "ViewName", this.ViewName);
this.SetParamSimple(map, prefix + "LastEditUin", this.LastEditUin);
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
this.SetParamSimple(map, prefix + "InstanceSum", this.InstanceSum);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "InsertTime", this.InsertTime);
this.SetParamArraySimple(map, prefix + "Regions.", this.Regions);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeBindingPolicyObjectListRequest : AbstractModel
{
/// <summary>
/// 固定值,为"monitor"
/// </summary>
[JsonProperty("Module")]
public string Module{ get; set; }
/// <summary>
/// 策略组id
/// </summary>
[JsonProperty("GroupId")]
public long? GroupId{ get; set; }
/// <summary>
/// 分页参数每页返回的数量取值1~100默认20
/// </summary>
[JsonProperty("Limit")]
public long? Limit{ get; set; }
/// <summary>
/// 分页参数页偏移量从0开始计数默认0
/// </summary>
[JsonProperty("Offset")]
public long? Offset{ get; set; }
/// <summary>
/// 筛选对象的维度信息
/// </summary>
[JsonProperty("Dimensions")]
public DescribeBindingPolicyObjectListDimension[] Dimensions{ 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 + "Module", this.Module);
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamArrayObj(map, prefix + "Dimensions.", this.Dimensions);
}
}
}

View File

@@ -0,0 +1,73 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeBindingPolicyObjectListResponse : AbstractModel
{
/// <summary>
/// 绑定的对象实例列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("List")]
public DescribeBindingPolicyObjectListInstance[] List{ get; set; }
/// <summary>
/// 绑定的对象实例总数
/// </summary>
[JsonProperty("Total")]
public long? Total{ get; set; }
/// <summary>
/// 未屏蔽的对象实例数
/// </summary>
[JsonProperty("NoShieldedSum")]
public long? NoShieldedSum{ get; set; }
/// <summary>
/// 绑定的实例分组信息,没有绑定实例分组则为空
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InstanceGroup")]
public DescribeBindingPolicyObjectListInstanceGroup InstanceGroup{ 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 + "List.", this.List);
this.SetParamSimple(map, prefix + "Total", this.Total);
this.SetParamSimple(map, prefix + "NoShieldedSum", this.NoShieldedSum);
this.SetParamObj(map, prefix + "InstanceGroup.", this.InstanceGroup);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,95 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyConditionListCondition : AbstractModel
{
/// <summary>
/// 策略视图名称
/// </summary>
[JsonProperty("PolicyViewName")]
public string PolicyViewName{ get; set; }
/// <summary>
/// 事件告警条件
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EventMetrics")]
public DescribePolicyConditionListEventMetric[] EventMetrics{ get; set; }
/// <summary>
/// 是否支持多地域
/// </summary>
[JsonProperty("IsSupportMultiRegion")]
public bool? IsSupportMultiRegion{ get; set; }
/// <summary>
/// 指标告警条件
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Metrics")]
public DescribePolicyConditionListMetric[] Metrics{ get; set; }
/// <summary>
/// 策略类型名称
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 排序id
/// </summary>
[JsonProperty("SortId")]
public long? SortId{ get; set; }
/// <summary>
/// 是否支持默认策略
/// </summary>
[JsonProperty("SupportDefault")]
public bool? SupportDefault{ get; set; }
/// <summary>
/// 支持该策略类型的地域列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SupportRegions")]
public string[] SupportRegions{ 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 + "PolicyViewName", this.PolicyViewName);
this.SetParamArrayObj(map, prefix + "EventMetrics.", this.EventMetrics);
this.SetParamSimple(map, prefix + "IsSupportMultiRegion", this.IsSupportMultiRegion);
this.SetParamArrayObj(map, prefix + "Metrics.", this.Metrics);
this.SetParamSimple(map, prefix + "Name", this.Name);
this.SetParamSimple(map, prefix + "SortId", this.SortId);
this.SetParamSimple(map, prefix + "SupportDefault", this.SupportDefault);
this.SetParamArraySimple(map, prefix + "SupportRegions.", this.SupportRegions);
}
}
}

View File

@@ -0,0 +1,84 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyConditionListConfigManual : AbstractModel
{
/// <summary>
/// 检测方式
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CalcType")]
public DescribePolicyConditionListConfigManualCalcType CalcType{ get; set; }
/// <summary>
/// 检测阈值
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CalcValue")]
public DescribePolicyConditionListConfigManualCalcValue CalcValue{ get; set; }
/// <summary>
/// 持续时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ContinueTime")]
public DescribePolicyConditionListConfigManualContinueTime ContinueTime{ get; set; }
/// <summary>
/// 数据周期
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Period")]
public DescribePolicyConditionListConfigManualPeriod Period{ get; set; }
/// <summary>
/// 持续周期个数
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("PeriodNum")]
public DescribePolicyConditionListConfigManualPeriodNum PeriodNum{ get; set; }
/// <summary>
/// 聚合方式
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("StatType")]
public DescribePolicyConditionListConfigManualStatType StatType{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "CalcType.", this.CalcType);
this.SetParamObj(map, prefix + "CalcValue.", this.CalcValue);
this.SetParamObj(map, prefix + "ContinueTime.", this.ContinueTime);
this.SetParamObj(map, prefix + "Period.", this.Period);
this.SetParamObj(map, prefix + "PeriodNum.", this.PeriodNum);
this.SetParamObj(map, prefix + "StatType.", this.StatType);
}
}
}

View File

@@ -0,0 +1,51 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyConditionListConfigManualCalcType : AbstractModel
{
/// <summary>
/// CalcType 取值
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Keys")]
public long?[] Keys{ get; set; }
/// <summary>
/// 是否必须
/// </summary>
[JsonProperty("Need")]
public bool? Need{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "Keys.", this.Keys);
this.SetParamSimple(map, prefix + "Need", this.Need);
}
}
}

View File

@@ -0,0 +1,75 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyConditionListConfigManualCalcValue : AbstractModel
{
/// <summary>
/// 默认值
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Default")]
public string Default{ get; set; }
/// <summary>
/// 固定值
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Fixed")]
public string Fixed{ get; set; }
/// <summary>
/// 最大值
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Max")]
public string Max{ get; set; }
/// <summary>
/// 最小值
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Min")]
public string Min{ get; set; }
/// <summary>
/// 是否必须
/// </summary>
[JsonProperty("Need")]
public bool? Need{ 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 + "Default", this.Default);
this.SetParamSimple(map, prefix + "Fixed", this.Fixed);
this.SetParamSimple(map, prefix + "Max", this.Max);
this.SetParamSimple(map, prefix + "Min", this.Min);
this.SetParamSimple(map, prefix + "Need", this.Need);
}
}
}

View File

@@ -0,0 +1,59 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyConditionListConfigManualContinueTime : AbstractModel
{
/// <summary>
/// 默认持续时间,单位:秒
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Default")]
public long? Default{ get; set; }
/// <summary>
/// 可选持续时间,单位:秒
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Keys")]
public long?[] Keys{ get; set; }
/// <summary>
/// 是否必须
/// </summary>
[JsonProperty("Need")]
public bool? Need{ 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 + "Default", this.Default);
this.SetParamArraySimple(map, prefix + "Keys.", this.Keys);
this.SetParamSimple(map, prefix + "Need", this.Need);
}
}
}

View File

@@ -0,0 +1,59 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyConditionListConfigManualPeriod : AbstractModel
{
/// <summary>
/// 默认周期,单位:秒
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Default")]
public long? Default{ get; set; }
/// <summary>
/// 可选周期,单位:秒
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Keys")]
public long?[] Keys{ get; set; }
/// <summary>
/// 是否必须
/// </summary>
[JsonProperty("Need")]
public bool? Need{ 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 + "Default", this.Default);
this.SetParamArraySimple(map, prefix + "Keys.", this.Keys);
this.SetParamSimple(map, prefix + "Need", this.Need);
}
}
}

View File

@@ -0,0 +1,59 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyConditionListConfigManualPeriodNum : AbstractModel
{
/// <summary>
/// 默认周期数
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Default")]
public long? Default{ get; set; }
/// <summary>
/// 可选周期数
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Keys")]
public long?[] Keys{ get; set; }
/// <summary>
/// 是否必须
/// </summary>
[JsonProperty("Need")]
public bool? Need{ 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 + "Default", this.Default);
this.SetParamArraySimple(map, prefix + "Keys.", this.Keys);
this.SetParamSimple(map, prefix + "Need", this.Need);
}
}
}

View File

@@ -0,0 +1,100 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyConditionListConfigManualStatType : AbstractModel
{
/// <summary>
/// 数据聚合方式周期5秒
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("P5")]
public string P5{ get; set; }
/// <summary>
/// 数据聚合方式周期10秒
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("P10")]
public string P10{ get; set; }
/// <summary>
/// 数据聚合方式周期1分钟
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("P60")]
public string P60{ get; set; }
/// <summary>
/// 数据聚合方式周期5分钟
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("P300")]
public string P300{ get; set; }
/// <summary>
/// 数据聚合方式周期10分钟
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("P600")]
public string P600{ get; set; }
/// <summary>
/// 数据聚合方式周期30分钟
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("P1800")]
public string P1800{ get; set; }
/// <summary>
/// 数据聚合方式周期1小时
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("P3600")]
public string P3600{ get; set; }
/// <summary>
/// 数据聚合方式周期1天
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("P86400")]
public string P86400{ 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 + "P5", this.P5);
this.SetParamSimple(map, prefix + "P10", this.P10);
this.SetParamSimple(map, prefix + "P60", this.P60);
this.SetParamSimple(map, prefix + "P300", this.P300);
this.SetParamSimple(map, prefix + "P600", this.P600);
this.SetParamSimple(map, prefix + "P1800", this.P1800);
this.SetParamSimple(map, prefix + "P3600", this.P3600);
this.SetParamSimple(map, prefix + "P86400", this.P86400);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyConditionListEventMetric : AbstractModel
{
/// <summary>
/// 事件id
/// </summary>
[JsonProperty("EventId")]
public long? EventId{ get; set; }
/// <summary>
/// 事件名称
/// </summary>
[JsonProperty("EventShowName")]
public string EventShowName{ get; set; }
/// <summary>
/// 是否需要恢复
/// </summary>
[JsonProperty("NeedRecovered")]
public bool? NeedRecovered{ get; set; }
/// <summary>
/// 事件类型预留字段当前固定取值为2
/// </summary>
[JsonProperty("Type")]
public long? Type{ 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 + "EventId", this.EventId);
this.SetParamSimple(map, prefix + "EventShowName", this.EventShowName);
this.SetParamSimple(map, prefix + "NeedRecovered", this.NeedRecovered);
this.SetParamSimple(map, prefix + "Type", this.Type);
}
}
}

View File

@@ -0,0 +1,65 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyConditionListMetric : AbstractModel
{
/// <summary>
/// 指标配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ConfigManual")]
public DescribePolicyConditionListConfigManual ConfigManual{ get; set; }
/// <summary>
/// 指标id
/// </summary>
[JsonProperty("MetricId")]
public long? MetricId{ get; set; }
/// <summary>
/// 指标名称
/// </summary>
[JsonProperty("MetricShowName")]
public string MetricShowName{ get; set; }
/// <summary>
/// 指标单位
/// </summary>
[JsonProperty("MetricUnit")]
public string MetricUnit{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "ConfigManual.", this.ConfigManual);
this.SetParamSimple(map, prefix + "MetricId", this.MetricId);
this.SetParamSimple(map, prefix + "MetricShowName", this.MetricShowName);
this.SetParamSimple(map, prefix + "MetricUnit", this.MetricUnit);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyConditionListRequest : AbstractModel
{
/// <summary>
/// 固定值,为"monitor"
/// </summary>
[JsonProperty("Module")]
public string Module{ 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 + "Module", this.Module);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyConditionListResponse : AbstractModel
{
/// <summary>
/// 告警策略条件列表
/// </summary>
[JsonProperty("Conditions")]
public DescribePolicyConditionListCondition[] Conditions{ 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 + "Conditions.", this.Conditions);
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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyGroupInfoCallback : AbstractModel
{
/// <summary>
/// 用户回调接口地址
/// </summary>
[JsonProperty("CallbackUrl")]
public string CallbackUrl{ get; set; }
/// <summary>
/// 用户回调接口状态0表示未验证1表示已验证2表示存在url但没有通过验证
/// </summary>
[JsonProperty("ValidFlag")]
public long? ValidFlag{ get; set; }
/// <summary>
/// 用户回调接口验证码
/// </summary>
[JsonProperty("VerifyCode")]
public string VerifyCode{ 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 + "CallbackUrl", this.CallbackUrl);
this.SetParamSimple(map, prefix + "ValidFlag", this.ValidFlag);
this.SetParamSimple(map, prefix + "VerifyCode", this.VerifyCode);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyGroupInfoCondition : AbstractModel
{
/// <summary>
/// 指标名称
/// </summary>
[JsonProperty("MetricShowName")]
public string MetricShowName{ get; set; }
/// <summary>
/// 数据聚合周期(单位秒)
/// </summary>
[JsonProperty("Period")]
public long? Period{ get; set; }
/// <summary>
/// 指标id
/// </summary>
[JsonProperty("MetricId")]
public long? MetricId{ get; set; }
/// <summary>
/// 阈值规则id
/// </summary>
[JsonProperty("RuleId")]
public long? RuleId{ get; set; }
/// <summary>
/// 指标单位
/// </summary>
[JsonProperty("Unit")]
public string Unit{ get; set; }
/// <summary>
/// 告警发送收敛类型。0连续告警1指数告警
/// </summary>
[JsonProperty("AlarmNotifyType")]
public long? AlarmNotifyType{ get; set; }
/// <summary>
/// 告警发送周期单位秒。<0 不触发, 0 只触发一次, >0 每隔triggerTime秒触发一次
/// </summary>
[JsonProperty("AlarmNotifyPeriod")]
public long? AlarmNotifyPeriod{ get; set; }
/// <summary>
/// 比较类型1表示大于2表示大于等于3表示小于4表示小于等于5表示相等6表示不相等7表示日同比上涨8表示日同比下降9表示周同比上涨10表示周同比下降11表示周期环比上涨12表示周期环比下降
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CalcType")]
public long? CalcType{ get; set; }
/// <summary>
/// 检测阈值
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CalcValue")]
public string CalcValue{ get; set; }
/// <summary>
/// 持续多长时间触发规则会告警(单位秒)
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ContinueTime")]
public long? ContinueTime{ 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 + "MetricShowName", this.MetricShowName);
this.SetParamSimple(map, prefix + "Period", this.Period);
this.SetParamSimple(map, prefix + "MetricId", this.MetricId);
this.SetParamSimple(map, prefix + "RuleId", this.RuleId);
this.SetParamSimple(map, prefix + "Unit", this.Unit);
this.SetParamSimple(map, prefix + "AlarmNotifyType", this.AlarmNotifyType);
this.SetParamSimple(map, prefix + "AlarmNotifyPeriod", this.AlarmNotifyPeriod);
this.SetParamSimple(map, prefix + "CalcType", this.CalcType);
this.SetParamSimple(map, prefix + "CalcValue", this.CalcValue);
this.SetParamSimple(map, prefix + "ContinueTime", this.ContinueTime);
}
}
}

View File

@@ -0,0 +1,95 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyGroupInfoConditionTpl : AbstractModel
{
/// <summary>
/// 策略组id
/// </summary>
[JsonProperty("GroupId")]
public long? GroupId{ get; set; }
/// <summary>
/// 策略组名称
/// </summary>
[JsonProperty("GroupName")]
public string GroupName{ get; set; }
/// <summary>
/// 策略类型
/// </summary>
[JsonProperty("ViewName")]
public string ViewName{ get; set; }
/// <summary>
/// 策略组说明
/// </summary>
[JsonProperty("Remark")]
public string Remark{ get; set; }
/// <summary>
/// 最后编辑的用户uin
/// </summary>
[JsonProperty("LastEditUin")]
public string LastEditUin{ get; set; }
/// <summary>
/// 更新时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UpdateTime")]
public long? UpdateTime{ get; set; }
/// <summary>
/// 创建时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InsertTime")]
public long? InsertTime{ get; set; }
/// <summary>
/// 是否且规则
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("IsUnionRule")]
public long? IsUnionRule{ 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 + "GroupId", this.GroupId);
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
this.SetParamSimple(map, prefix + "ViewName", this.ViewName);
this.SetParamSimple(map, prefix + "Remark", this.Remark);
this.SetParamSimple(map, prefix + "LastEditUin", this.LastEditUin);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "InsertTime", this.InsertTime);
this.SetParamSimple(map, prefix + "IsUnionRule", this.IsUnionRule);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyGroupInfoEventCondition : AbstractModel
{
/// <summary>
/// 事件id
/// </summary>
[JsonProperty("EventId")]
public long? EventId{ get; set; }
/// <summary>
/// 事件告警规则id
/// </summary>
[JsonProperty("RuleId")]
public long? RuleId{ get; set; }
/// <summary>
/// 事件名称
/// </summary>
[JsonProperty("EventShowName")]
public string EventShowName{ get; set; }
/// <summary>
/// 告警发送周期单位秒。<0 不触发, 0 只触发一次, >0 每隔triggerTime秒触发一次
/// </summary>
[JsonProperty("AlarmNotifyPeriod")]
public long? AlarmNotifyPeriod{ get; set; }
/// <summary>
/// 告警发送收敛类型。0连续告警1指数告警
/// </summary>
[JsonProperty("AlarmNotifyType")]
public long? AlarmNotifyType{ 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 + "EventId", this.EventId);
this.SetParamSimple(map, prefix + "RuleId", this.RuleId);
this.SetParamSimple(map, prefix + "EventShowName", this.EventShowName);
this.SetParamSimple(map, prefix + "AlarmNotifyPeriod", this.AlarmNotifyPeriod);
this.SetParamSimple(map, prefix + "AlarmNotifyType", this.AlarmNotifyType);
}
}
}

View File

@@ -0,0 +1,136 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyGroupInfoReceiverInfo : AbstractModel
{
/// <summary>
/// 告警接收组id列表
/// </summary>
[JsonProperty("ReceiverGroupList")]
public long?[] ReceiverGroupList{ get; set; }
/// <summary>
/// 告警接收人id列表
/// </summary>
[JsonProperty("ReceiverUserList")]
public long?[] ReceiverUserList{ get; set; }
/// <summary>
/// 告警时间段开始时间。范围[0,86400)作为unix时间戳转成北京时间后去掉日期例如7200表示"10:0:0"
/// </summary>
[JsonProperty("StartTime")]
public long? StartTime{ get; set; }
/// <summary>
/// 告警时间段结束时间。含义同StartTime
/// </summary>
[JsonProperty("EndTime")]
public long? EndTime{ get; set; }
/// <summary>
/// 接收类型。“group”(接收组)或“user”(接收人)
/// </summary>
[JsonProperty("ReceiverType")]
public string ReceiverType{ get; set; }
/// <summary>
/// 告警通知方式。可选 "SMS","SITE","EMAIL","CALL","WECHAT"
/// </summary>
[JsonProperty("NotifyWay")]
public string[] NotifyWay{ get; set; }
/// <summary>
/// 电话告警接收者uid
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UidList")]
public long?[] UidList{ get; set; }
/// <summary>
/// 电话告警轮数
/// </summary>
[JsonProperty("RoundNumber")]
public long? RoundNumber{ get; set; }
/// <summary>
/// 电话告警每轮间隔(秒)
/// </summary>
[JsonProperty("RoundInterval")]
public long? RoundInterval{ get; set; }
/// <summary>
/// 电话告警对个人间隔(秒)
/// </summary>
[JsonProperty("PersonInterval")]
public long? PersonInterval{ get; set; }
/// <summary>
/// 是否需要电话告警触达提示。0不需要1需要
/// </summary>
[JsonProperty("NeedSendNotice")]
public long? NeedSendNotice{ get; set; }
/// <summary>
/// 电话告警通知时机。可选"OCCUR"(告警时通知),"RECOVER"(恢复时通知)
/// </summary>
[JsonProperty("SendFor")]
public string[] SendFor{ get; set; }
/// <summary>
/// 恢复通知方式。可选"SMS"
/// </summary>
[JsonProperty("RecoverNotify")]
public string[] RecoverNotify{ get; set; }
/// <summary>
/// 告警发送语言
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ReceiveLanguage")]
public string ReceiveLanguage{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "ReceiverGroupList.", this.ReceiverGroupList);
this.SetParamArraySimple(map, prefix + "ReceiverUserList.", this.ReceiverUserList);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "ReceiverType", this.ReceiverType);
this.SetParamArraySimple(map, prefix + "NotifyWay.", this.NotifyWay);
this.SetParamArraySimple(map, prefix + "UidList.", this.UidList);
this.SetParamSimple(map, prefix + "RoundNumber", this.RoundNumber);
this.SetParamSimple(map, prefix + "RoundInterval", this.RoundInterval);
this.SetParamSimple(map, prefix + "PersonInterval", this.PersonInterval);
this.SetParamSimple(map, prefix + "NeedSendNotice", this.NeedSendNotice);
this.SetParamArraySimple(map, prefix + "SendFor.", this.SendFor);
this.SetParamArraySimple(map, prefix + "RecoverNotify.", this.RecoverNotify);
this.SetParamSimple(map, prefix + "ReceiveLanguage", this.ReceiveLanguage);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyGroupInfoRequest : AbstractModel
{
/// <summary>
/// 固定值,为"monitor"
/// </summary>
[JsonProperty("Module")]
public string Module{ get; set; }
/// <summary>
/// 策略组id
/// </summary>
[JsonProperty("GroupId")]
public long? GroupId{ 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 + "Module", this.Module);
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
}
}
}

View File

@@ -0,0 +1,168 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyGroupInfoResponse : AbstractModel
{
/// <summary>
/// 策略组名称
/// </summary>
[JsonProperty("GroupName")]
public string GroupName{ get; set; }
/// <summary>
/// 策略组所属的项目id
/// </summary>
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
/// <summary>
/// 是否为默认策略0表示非默认策略1表示默认策略
/// </summary>
[JsonProperty("IsDefault")]
public long? IsDefault{ get; set; }
/// <summary>
/// 策略类型
/// </summary>
[JsonProperty("ViewName")]
public string ViewName{ get; set; }
/// <summary>
/// 策略说明
/// </summary>
[JsonProperty("Remark")]
public string Remark{ get; set; }
/// <summary>
/// 策略类型名称
/// </summary>
[JsonProperty("ShowName")]
public string ShowName{ get; set; }
/// <summary>
/// 最近编辑的用户uin
/// </summary>
[JsonProperty("LastEditUin")]
public string LastEditUin{ get; set; }
/// <summary>
/// 最近编辑时间
/// </summary>
[JsonProperty("UpdateTime")]
public string UpdateTime{ get; set; }
/// <summary>
/// 该策略支持的地域
/// </summary>
[JsonProperty("Region")]
public string[] Region{ get; set; }
/// <summary>
/// 策略类型的维度列表
/// </summary>
[JsonProperty("DimensionGroup")]
public string[] DimensionGroup{ get; set; }
/// <summary>
/// 阈值规则列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ConditionsConfig")]
public DescribePolicyGroupInfoCondition[] ConditionsConfig{ get; set; }
/// <summary>
/// 产品事件规则列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EventConfig")]
public DescribePolicyGroupInfoEventCondition[] EventConfig{ get; set; }
/// <summary>
/// 用户接收人列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ReceiverInfos")]
public DescribePolicyGroupInfoReceiverInfo[] ReceiverInfos{ get; set; }
/// <summary>
/// 用户回调信息
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Callback")]
public DescribePolicyGroupInfoCallback Callback{ get; set; }
/// <summary>
/// 模板策略组
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ConditionsTemp")]
public DescribePolicyGroupInfoConditionTpl ConditionsTemp{ get; set; }
/// <summary>
/// 是否可以设置成默认策略
/// </summary>
[JsonProperty("CanSetDefault")]
public bool? CanSetDefault{ get; set; }
/// <summary>
/// 是否且规则
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("IsUnionRule")]
public long? IsUnionRule{ 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 + "GroupName", this.GroupName);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamSimple(map, prefix + "IsDefault", this.IsDefault);
this.SetParamSimple(map, prefix + "ViewName", this.ViewName);
this.SetParamSimple(map, prefix + "Remark", this.Remark);
this.SetParamSimple(map, prefix + "ShowName", this.ShowName);
this.SetParamSimple(map, prefix + "LastEditUin", this.LastEditUin);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamArraySimple(map, prefix + "Region.", this.Region);
this.SetParamArraySimple(map, prefix + "DimensionGroup.", this.DimensionGroup);
this.SetParamArrayObj(map, prefix + "ConditionsConfig.", this.ConditionsConfig);
this.SetParamArrayObj(map, prefix + "EventConfig.", this.EventConfig);
this.SetParamArrayObj(map, prefix + "ReceiverInfos.", this.ReceiverInfos);
this.SetParamObj(map, prefix + "Callback.", this.Callback);
this.SetParamObj(map, prefix + "ConditionsTemp.", this.ConditionsTemp);
this.SetParamSimple(map, prefix + "CanSetDefault", this.CanSetDefault);
this.SetParamSimple(map, prefix + "IsUnionRule", this.IsUnionRule);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,182 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyGroupListGroup : AbstractModel
{
/// <summary>
/// 策略组id
/// </summary>
[JsonProperty("GroupId")]
public long? GroupId{ get; set; }
/// <summary>
/// 策略组名称
/// </summary>
[JsonProperty("GroupName")]
public string GroupName{ get; set; }
/// <summary>
/// 是否开启
/// </summary>
[JsonProperty("IsOpen")]
public bool? IsOpen{ get; set; }
/// <summary>
/// 策略视图名称
/// </summary>
[JsonProperty("ViewName")]
public string ViewName{ get; set; }
/// <summary>
/// 最近编辑的用户uin
/// </summary>
[JsonProperty("LastEditUin")]
public string LastEditUin{ get; set; }
/// <summary>
/// 最后修改时间
/// </summary>
[JsonProperty("UpdateTime")]
public long? UpdateTime{ get; set; }
/// <summary>
/// 创建时间
/// </summary>
[JsonProperty("InsertTime")]
public long? InsertTime{ get; set; }
/// <summary>
/// 策略组绑定的实例数
/// </summary>
[JsonProperty("UseSum")]
public long? UseSum{ get; set; }
/// <summary>
/// 策略组绑定的未屏蔽实例数
/// </summary>
[JsonProperty("NoShieldedSum")]
public long? NoShieldedSum{ get; set; }
/// <summary>
/// 是否为默认策略0表示非默认策略1表示默认策略
/// </summary>
[JsonProperty("IsDefault")]
public long? IsDefault{ get; set; }
/// <summary>
/// 是否可以设置成默认策略
/// </summary>
[JsonProperty("CanSetDefault")]
public bool? CanSetDefault{ get; set; }
/// <summary>
/// 父策略组id
/// </summary>
[JsonProperty("ParentGroupId")]
public long? ParentGroupId{ get; set; }
/// <summary>
/// 策略组备注
/// </summary>
[JsonProperty("Remark")]
public string Remark{ get; set; }
/// <summary>
/// 策略组所属项目id
/// </summary>
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
/// <summary>
/// 阈值规则列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Conditions")]
public DescribePolicyGroupInfoCondition[] Conditions{ get; set; }
/// <summary>
/// 产品事件规则列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EventConditions")]
public DescribePolicyGroupInfoEventCondition[] EventConditions{ get; set; }
/// <summary>
/// 用户接收人列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ReceiverInfos")]
public DescribePolicyGroupInfoReceiverInfo[] ReceiverInfos{ get; set; }
/// <summary>
/// 模板策略组
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ConditionsTemp")]
public DescribePolicyGroupInfoConditionTpl ConditionsTemp{ get; set; }
/// <summary>
/// 策略组绑定的实例组信息
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InstanceGroup")]
public DescribePolicyGroupListGroupInstanceGroup InstanceGroup{ get; set; }
/// <summary>
/// 且或规则标识, 0表示或规则(任意一条规则满足阈值条件就告警), 1表示且规则(所有规则都满足阈值条件才告警)
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("IsUnionRule")]
public long? IsUnionRule{ 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 + "GroupId", this.GroupId);
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
this.SetParamSimple(map, prefix + "IsOpen", this.IsOpen);
this.SetParamSimple(map, prefix + "ViewName", this.ViewName);
this.SetParamSimple(map, prefix + "LastEditUin", this.LastEditUin);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "InsertTime", this.InsertTime);
this.SetParamSimple(map, prefix + "UseSum", this.UseSum);
this.SetParamSimple(map, prefix + "NoShieldedSum", this.NoShieldedSum);
this.SetParamSimple(map, prefix + "IsDefault", this.IsDefault);
this.SetParamSimple(map, prefix + "CanSetDefault", this.CanSetDefault);
this.SetParamSimple(map, prefix + "ParentGroupId", this.ParentGroupId);
this.SetParamSimple(map, prefix + "Remark", this.Remark);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamArrayObj(map, prefix + "Conditions.", this.Conditions);
this.SetParamArrayObj(map, prefix + "EventConditions.", this.EventConditions);
this.SetParamArrayObj(map, prefix + "ReceiverInfos.", this.ReceiverInfos);
this.SetParamObj(map, prefix + "ConditionsTemp.", this.ConditionsTemp);
this.SetParamObj(map, prefix + "InstanceGroup.", this.InstanceGroup);
this.SetParamSimple(map, prefix + "IsUnionRule", this.IsUnionRule);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyGroupListGroupInstanceGroup : AbstractModel
{
/// <summary>
/// 实例分组名称id
/// </summary>
[JsonProperty("InstanceGroupId")]
public long? InstanceGroupId{ get; set; }
/// <summary>
/// 策略类型视图名称
/// </summary>
[JsonProperty("ViewName")]
public string ViewName{ get; set; }
/// <summary>
/// 最近编辑的用户uin
/// </summary>
[JsonProperty("LastEditUin")]
public string LastEditUin{ get; set; }
/// <summary>
/// 实例分组名称
/// </summary>
[JsonProperty("GroupName")]
public string GroupName{ get; set; }
/// <summary>
/// 实例数量
/// </summary>
[JsonProperty("InstanceSum")]
public long? InstanceSum{ get; set; }
/// <summary>
/// 更新时间
/// </summary>
[JsonProperty("UpdateTime")]
public long? UpdateTime{ get; set; }
/// <summary>
/// 创建时间
/// </summary>
[JsonProperty("InsertTime")]
public long? InsertTime{ 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 + "InstanceGroupId", this.InstanceGroupId);
this.SetParamSimple(map, prefix + "ViewName", this.ViewName);
this.SetParamSimple(map, prefix + "LastEditUin", this.LastEditUin);
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
this.SetParamSimple(map, prefix + "InstanceSum", this.InstanceSum);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "InsertTime", this.InsertTime);
}
}
}

View File

@@ -0,0 +1,134 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyGroupListRequest : AbstractModel
{
/// <summary>
/// 固定值,为"monitor"
/// </summary>
[JsonProperty("Module")]
public string Module{ get; set; }
/// <summary>
/// 分页参数每页返回的数量取值1~100
/// </summary>
[JsonProperty("Limit")]
public long? Limit{ get; set; }
/// <summary>
/// 分页参数页偏移量从0开始计数
/// </summary>
[JsonProperty("Offset")]
public long? Offset{ get; set; }
/// <summary>
/// 按策略名搜索
/// </summary>
[JsonProperty("Like")]
public string Like{ get; set; }
/// <summary>
/// 实例分组id
/// </summary>
[JsonProperty("InstanceGroupId")]
public long? InstanceGroupId{ get; set; }
/// <summary>
/// 按更新时间排序, asc 或者 desc
/// </summary>
[JsonProperty("UpdateTimeOrder")]
public string UpdateTimeOrder{ get; set; }
/// <summary>
/// 项目id列表
/// </summary>
[JsonProperty("ProjectIds")]
public long?[] ProjectIds{ get; set; }
/// <summary>
/// 告警策略类型列表
/// </summary>
[JsonProperty("ViewNames")]
public string[] ViewNames{ get; set; }
/// <summary>
/// 是否过滤无接收人策略组, 1表示过滤, 0表示不过滤
/// </summary>
[JsonProperty("FilterUnuseReceiver")]
public long? FilterUnuseReceiver{ get; set; }
/// <summary>
/// 过滤条件, 接收组列表
/// </summary>
[JsonProperty("Receivers")]
public string[] Receivers{ get; set; }
/// <summary>
/// 过滤条件, 接收人列表
/// </summary>
[JsonProperty("ReceiverUserList")]
public string[] ReceiverUserList{ get; set; }
/// <summary>
/// 维度组合字段(json字符串), 例如[[{"name":"unInstanceId","value":"ins-6e4b2aaa"}]]
/// </summary>
[JsonProperty("Dimensions")]
public string Dimensions{ get; set; }
/// <summary>
/// 模板策略组id, 多个id用逗号分隔
/// </summary>
[JsonProperty("ConditionTempGroupId")]
public string ConditionTempGroupId{ get; set; }
/// <summary>
/// 过滤条件, 接收人或者接收组, user表示接收人, group表示接收组
/// </summary>
[JsonProperty("ReceiverType")]
public string ReceiverType{ 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 + "Module", this.Module);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Like", this.Like);
this.SetParamSimple(map, prefix + "InstanceGroupId", this.InstanceGroupId);
this.SetParamSimple(map, prefix + "UpdateTimeOrder", this.UpdateTimeOrder);
this.SetParamArraySimple(map, prefix + "ProjectIds.", this.ProjectIds);
this.SetParamArraySimple(map, prefix + "ViewNames.", this.ViewNames);
this.SetParamSimple(map, prefix + "FilterUnuseReceiver", this.FilterUnuseReceiver);
this.SetParamArraySimple(map, prefix + "Receivers.", this.Receivers);
this.SetParamArraySimple(map, prefix + "ReceiverUserList.", this.ReceiverUserList);
this.SetParamSimple(map, prefix + "Dimensions", this.Dimensions);
this.SetParamSimple(map, prefix + "ConditionTempGroupId", this.ConditionTempGroupId);
this.SetParamSimple(map, prefix + "ReceiverType", this.ReceiverType);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribePolicyGroupListResponse : AbstractModel
{
/// <summary>
/// 策略组列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("GroupList")]
public DescribePolicyGroupListGroup[] GroupList{ get; set; }
/// <summary>
/// 策略组总数
/// </summary>
[JsonProperty("Total")]
public long? Total{ 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 + "GroupList.", this.GroupList);
this.SetParamSimple(map, prefix + "Total", this.Total);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeProductEventListDimensions : AbstractModel
{
/// <summary>
/// 维度名
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 维度值
/// </summary>
[JsonProperty("Value")]
public string Value{ 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 + "Name", this.Name);
this.SetParamSimple(map, prefix + "Value", this.Value);
}
}
}

View File

@@ -0,0 +1,196 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeProductEventListEvents : AbstractModel
{
/// <summary>
/// 事件ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EventId")]
public long? EventId{ get; set; }
/// <summary>
/// 事件中文名
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EventCName")]
public string EventCName{ get; set; }
/// <summary>
/// 事件英文名
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EventEName")]
public string EventEName{ get; set; }
/// <summary>
/// 事件简称
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EventName")]
public string EventName{ get; set; }
/// <summary>
/// 产品中文名
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ProductCName")]
public string ProductCName{ get; set; }
/// <summary>
/// 产品英文名
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ProductEName")]
public string ProductEName{ get; set; }
/// <summary>
/// 产品简称
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ProductName")]
public string ProductName{ get; set; }
/// <summary>
/// 实例ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 实例名称
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InstanceName")]
public string InstanceName{ get; set; }
/// <summary>
/// 项目ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ProjectId")]
public string ProjectId{ get; set; }
/// <summary>
/// 地域
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Region")]
public string Region{ get; set; }
/// <summary>
/// 状态
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 是否支持告警
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SupportAlarm")]
public long? SupportAlarm{ get; set; }
/// <summary>
/// 事件类型
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Type")]
public string Type{ get; set; }
/// <summary>
/// 开始时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("StartTime")]
public long? StartTime{ get; set; }
/// <summary>
/// 更新时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UpdateTime")]
public long? UpdateTime{ get; set; }
/// <summary>
/// 实例对象信息
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Dimensions")]
public DescribeProductEventListEventsDimensions[] Dimensions{ get; set; }
/// <summary>
/// 实例对象附加信息
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("AdditionMsg")]
public DescribeProductEventListEventsDimensions[] AdditionMsg{ get; set; }
/// <summary>
/// 是否配置告警
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("IsAlarmConfig")]
public long? IsAlarmConfig{ get; set; }
/// <summary>
/// 策略信息
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("GroupInfo")]
public DescribeProductEventListEventsGroupInfo[] GroupInfo{ 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 + "EventId", this.EventId);
this.SetParamSimple(map, prefix + "EventCName", this.EventCName);
this.SetParamSimple(map, prefix + "EventEName", this.EventEName);
this.SetParamSimple(map, prefix + "EventName", this.EventName);
this.SetParamSimple(map, prefix + "ProductCName", this.ProductCName);
this.SetParamSimple(map, prefix + "ProductEName", this.ProductEName);
this.SetParamSimple(map, prefix + "ProductName", this.ProductName);
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "InstanceName", this.InstanceName);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamSimple(map, prefix + "Region", this.Region);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "SupportAlarm", this.SupportAlarm);
this.SetParamSimple(map, prefix + "Type", this.Type);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamArrayObj(map, prefix + "Dimensions.", this.Dimensions);
this.SetParamArrayObj(map, prefix + "AdditionMsg.", this.AdditionMsg);
this.SetParamSimple(map, prefix + "IsAlarmConfig", this.IsAlarmConfig);
this.SetParamArrayObj(map, prefix + "GroupInfo.", this.GroupInfo);
}
}
}

View File

@@ -0,0 +1,60 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeProductEventListEventsDimensions : AbstractModel
{
/// <summary>
/// 维度名(英文)
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Key")]
public string Key{ get; set; }
/// <summary>
/// 维度名(中文)
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 维度值
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Value")]
public string Value{ 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 + "Key", this.Key);
this.SetParamSimple(map, prefix + "Name", this.Name);
this.SetParamSimple(map, prefix + "Value", this.Value);
}
}
}

View File

@@ -0,0 +1,52 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeProductEventListEventsGroupInfo : AbstractModel
{
/// <summary>
/// 策略ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("GroupId")]
public long? GroupId{ get; set; }
/// <summary>
/// 策略名
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("GroupName")]
public string GroupName{ 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 + "GroupId", this.GroupId);
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
}
}
}

View File

@@ -0,0 +1,68 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeProductEventListOverView : AbstractModel
{
/// <summary>
/// 状态变更的事件数量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("StatusChangeAmount")]
public long? StatusChangeAmount{ get; set; }
/// <summary>
/// 告警状态未配置的事件数量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UnConfigAlarmAmount")]
public long? UnConfigAlarmAmount{ get; set; }
/// <summary>
/// 异常事件数量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UnNormalEventAmount")]
public long? UnNormalEventAmount{ get; set; }
/// <summary>
/// 未恢复的事件数量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UnRecoverAmount")]
public long? UnRecoverAmount{ 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 + "StatusChangeAmount", this.StatusChangeAmount);
this.SetParamSimple(map, prefix + "UnConfigAlarmAmount", this.UnConfigAlarmAmount);
this.SetParamSimple(map, prefix + "UnNormalEventAmount", this.UnNormalEventAmount);
this.SetParamSimple(map, prefix + "UnRecoverAmount", this.UnRecoverAmount);
}
}
}

View File

@@ -0,0 +1,141 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeProductEventListRequest : AbstractModel
{
/// <summary>
/// 接口模块名,固定值"monitor"
/// </summary>
[JsonProperty("Module")]
public string Module{ get; set; }
/// <summary>
/// 产品类型过滤,比如"cvm"表示云服务器
/// </summary>
[JsonProperty("ProductName")]
public string[] ProductName{ get; set; }
/// <summary>
/// 事件名称过滤,比如"guest_reboot"表示机器重启
/// </summary>
[JsonProperty("EventName")]
public string[] EventName{ get; set; }
/// <summary>
/// 影响对象比如ins-19708ino
/// </summary>
[JsonProperty("InstanceId")]
public string[] InstanceId{ get; set; }
/// <summary>
/// 维度过滤比如外网IP:10.0.0.1
/// </summary>
[JsonProperty("Dimensions")]
public DescribeProductEventListDimensions[] Dimensions{ get; set; }
/// <summary>
/// 地域过滤比如gz
/// </summary>
[JsonProperty("RegionList")]
public string[] RegionList{ get; set; }
/// <summary>
/// 事件类型过滤,取值范围["status_change","abnormal"],分别表示状态变更、异常事件
/// </summary>
[JsonProperty("Type")]
public string[] Type{ get; set; }
/// <summary>
/// 事件状态过滤,取值范围["recover","alarm","-"],分别表示已恢复、未恢复、无状态
/// </summary>
[JsonProperty("Status")]
public string[] Status{ get; set; }
/// <summary>
/// 项目ID过滤
/// </summary>
[JsonProperty("Project")]
public string[] Project{ get; set; }
/// <summary>
/// 告警状态配置过滤1表示已配置0表示未配置
/// </summary>
[JsonProperty("IsAlarmConfig")]
public long? IsAlarmConfig{ get; set; }
/// <summary>
/// 按更新时间排序ASC表示升序DESC表示降序默认DESC
/// </summary>
[JsonProperty("TimeOrder")]
public string TimeOrder{ get; set; }
/// <summary>
/// 起始时间,默认一天前的时间戳
/// </summary>
[JsonProperty("StartTime")]
public long? StartTime{ get; set; }
/// <summary>
/// 结束时间,默认当前时间戳
/// </summary>
[JsonProperty("EndTime")]
public long? EndTime{ get; set; }
/// <summary>
/// 页偏移量默认0
/// </summary>
[JsonProperty("Offset")]
public long? Offset{ get; set; }
/// <summary>
/// 每页返回的数量默认20
/// </summary>
[JsonProperty("Limit")]
public long? Limit{ 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 + "Module", this.Module);
this.SetParamArraySimple(map, prefix + "ProductName.", this.ProductName);
this.SetParamArraySimple(map, prefix + "EventName.", this.EventName);
this.SetParamArraySimple(map, prefix + "InstanceId.", this.InstanceId);
this.SetParamArrayObj(map, prefix + "Dimensions.", this.Dimensions);
this.SetParamArraySimple(map, prefix + "RegionList.", this.RegionList);
this.SetParamArraySimple(map, prefix + "Type.", this.Type);
this.SetParamArraySimple(map, prefix + "Status.", this.Status);
this.SetParamArraySimple(map, prefix + "Project.", this.Project);
this.SetParamSimple(map, prefix + "IsAlarmConfig", this.IsAlarmConfig);
this.SetParamSimple(map, prefix + "TimeOrder", this.TimeOrder);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View File

@@ -0,0 +1,66 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeProductEventListResponse : AbstractModel
{
/// <summary>
/// 事件列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Events")]
public DescribeProductEventListEvents[] Events{ get; set; }
/// <summary>
/// 事件统计
/// </summary>
[JsonProperty("OverView")]
public DescribeProductEventListOverView OverView{ get; set; }
/// <summary>
/// 事件总数
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Total")]
public long? Total{ 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.SetParamObj(map, prefix + "OverView.", this.OverView);
this.SetParamSimple(map, prefix + "Total", this.Total);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Dimension : AbstractModel
{
/// <summary>
/// 实例维度名称
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 实例维度值
/// </summary>
[JsonProperty("Value")]
public string Value{ 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 + "Name", this.Name);
this.SetParamSimple(map, prefix + "Value", this.Value);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DimensionsDesc : AbstractModel
{
/// <summary>
/// 维度名数组
/// </summary>
[JsonProperty("Dimensions")]
public string[] Dimensions{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "Dimensions.", this.Dimensions);
}
}
}

View File

@@ -0,0 +1,78 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetMonitorDataRequest : AbstractModel
{
/// <summary>
/// 命名空间,每个云产品会有一个命名空间
/// </summary>
[JsonProperty("Namespace")]
public string Namespace{ get; set; }
/// <summary>
/// 指标名称,各个云产品的详细指标说明请参阅各个产品[监控接口](https://cloud.tencent.com/document/product/248/30384)文档
/// </summary>
[JsonProperty("MetricName")]
public string MetricName{ get; set; }
/// <summary>
/// 实例对象的维度组合
/// </summary>
[JsonProperty("Instances")]
public Instance[] Instances{ get; set; }
/// <summary>
/// 监控统计周期。默认为取值为300单位为s
/// </summary>
[JsonProperty("Period")]
public ulong? Period{ get; set; }
/// <summary>
/// 起始时间如2018-09-22T19:51:23+08:00
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 结束时间,默认为当前时间。 EndTime不能小于StartTime
/// </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 + "Namespace", this.Namespace);
this.SetParamSimple(map, prefix + "MetricName", this.MetricName);
this.SetParamArrayObj(map, prefix + "Instances.", this.Instances);
this.SetParamSimple(map, prefix + "Period", this.Period);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
}
}
}

View File

@@ -0,0 +1,78 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetMonitorDataResponse : AbstractModel
{
/// <summary>
/// 统计周期
/// </summary>
[JsonProperty("Period")]
public ulong? Period{ get; set; }
/// <summary>
/// 指标名
/// </summary>
[JsonProperty("MetricName")]
public string MetricName{ get; set; }
/// <summary>
/// 数据点数组
/// </summary>
[JsonProperty("DataPoints")]
public DataPoint[] DataPoints{ get; set; }
/// <summary>
/// 开始时间
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ 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 + "Period", this.Period);
this.SetParamSimple(map, prefix + "MetricName", this.MetricName);
this.SetParamArrayObj(map, prefix + "DataPoints.", this.DataPoints);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Instance : AbstractModel
{
/// <summary>
/// 实例的维度组合
/// </summary>
[JsonProperty("Dimensions")]
public Dimension[] Dimensions{ 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 + "Dimensions.", this.Dimensions);
}
}
}

View File

@@ -0,0 +1,52 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InstanceGroup : AbstractModel
{
/// <summary>
/// 实例组ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InstanceGroupId")]
public long? InstanceGroupId{ get; set; }
/// <summary>
/// 实例组名
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InstanceGroupName")]
public string InstanceGroupName{ 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 + "InstanceGroupId", this.InstanceGroupId);
this.SetParamSimple(map, prefix + "InstanceGroupName", this.InstanceGroupName);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class MetricDatum : AbstractModel
{
/// <summary>
/// 指标名称
/// </summary>
[JsonProperty("MetricName")]
public string MetricName{ get; set; }
/// <summary>
/// 指标的值
/// </summary>
[JsonProperty("Value")]
public ulong? Value{ 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 + "MetricName", this.MetricName);
this.SetParamSimple(map, prefix + "Value", this.Value);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class MetricObjectMeaning : AbstractModel
{
/// <summary>
/// 指标英文解释
/// </summary>
[JsonProperty("En")]
public string En{ get; set; }
/// <summary>
/// 指标中文解释
/// </summary>
[JsonProperty("Zh")]
public string Zh{ 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 + "En", this.En);
this.SetParamSimple(map, prefix + "Zh", this.Zh);
}
}
}

View File

@@ -0,0 +1,92 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class MetricSet : AbstractModel
{
/// <summary>
/// 命名空间,每个云产品会有一个命名空间
/// </summary>
[JsonProperty("Namespace")]
public string Namespace{ get; set; }
/// <summary>
/// 指标名称
/// </summary>
[JsonProperty("MetricName")]
public string MetricName{ get; set; }
/// <summary>
/// 指标使用的单位
/// </summary>
[JsonProperty("Unit")]
public string Unit{ get; set; }
/// <summary>
/// 指标使用的单位
/// </summary>
[JsonProperty("UnitCname")]
public string UnitCname{ get; set; }
/// <summary>
/// 指标支持的统计周期单位是秒如60、300
/// </summary>
[JsonProperty("Period")]
public long?[] Period{ get; set; }
/// <summary>
/// 统计周期内指标方式
/// </summary>
[JsonProperty("Periods")]
public PeriodsSt[] Periods{ get; set; }
/// <summary>
/// 统计指标含义解释
/// </summary>
[JsonProperty("Meaning")]
public MetricObjectMeaning Meaning{ get; set; }
/// <summary>
/// 维度描述信息
/// </summary>
[JsonProperty("Dimensions")]
public DimensionsDesc[] Dimensions{ 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 + "Namespace", this.Namespace);
this.SetParamSimple(map, prefix + "MetricName", this.MetricName);
this.SetParamSimple(map, prefix + "Unit", this.Unit);
this.SetParamSimple(map, prefix + "UnitCname", this.UnitCname);
this.SetParamArraySimple(map, prefix + "Period.", this.Period);
this.SetParamArrayObj(map, prefix + "Periods.", this.Periods);
this.SetParamObj(map, prefix + "Meaning.", this.Meaning);
this.SetParamArrayObj(map, prefix + "Dimensions.", this.Dimensions);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyAlarmReceiversRequest : AbstractModel
{
/// <summary>
/// 需要修改接收人的策略组Id
/// </summary>
[JsonProperty("GroupId")]
public long? GroupId{ get; set; }
/// <summary>
/// 必填。固定为“monitor”
/// </summary>
[JsonProperty("Module")]
public string Module{ get; set; }
/// <summary>
/// 新接收人信息, 没有填写则删除所有接收人
/// </summary>
[JsonProperty("ReceiverInfos")]
public ReceiverInfo[] ReceiverInfos{ 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 + "GroupId", this.GroupId);
this.SetParamSimple(map, prefix + "Module", this.Module);
this.SetParamArrayObj(map, prefix + "ReceiverInfos.", this.ReceiverInfos);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyAlarmReceiversResponse : AbstractModel
{
/// <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 + "RequestId", this.RequestId);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PeriodsSt : AbstractModel
{
/// <summary>
/// 周期
/// </summary>
[JsonProperty("Period")]
public string Period{ get; set; }
/// <summary>
/// 统计方式
/// </summary>
[JsonProperty("StatType")]
public string[] StatType{ 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.SetParamArraySimple(map, prefix + "StatType.", this.StatType);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PutMonitorDataRequest : AbstractModel
{
/// <summary>
/// 一组指标和数据
/// </summary>
[JsonProperty("Metrics")]
public MetricDatum[] Metrics{ get; set; }
/// <summary>
/// 上报时自行指定的 IP
/// </summary>
[JsonProperty("AnnounceIp")]
public string AnnounceIp{ get; set; }
/// <summary>
/// 上报时自行指定的时间戳
/// </summary>
[JsonProperty("AnnounceTimestamp")]
public ulong? AnnounceTimestamp{ get; set; }
/// <summary>
/// 上报时自行指定的 IP 或 产品实例ID
/// </summary>
[JsonProperty("AnnounceInstance")]
public string AnnounceInstance{ 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 + "Metrics.", this.Metrics);
this.SetParamSimple(map, prefix + "AnnounceIp", this.AnnounceIp);
this.SetParamSimple(map, prefix + "AnnounceTimestamp", this.AnnounceTimestamp);
this.SetParamSimple(map, prefix + "AnnounceInstance", this.AnnounceInstance);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PutMonitorDataResponse : AbstractModel
{
/// <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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,141 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ReceiverInfo : AbstractModel
{
/// <summary>
/// 告警时间段开始时间。范围[0,86400)作为unix时间戳转成北京时间后去掉日期例如7200表示"10:0:0"
/// </summary>
[JsonProperty("StartTime")]
public long? StartTime{ get; set; }
/// <summary>
/// 告警时间段结束时间。含义同StartTime
/// </summary>
[JsonProperty("EndTime")]
public long? EndTime{ get; set; }
/// <summary>
/// 告警通知方式。可选 "SMS","SITE","EMAIL","CALL","WECHAT"
/// </summary>
[JsonProperty("NotifyWay")]
public string[] NotifyWay{ get; set; }
/// <summary>
/// 接收人类型。“group” 或 “user”
/// </summary>
[JsonProperty("ReceiverType")]
public string[] ReceiverType{ get; set; }
/// <summary>
/// Id
/// </summary>
[JsonProperty("Id")]
public long? Id{ get; set; }
/// <summary>
/// 电话告警通知时机。可选"OCCUR"(告警时通知),"RECOVER"(恢复时通知)
/// </summary>
[JsonProperty("SendFor")]
public string[] SendFor{ get; set; }
/// <summary>
/// 电话告警接收者uid
/// </summary>
[JsonProperty("UidList")]
public long?[] UidList{ get; set; }
/// <summary>
/// 电话告警轮数
/// </summary>
[JsonProperty("RoundNumber")]
public long? RoundNumber{ get; set; }
/// <summary>
/// 电话告警对个人间隔(秒)
/// </summary>
[JsonProperty("PersonInterval")]
public long? PersonInterval{ get; set; }
/// <summary>
/// 电话告警每轮间隔(秒)
/// </summary>
[JsonProperty("RoundInterval")]
public long? RoundInterval{ get; set; }
/// <summary>
/// 恢复通知方式。可选"SMS"
/// </summary>
[JsonProperty("RecoverNotify")]
public string[] RecoverNotify{ get; set; }
/// <summary>
/// 是否需要电话告警触达提示。0不需要1需要
/// </summary>
[JsonProperty("NeedSendNotice")]
public long? NeedSendNotice{ get; set; }
/// <summary>
/// 接收组列表。通过平台接口查询到的接收组id列表
/// </summary>
[JsonProperty("ReceiverGroupList")]
public long?[] ReceiverGroupList{ get; set; }
/// <summary>
/// 接收人列表。通过平台接口查询到的接收人id列表
/// </summary>
[JsonProperty("ReceiverUserList")]
public long?[] ReceiverUserList{ get; set; }
/// <summary>
/// 告警接收语言枚举值zh-CNen-US
/// </summary>
[JsonProperty("ReceiveLanguage")]
public string ReceiveLanguage{ 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 + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamArraySimple(map, prefix + "NotifyWay.", this.NotifyWay);
this.SetParamArraySimple(map, prefix + "ReceiverType.", this.ReceiverType);
this.SetParamSimple(map, prefix + "Id", this.Id);
this.SetParamArraySimple(map, prefix + "SendFor.", this.SendFor);
this.SetParamArraySimple(map, prefix + "UidList.", this.UidList);
this.SetParamSimple(map, prefix + "RoundNumber", this.RoundNumber);
this.SetParamSimple(map, prefix + "PersonInterval", this.PersonInterval);
this.SetParamSimple(map, prefix + "RoundInterval", this.RoundInterval);
this.SetParamArraySimple(map, prefix + "RecoverNotify.", this.RecoverNotify);
this.SetParamSimple(map, prefix + "NeedSendNotice", this.NeedSendNotice);
this.SetParamArraySimple(map, prefix + "ReceiverGroupList.", this.ReceiverGroupList);
this.SetParamArraySimple(map, prefix + "ReceiverUserList.", this.ReceiverUserList);
this.SetParamSimple(map, prefix + "ReceiveLanguage", this.ReceiveLanguage);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SendCustomAlarmMsgRequest : AbstractModel
{
/// <summary>
/// 接口模块名当前取值monitor
/// </summary>
[JsonProperty("Module")]
public string Module{ get; set; }
/// <summary>
/// 消息策略ID在云监控自定义消息页面配置
/// </summary>
[JsonProperty("PolicyId")]
public string PolicyId{ get; set; }
/// <summary>
/// 用户想要发送的自定义消息内容
/// </summary>
[JsonProperty("Msg")]
public string Msg{ 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 + "Module", this.Module);
this.SetParamSimple(map, prefix + "PolicyId", this.PolicyId);
this.SetParamSimple(map, prefix + "Msg", this.Msg);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SendCustomAlarmMsgResponse : AbstractModel
{
/// <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 + "RequestId", this.RequestId);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UnBindingAllPolicyObjectRequest : AbstractModel
{
/// <summary>
/// 固定值,为"monitor"
/// </summary>
[JsonProperty("Module")]
public string Module{ get; set; }
/// <summary>
/// 策略组id
/// </summary>
[JsonProperty("GroupId")]
public long? GroupId{ 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 + "Module", this.Module);
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UnBindingAllPolicyObjectResponse : AbstractModel
{
/// <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 + "RequestId", this.RequestId);
}
}
}

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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UnBindingPolicyObjectRequest : AbstractModel
{
/// <summary>
/// 固定值,为"monitor"
/// </summary>
[JsonProperty("Module")]
public string Module{ get; set; }
/// <summary>
/// 策略组id
/// </summary>
[JsonProperty("GroupId")]
public long? GroupId{ get; set; }
/// <summary>
/// 待删除对象实例的唯一id列表
/// </summary>
[JsonProperty("UniqueId")]
public string[] UniqueId{ get; set; }
/// <summary>
/// 实例分组id, 如果按实例分组删除的话UniqueId参数是无效的
/// </summary>
[JsonProperty("InstanceGroupId")]
public long? InstanceGroupId{ 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 + "Module", this.Module);
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
this.SetParamArraySimple(map, prefix + "UniqueId.", this.UniqueId);
this.SetParamSimple(map, prefix + "InstanceGroupId", this.InstanceGroupId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Monitor.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UnBindingPolicyObjectResponse : AbstractModel
{
/// <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 + "RequestId", this.RequestId);
}
}
}