Files
g.hnyhua.cn/TencentCloud/Monitor/V20180724/Models/DescribePolicyGroupListGroup.cs

183 lines
6.6 KiB
C#
Raw Permalink Normal View History

/*
* 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);
}
}
}