Files

137 lines
5.1 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.As.V20180419.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Activity : AbstractModel
{
/// <summary>
/// 伸缩组ID。
/// </summary>
[JsonProperty("AutoScalingGroupId")]
public string AutoScalingGroupId{ get; set; }
/// <summary>
/// 伸缩活动ID。
/// </summary>
[JsonProperty("ActivityId")]
public string ActivityId{ get; set; }
/// <summary>
/// 伸缩活动类型。取值如下:<br>
/// <li>SCALE_OUT扩容活动<li>SCALE_IN缩容活动<li>ATTACH_INSTANCES添加实例<li>REMOVE_INSTANCES销毁实例<li>DETACH_INSTANCES移出实例<li>TERMINATE_INSTANCES_UNEXPECTEDLY实例在CVM控制台被销毁<li>REPLACE_UNHEALTHY_INSTANCE替换不健康实例
/// <li>START_INSTANCES开启实例
/// <li>STOP_INSTANCES关闭实例
/// </summary>
[JsonProperty("ActivityType")]
public string ActivityType{ get; set; }
/// <summary>
/// 伸缩活动状态。取值如下:<br>
/// <li>INIT初始化中
/// <li>RUNNING运行中
/// <li>SUCCESSFUL活动成功
/// <li>PARTIALLY_SUCCESSFUL活动部分成功
/// <li>FAILED活动失败
/// <li>CANCELLED活动取消
/// </summary>
[JsonProperty("StatusCode")]
public string StatusCode{ get; set; }
/// <summary>
/// 伸缩活动状态描述。
/// </summary>
[JsonProperty("StatusMessage")]
public string StatusMessage{ get; set; }
/// <summary>
/// 伸缩活动起因。
/// </summary>
[JsonProperty("Cause")]
public string Cause{ get; set; }
/// <summary>
/// 伸缩活动描述。
/// </summary>
[JsonProperty("Description")]
public string Description{ get; set; }
/// <summary>
/// 伸缩活动开始时间。
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 伸缩活动结束时间。
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
/// <summary>
/// 伸缩活动创建时间。
/// </summary>
[JsonProperty("CreatedTime")]
public string CreatedTime{ get; set; }
/// <summary>
/// 伸缩活动相关实例信息集合。
/// </summary>
[JsonProperty("ActivityRelatedInstanceSet")]
public ActivtyRelatedInstance[] ActivityRelatedInstanceSet{ get; set; }
/// <summary>
/// 伸缩活动状态简要描述。
/// </summary>
[JsonProperty("StatusMessageSimplified")]
public string StatusMessageSimplified{ get; set; }
/// <summary>
/// 伸缩活动中生命周期挂钩的执行结果。
/// </summary>
[JsonProperty("LifecycleActionResultSet")]
public LifecycleActionResultInfo[] LifecycleActionResultSet{ 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 + "AutoScalingGroupId", this.AutoScalingGroupId);
this.SetParamSimple(map, prefix + "ActivityId", this.ActivityId);
this.SetParamSimple(map, prefix + "ActivityType", this.ActivityType);
this.SetParamSimple(map, prefix + "StatusCode", this.StatusCode);
this.SetParamSimple(map, prefix + "StatusMessage", this.StatusMessage);
this.SetParamSimple(map, prefix + "Cause", this.Cause);
this.SetParamSimple(map, prefix + "Description", this.Description);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "CreatedTime", this.CreatedTime);
this.SetParamArrayObj(map, prefix + "ActivityRelatedInstanceSet.", this.ActivityRelatedInstanceSet);
this.SetParamSimple(map, prefix + "StatusMessageSimplified", this.StatusMessageSimplified);
this.SetParamArrayObj(map, prefix + "LifecycleActionResultSet.", this.LifecycleActionResultSet);
}
}
}