首次推送
This commit is contained in:
53
TencentCloud/As/V20180419/Models/ServiceSettings.cs
Normal file
53
TencentCloud/As/V20180419/Models/ServiceSettings.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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 ServiceSettings : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 开启监控不健康替换服务。若开启则对于云监控标记为不健康的实例,弹性伸缩服务会进行替换。若不指定该参数,则默认为 False。
|
||||
/// </summary>
|
||||
[JsonProperty("ReplaceMonitorUnhealthy")]
|
||||
public bool? ReplaceMonitorUnhealthy{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 取值范围:
|
||||
/// CLASSIC_SCALING:经典方式,使用创建、销毁实例来实现扩缩容;
|
||||
/// WAKE_UP_STOPPED_SCALING:扩容优先开机。扩容时优先对已关机的实例执行开机操作,若开机后实例数仍低于期望实例数,则创建实例,缩容仍采用销毁实例的方式。用户可以使用StopAutoScalingInstances接口来关闭伸缩组内的实例。监控告警触发的扩容仍将创建实例
|
||||
/// 默认取值:CLASSIC_SCALING
|
||||
/// </summary>
|
||||
[JsonProperty("ScalingMode")]
|
||||
public string ScalingMode{ 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 + "ReplaceMonitorUnhealthy", this.ReplaceMonitorUnhealthy);
|
||||
this.SetParamSimple(map, prefix + "ScalingMode", this.ScalingMode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user