107 lines
3.4 KiB
C#
107 lines
3.4 KiB
C#
/*
|
||
* 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
|
||
{
|
||
|
||
/// <summary>
|
||
/// 任务ID
|
||
/// </summary>
|
||
[JsonProperty("TaskId")]
|
||
public ulong? TaskId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 任务名称
|
||
/// </summary>
|
||
[JsonProperty("TaskName")]
|
||
public string TaskName{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 任务周期,单位为分钟。目前支持1,5,15,30几种取值
|
||
/// </summary>
|
||
[JsonProperty("Period")]
|
||
public ulong? Period{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 拨测类型。http, https, ping, tcp, udp, smtp, pop3, dns 之一
|
||
/// </summary>
|
||
[JsonProperty("CatTypeName")]
|
||
public string CatTypeName{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 任务状态。1表示暂停,2表示运行中,0为初始态
|
||
/// </summary>
|
||
[JsonProperty("Status")]
|
||
public ulong? Status{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 拨测任务的URL
|
||
/// </summary>
|
||
[JsonProperty("CgiUrl")]
|
||
public string CgiUrl{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 任务创建时间
|
||
/// </summary>
|
||
[JsonProperty("AddTime")]
|
||
public string AddTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 告警状态。1 故障,0 正常
|
||
/// </summary>
|
||
[JsonProperty("AlarmStatus")]
|
||
public ulong? AlarmStatus{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 告警状态描述,统计信息
|
||
/// </summary>
|
||
[JsonProperty("StatusInfo")]
|
||
public string StatusInfo{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 任务更新时间
|
||
/// </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 + "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);
|
||
}
|
||
}
|
||
}
|
||
|