/* * 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 DescribeAlarmsByTaskRequest : AbstractModel { /// /// 拨测任务Id /// [JsonProperty("TaskId")] public ulong? TaskId{ get; set; } /// /// 从第Offset 条开始查询。缺省值为0 /// [JsonProperty("Offset")] public ulong? Offset{ get; set; } /// /// 本批次查询Limit 条记录。缺省值为20 /// [JsonProperty("Limit")] public ulong? Limit{ get; set; } /// /// 0 全部, 1 已恢复, 2 未恢复 默认为0。其他值,视为0 查全部状态 /// [JsonProperty("Status")] public ulong? Status{ get; set; } /// /// 格式如:2017-05-09 00:00:00 缺省为7天前0点 /// [JsonProperty("BeginTime")] public string BeginTime{ get; set; } /// /// 格式如:2017-05-10 00:00:00 缺省为明天0点 /// [JsonProperty("EndTime")] public string EndTime{ get; set; } /// /// 排序字段,可为Time, ObjName, Duration, Status, Content 之一。缺省为Time /// [JsonProperty("SortBy")] public string SortBy{ get; set; } /// /// 升序或降序。可为Desc, Asc之一。缺省为Desc /// [JsonProperty("SortType")] public string SortType{ get; set; } /// /// 告警对象的名称 /// [JsonProperty("ObjName")] public string ObjName{ 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 + "Offset", this.Offset); this.SetParamSimple(map, prefix + "Limit", this.Limit); this.SetParamSimple(map, prefix + "Status", this.Status); this.SetParamSimple(map, prefix + "BeginTime", this.BeginTime); this.SetParamSimple(map, prefix + "EndTime", this.EndTime); this.SetParamSimple(map, prefix + "SortBy", this.SortBy); this.SetParamSimple(map, prefix + "SortType", this.SortType); this.SetParamSimple(map, prefix + "ObjName", this.ObjName); } } }