/*
* 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.As.V20180419.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class MetricAlarm : AbstractModel
{
///
/// 比较运算符,可选值:
GREATER_THAN:大于GREATER_THAN_OR_EQUAL_TO:大于或等于LESS_THAN:小于 LESS_THAN_OR_EQUAL_TO:小于或等于 EQUAL_TO:等于 NOT_EQUAL_TO:不等于
///
[JsonProperty("ComparisonOperator")]
public string ComparisonOperator{ get; set; }
///
/// 指标名称,可选字段如下:
CPU_UTILIZATION:CPU利用率MEM_UTILIZATION:内存利用率LAN_TRAFFIC_OUT:内网出带宽LAN_TRAFFIC_IN:内网入带宽WAN_TRAFFIC_OUT:外网出带宽WAN_TRAFFIC_IN:外网入带宽
///
[JsonProperty("MetricName")]
public string MetricName{ get; set; }
///
/// 告警阈值:
CPU_UTILIZATION:[1, 100],单位:%MEM_UTILIZATION:[1, 100],单位:%LAN_TRAFFIC_OUT:>0,单位:Mbps LAN_TRAFFIC_IN:>0,单位:MbpsWAN_TRAFFIC_OUT:>0,单位:MbpsWAN_TRAFFIC_IN:>0,单位:Mbps
///
[JsonProperty("Threshold")]
public ulong? Threshold{ get; set; }
///
/// 时间周期,单位:秒,取值枚举值为60、300。
///
[JsonProperty("Period")]
public ulong? Period{ get; set; }
///
/// 重复次数。取值范围 [1, 10]
///
[JsonProperty("ContinuousTime")]
public ulong? ContinuousTime{ get; set; }
///
/// 统计类型,可选字段如下:
AVERAGE:平均值MAXIMUM:最大值MINIMUM:最小值
默认取值:AVERAGE
///
[JsonProperty("Statistic")]
public string Statistic{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "ComparisonOperator", this.ComparisonOperator);
this.SetParamSimple(map, prefix + "MetricName", this.MetricName);
this.SetParamSimple(map, prefix + "Threshold", this.Threshold);
this.SetParamSimple(map, prefix + "Period", this.Period);
this.SetParamSimple(map, prefix + "ContinuousTime", this.ContinuousTime);
this.SetParamSimple(map, prefix + "Statistic", this.Statistic);
}
}
}