@alicloud/ess20220222 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ess20220222",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -12,11 +12,11 @@
12
12
  "author": "Alibaba Cloud SDK",
13
13
  "license": "Apache-2.0",
14
14
  "devDependencies": {
15
- "@types/node": "^12.12.26",
15
+ "@types/node": "^16.0.0",
16
16
  "nyc": "^15.0.0",
17
17
  "source-map-support": "^0.5.16",
18
- "ts-node": "^8.6.2",
19
- "typescript": "^3.7.5"
18
+ "ts-node": "^10.0.0",
19
+ "typescript": "^5"
20
20
  },
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
package/src/client.ts CHANGED
@@ -17184,7 +17184,7 @@ export default class Client extends OpenApi {
17184
17184
  * A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
17185
17185
  * You can create only a limited number of scaling groups in a region. Go to Quota Center to check the quota of the scaling groups.
17186
17186
  * A scaling group does not immediately take effect after you create the scaling group. You must call the EnableScalingGroup operation to enable the scaling group. After you enable the scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
17187
- * The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the "Regions and zones" topic.
17187
+ * The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the [Regions and zones](~~40654~~) topic.
17188
17188
  * If you associate a CLB instance when you create a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the associated CLB instance. You can specify a server group to which ECS instances can be added. You can add ECS instances to the following types of server groups:
17189
17189
  * * Default server group: a group of ECS instances that are used to receive requests. If you do not specify a vServer group or a primary/secondary server group for a listener, requests are forwarded to the ECS instances in the default server group.
17190
17190
  * * vServer group: If you want to forward requests to backend servers that are not in the default server group or configure domain name-based or URL-based forwarding rules, you can use vServer groups.
@@ -17408,7 +17408,7 @@ export default class Client extends OpenApi {
17408
17408
  * A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
17409
17409
  * You can create only a limited number of scaling groups in a region. Go to Quota Center to check the quota of the scaling groups.
17410
17410
  * A scaling group does not immediately take effect after you create the scaling group. You must call the EnableScalingGroup operation to enable the scaling group. After you enable the scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
17411
- * The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the "Regions and zones" topic.
17411
+ * The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the [Regions and zones](~~40654~~) topic.
17412
17412
  * If you associate a CLB instance when you create a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the associated CLB instance. You can specify a server group to which ECS instances can be added. You can add ECS instances to the following types of server groups:
17413
17413
  * * Default server group: a group of ECS instances that are used to receive requests. If you do not specify a vServer group or a primary/secondary server group for a listener, requests are forwarded to the ECS instances in the default server group.
17414
17414
  * * vServer group: If you want to forward requests to backend servers that are not in the default server group or configure domain name-based or URL-based forwarding rules, you can use vServer groups.
@@ -20110,11 +20110,11 @@ export default class Client extends OpenApi {
20110
20110
  }
20111
20111
 
20112
20112
  /**
20113
- * * If you set MetricType to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
20114
- * * When you create an event-triggered task, you must specify MetricName, DimensionKey, and DimensionValue to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances in a scaling group within an Alibaba Cloud account.
20115
- * * If you set MetricType to custom, the valid values are your custom metrics.
20116
- * * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
20117
- * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see `DimensionKey` and `DimensionValue` in the "Request parameters" section of this topic.
20113
+ * * If you set the MetricType parameter to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
20114
+ * * When you create an event-triggered task, you must specify the MetricName, DimensionKey, and DimensionValue parameters to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances or elastic container instances in a scaling group within an Alibaba Cloud account.
20115
+ * * If you set the MetricType parameter to custom, the valid values are your custom metrics.
20116
+ * * For information about the metrics that are supported if you set the MetricType parameter to system, see[ Event-triggered task for system monitoring](~~74854~~).
20117
+ * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see the `DimensionKey` and `DimensionValue` parameters in the "Request parameters" section of this topic.
20118
20118
  *
20119
20119
  * @param request ModifyAlarmRequest
20120
20120
  * @param runtime runtime options for this request RuntimeOptions
@@ -20217,11 +20217,11 @@ export default class Client extends OpenApi {
20217
20217
  }
20218
20218
 
20219
20219
  /**
20220
- * * If you set MetricType to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
20221
- * * When you create an event-triggered task, you must specify MetricName, DimensionKey, and DimensionValue to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances in a scaling group within an Alibaba Cloud account.
20222
- * * If you set MetricType to custom, the valid values are your custom metrics.
20223
- * * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
20224
- * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see `DimensionKey` and `DimensionValue` in the "Request parameters" section of this topic.
20220
+ * * If you set the MetricType parameter to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
20221
+ * * When you create an event-triggered task, you must specify the MetricName, DimensionKey, and DimensionValue parameters to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances or elastic container instances in a scaling group within an Alibaba Cloud account.
20222
+ * * If you set the MetricType parameter to custom, the valid values are your custom metrics.
20223
+ * * For information about the metrics that are supported if you set the MetricType parameter to system, see[ Event-triggered task for system monitoring](~~74854~~).
20224
+ * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see the `DimensionKey` and `DimensionValue` parameters in the "Request parameters" section of this topic.
20225
20225
  *
20226
20226
  * @param request ModifyAlarmRequest
20227
20227
  * @return ModifyAlarmResponse
@@ -20917,10 +20917,9 @@ export default class Client extends OpenApi {
20917
20917
  * * You cannot call this operation to modify the settings of the following parameters:
20918
20918
  * * RegionId
20919
20919
  * * LoadBalancerId
20920
- * > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
20920
+ * > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
20921
20921
  * * DBInstanceId
20922
- * **
20923
- * **Note**If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
20922
+ * > If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
20924
20923
  * * You can modify only scaling groups that are in the Active or Inactive state.
20925
20924
  * * If you enable a new scaling configuration, Elastic Compute Service (ECS) instances that are created based on the previous scaling configuration still run as expected in the scaling group.
20926
20925
  * * If the total number of instances in the scaling group is greater than the allowed maximum number after you change the value of the MaxSize parameter, Auto Scaling automatically removes instances from the scaling group to ensure that the number of instances is within the new range.
@@ -21083,10 +21082,9 @@ export default class Client extends OpenApi {
21083
21082
  * * You cannot call this operation to modify the settings of the following parameters:
21084
21083
  * * RegionId
21085
21084
  * * LoadBalancerId
21086
- * > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
21085
+ * > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
21087
21086
  * * DBInstanceId
21088
- * **
21089
- * **Note**If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
21087
+ * > If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
21090
21088
  * * You can modify only scaling groups that are in the Active or Inactive state.
21091
21089
  * * If you enable a new scaling configuration, Elastic Compute Service (ECS) instances that are created based on the previous scaling configuration still run as expected in the scaling group.
21092
21090
  * * If the total number of instances in the scaling group is greater than the allowed maximum number after you change the value of the MaxSize parameter, Auto Scaling automatically removes instances from the scaling group to ensure that the number of instances is within the new range.
@@ -21449,6 +21447,20 @@ export default class Client extends OpenApi {
21449
21447
  return await this.recordLifecycleActionHeartbeatWithOptions(request, runtime);
21450
21448
  }
21451
21449
 
21450
+ /**
21451
+ * * Before you call this operation, make sure that the following requirements are met:
21452
+ * * The scaling group is in the Active state.
21453
+ * * No scaling activity is in progress within the scaling group.
21454
+ * > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
21455
+ * * If an ECS instance is automatically created by Auto Scaling, or if an ECS instance is manually added to a scaling group and managed by the scaling group, the ECS instance is stopped in economical mode or is released after the instance is removed from the scaling group.
21456
+ * * If an ECS instance is manually added to a scaling group and is not managed by the scaling group, the ECS instance is not stopped or released after the instance is removed from the scaling group.
21457
+ * * If the difference between the number of existing ECS instances specified by the TotalCapacity parameter and the number of ECS instances that you call this operation to remove is less than the value of the MinSize parameter, the call fails.
21458
+ * A successful call only means that Auto Scaling accepts the request. The scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
21459
+ *
21460
+ * @param request RemoveInstancesRequest
21461
+ * @param runtime runtime options for this request RuntimeOptions
21462
+ * @return RemoveInstancesResponse
21463
+ */
21452
21464
  async removeInstancesWithOptions(request: RemoveInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RemoveInstancesResponse> {
21453
21465
  Util.validateModel(request);
21454
21466
  let query = { };
@@ -21509,6 +21521,19 @@ export default class Client extends OpenApi {
21509
21521
  return $tea.cast<RemoveInstancesResponse>(await this.callApi(params, req, runtime), new RemoveInstancesResponse({}));
21510
21522
  }
21511
21523
 
21524
+ /**
21525
+ * * Before you call this operation, make sure that the following requirements are met:
21526
+ * * The scaling group is in the Active state.
21527
+ * * No scaling activity is in progress within the scaling group.
21528
+ * > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
21529
+ * * If an ECS instance is automatically created by Auto Scaling, or if an ECS instance is manually added to a scaling group and managed by the scaling group, the ECS instance is stopped in economical mode or is released after the instance is removed from the scaling group.
21530
+ * * If an ECS instance is manually added to a scaling group and is not managed by the scaling group, the ECS instance is not stopped or released after the instance is removed from the scaling group.
21531
+ * * If the difference between the number of existing ECS instances specified by the TotalCapacity parameter and the number of ECS instances that you call this operation to remove is less than the value of the MinSize parameter, the call fails.
21532
+ * A successful call only means that Auto Scaling accepts the request. The scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
21533
+ *
21534
+ * @param request RemoveInstancesRequest
21535
+ * @return RemoveInstancesResponse
21536
+ */
21512
21537
  async removeInstances(request: RemoveInstancesRequest): Promise<RemoveInstancesResponse> {
21513
21538
  let runtime = new $Util.RuntimeOptions({ });
21514
21539
  return await this.removeInstancesWithOptions(request, runtime);