/*
* 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
{
///
/// 伸缩组ID。
///
[JsonProperty("AutoScalingGroupId")]
public string AutoScalingGroupId{ get; set; }
///
/// 伸缩活动ID。
///
[JsonProperty("ActivityId")]
public string ActivityId{ get; set; }
///
/// 伸缩活动类型。取值如下:
/// SCALE_OUT:扩容活动SCALE_IN:缩容活动ATTACH_INSTANCES:添加实例REMOVE_INSTANCES:销毁实例DETACH_INSTANCES:移出实例TERMINATE_INSTANCES_UNEXPECTEDLY:实例在CVM控制台被销毁REPLACE_UNHEALTHY_INSTANCE:替换不健康实例
/// START_INSTANCES:开启实例
/// STOP_INSTANCES:关闭实例
///
[JsonProperty("ActivityType")]
public string ActivityType{ get; set; }
///
/// 伸缩活动状态。取值如下:
/// INIT:初始化中
/// RUNNING:运行中
/// SUCCESSFUL:活动成功
/// PARTIALLY_SUCCESSFUL:活动部分成功
/// FAILED:活动失败
/// CANCELLED:活动取消
///
[JsonProperty("StatusCode")]
public string StatusCode{ get; set; }
///
/// 伸缩活动状态描述。
///
[JsonProperty("StatusMessage")]
public string StatusMessage{ get; set; }
///
/// 伸缩活动起因。
///
[JsonProperty("Cause")]
public string Cause{ get; set; }
///
/// 伸缩活动描述。
///
[JsonProperty("Description")]
public string Description{ get; set; }
///
/// 伸缩活动开始时间。
///
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
///
/// 伸缩活动结束时间。
///
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
///
/// 伸缩活动创建时间。
///
[JsonProperty("CreatedTime")]
public string CreatedTime{ get; set; }
///
/// 伸缩活动相关实例信息集合。
///
[JsonProperty("ActivityRelatedInstanceSet")]
public ActivtyRelatedInstance[] ActivityRelatedInstanceSet{ get; set; }
///
/// 伸缩活动状态简要描述。
///
[JsonProperty("StatusMessageSimplified")]
public string StatusMessageSimplified{ get; set; }
///
/// 伸缩活动中生命周期挂钩的执行结果。
///
[JsonProperty("LifecycleActionResultSet")]
public LifecycleActionResultInfo[] LifecycleActionResultSet{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary 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);
}
}
}