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