/* * 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.Cat.V20180409.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class TaskAlarm : AbstractModel { /// /// 任务ID /// [JsonProperty("TaskId")] public ulong? TaskId{ get; set; } /// /// 任务名称 /// [JsonProperty("TaskName")] public string TaskName{ get; set; } /// /// 任务周期,单位为分钟。目前支持1,5,15,30几种取值 /// [JsonProperty("Period")] public ulong? Period{ get; set; } /// /// 拨测类型。http, https, ping, tcp, udp, smtp, pop3, dns 之一 /// [JsonProperty("CatTypeName")] public string CatTypeName{ get; set; } /// /// 任务状态。1表示暂停,2表示运行中,0为初始态 /// [JsonProperty("Status")] public ulong? Status{ get; set; } /// /// 拨测任务的URL /// [JsonProperty("CgiUrl")] public string CgiUrl{ get; set; } /// /// 任务创建时间 /// [JsonProperty("AddTime")] public string AddTime{ get; set; } /// /// 告警状态。1 故障,0 正常 /// [JsonProperty("AlarmStatus")] public ulong? AlarmStatus{ get; set; } /// /// 告警状态描述,统计信息 /// [JsonProperty("StatusInfo")] public string StatusInfo{ get; set; } /// /// 任务更新时间 /// [JsonProperty("UpdateTime")] public string UpdateTime{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "TaskId", this.TaskId); this.SetParamSimple(map, prefix + "TaskName", this.TaskName); this.SetParamSimple(map, prefix + "Period", this.Period); this.SetParamSimple(map, prefix + "CatTypeName", this.CatTypeName); this.SetParamSimple(map, prefix + "Status", this.Status); this.SetParamSimple(map, prefix + "CgiUrl", this.CgiUrl); this.SetParamSimple(map, prefix + "AddTime", this.AddTime); this.SetParamSimple(map, prefix + "AlarmStatus", this.AlarmStatus); this.SetParamSimple(map, prefix + "StatusInfo", this.StatusInfo); this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime); } } }