@alicloud/sae20190506 2.8.4 → 2.9.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.
Files changed (175) hide show
  1. package/dist/client.d.ts +60 -40
  2. package/dist/client.js +108 -40
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateApplicationRequest.d.ts +3 -0
  5. package/dist/models/CreateApplicationRequest.js +6 -0
  6. package/dist/models/CreateApplicationRequest.js.map +1 -1
  7. package/dist/models/CreateApplicationScalingRuleRequest.d.ts +134 -0
  8. package/dist/models/CreateApplicationScalingRuleRequest.js.map +1 -1
  9. package/dist/models/CreateApplicationScalingRuleResponseBody.d.ts +166 -0
  10. package/dist/models/CreateApplicationScalingRuleResponseBody.js.map +1 -1
  11. package/dist/models/CreateApplicationShrinkRequest.d.ts +3 -0
  12. package/dist/models/CreateApplicationShrinkRequest.js +6 -0
  13. package/dist/models/CreateApplicationShrinkRequest.js.map +1 -1
  14. package/dist/models/CreateIngressRequest.d.ts +30 -26
  15. package/dist/models/CreateIngressRequest.js.map +1 -1
  16. package/dist/models/CreateIngressResponseBody.d.ts +15 -15
  17. package/dist/models/CreateOrUpdateSwimmingLaneGroupRequest.d.ts +26 -0
  18. package/dist/models/CreateOrUpdateSwimmingLaneGroupRequest.js.map +1 -1
  19. package/dist/models/CreateOrUpdateSwimmingLaneGroupResponseBody.d.ts +40 -0
  20. package/dist/models/CreateOrUpdateSwimmingLaneGroupResponseBody.js.map +1 -1
  21. package/dist/models/CreateOrUpdateSwimmingLaneGroupShrinkRequest.d.ts +26 -0
  22. package/dist/models/CreateOrUpdateSwimmingLaneGroupShrinkRequest.js.map +1 -1
  23. package/dist/models/CreateOrUpdateSwimmingLaneRequest.d.ts +137 -0
  24. package/dist/models/CreateOrUpdateSwimmingLaneRequest.js.map +1 -1
  25. package/dist/models/CreateOrUpdateSwimmingLaneResponseBody.d.ts +40 -0
  26. package/dist/models/CreateOrUpdateSwimmingLaneResponseBody.js.map +1 -1
  27. package/dist/models/CreateOrUpdateSwimmingLaneShrinkRequest.d.ts +39 -0
  28. package/dist/models/CreateOrUpdateSwimmingLaneShrinkRequest.js.map +1 -1
  29. package/dist/models/CreateSecretRequest.d.ts +12 -0
  30. package/dist/models/CreateSecretRequest.js.map +1 -1
  31. package/dist/models/CreateSecretResponseBody.d.ts +40 -0
  32. package/dist/models/CreateSecretResponseBody.js.map +1 -1
  33. package/dist/models/CreateSecretShrinkRequest.d.ts +12 -0
  34. package/dist/models/CreateSecretShrinkRequest.js.map +1 -1
  35. package/dist/models/DeleteInstancesRequest.d.ts +4 -0
  36. package/dist/models/DeleteInstancesRequest.js.map +1 -1
  37. package/dist/models/DeleteInstancesResponseBody.d.ts +40 -0
  38. package/dist/models/DeleteInstancesResponseBody.js.map +1 -1
  39. package/dist/models/DeleteSwimmingLaneGroupRequest.d.ts +6 -0
  40. package/dist/models/DeleteSwimmingLaneGroupRequest.js.map +1 -1
  41. package/dist/models/DeleteSwimmingLaneGroupResponseBody.d.ts +33 -0
  42. package/dist/models/DeleteSwimmingLaneGroupResponseBody.js.map +1 -1
  43. package/dist/models/DeployApplicationRequest.d.ts +2 -0
  44. package/dist/models/DeployApplicationRequest.js +4 -0
  45. package/dist/models/DeployApplicationRequest.js.map +1 -1
  46. package/dist/models/DeployApplicationShrinkRequest.d.ts +2 -0
  47. package/dist/models/DeployApplicationShrinkRequest.js +4 -0
  48. package/dist/models/DeployApplicationShrinkRequest.js.map +1 -1
  49. package/dist/models/DescribeApplicationConfigResponseBody.d.ts +2 -0
  50. package/dist/models/DescribeApplicationConfigResponseBody.js +4 -0
  51. package/dist/models/DescribeApplicationConfigResponseBody.js.map +1 -1
  52. package/dist/models/DescribeInstanceLogRequest.d.ts +1 -0
  53. package/dist/models/DescribeInstanceLogRequest.js +2 -0
  54. package/dist/models/DescribeInstanceLogRequest.js.map +1 -1
  55. package/dist/models/DescribeNamespaceResourcesResponseBody.d.ts +1 -0
  56. package/dist/models/DescribeNamespaceResourcesResponseBody.js +2 -0
  57. package/dist/models/DescribeNamespaceResourcesResponseBody.js.map +1 -1
  58. package/dist/models/DescribeSwimmingLaneRequest.d.ts +9 -0
  59. package/dist/models/DescribeSwimmingLaneRequest.js.map +1 -1
  60. package/dist/models/DescribeSwimmingLaneResponseBody.d.ts +185 -0
  61. package/dist/models/DescribeSwimmingLaneResponseBody.js.map +1 -1
  62. package/dist/models/DowngradeApplicationApmServiceRequest.d.ts +2 -0
  63. package/dist/models/DowngradeApplicationApmServiceRequest.js.map +1 -1
  64. package/dist/models/DowngradeApplicationApmServiceResponseBody.d.ts +41 -0
  65. package/dist/models/DowngradeApplicationApmServiceResponseBody.js.map +1 -1
  66. package/dist/models/GetWebshellTokenRequest.d.ts +6 -2
  67. package/dist/models/GetWebshellTokenRequest.js.map +1 -1
  68. package/dist/models/GetWebshellTokenResponseBody.d.ts +46 -0
  69. package/dist/models/GetWebshellTokenResponseBody.js.map +1 -1
  70. package/dist/models/ListAllSwimmingLaneGroupsRequest.d.ts +3 -0
  71. package/dist/models/ListAllSwimmingLaneGroupsRequest.js.map +1 -1
  72. package/dist/models/ListAllSwimmingLaneGroupsResponseBody.d.ts +113 -0
  73. package/dist/models/ListAllSwimmingLaneGroupsResponseBody.js.map +1 -1
  74. package/dist/models/ListAllSwimmingLanesRequest.d.ts +6 -0
  75. package/dist/models/ListAllSwimmingLanesRequest.js.map +1 -1
  76. package/dist/models/ListAllSwimmingLanesResponseBody.d.ts +185 -0
  77. package/dist/models/ListAllSwimmingLanesResponseBody.js.map +1 -1
  78. package/dist/models/ListApplicationsForSwimmingLaneRequest.d.ts +8 -0
  79. package/dist/models/ListApplicationsForSwimmingLaneRequest.js.map +1 -1
  80. package/dist/models/ListApplicationsForSwimmingLaneResponseBody.d.ts +59 -0
  81. package/dist/models/ListApplicationsForSwimmingLaneResponseBody.js.map +1 -1
  82. package/dist/models/ListSwimmingLaneGatewayRoutesRequest.d.ts +6 -0
  83. package/dist/models/ListSwimmingLaneGatewayRoutesRequest.js.map +1 -1
  84. package/dist/models/ListSwimmingLaneGatewayRoutesResponseBody.d.ts +57 -0
  85. package/dist/models/ListSwimmingLaneGatewayRoutesResponseBody.js.map +1 -1
  86. package/dist/models/ListSwimmingLaneGroupTagsRequest.d.ts +6 -0
  87. package/dist/models/ListSwimmingLaneGroupTagsRequest.js.map +1 -1
  88. package/dist/models/ListSwimmingLaneGroupTagsResponseBody.d.ts +43 -0
  89. package/dist/models/ListSwimmingLaneGroupTagsResponseBody.js.map +1 -1
  90. package/dist/models/UpdateAppModeRequest.d.ts +11 -0
  91. package/dist/models/UpdateAppModeRequest.js.map +1 -1
  92. package/dist/models/UpdateAppModeResponseBody.d.ts +27 -0
  93. package/dist/models/UpdateAppModeResponseBody.js.map +1 -1
  94. package/dist/models/UpdateApplicationDescriptionRequest.d.ts +4 -0
  95. package/dist/models/UpdateApplicationDescriptionRequest.js.map +1 -1
  96. package/dist/models/UpdateApplicationDescriptionResponseBody.d.ts +36 -0
  97. package/dist/models/UpdateApplicationDescriptionResponseBody.js.map +1 -1
  98. package/dist/models/UpdateIngressRequest.d.ts +12 -12
  99. package/dist/models/UpdateIngressResponseBody.d.ts +11 -11
  100. package/dist/models/UpdateNamespaceSlsConfigsRequest.d.ts +28 -0
  101. package/dist/models/UpdateNamespaceSlsConfigsRequest.js +62 -0
  102. package/dist/models/UpdateNamespaceSlsConfigsRequest.js.map +1 -0
  103. package/dist/models/UpdateNamespaceSlsConfigsResponse.d.ts +19 -0
  104. package/dist/models/UpdateNamespaceSlsConfigsResponse.js +69 -0
  105. package/dist/models/UpdateNamespaceSlsConfigsResponse.js.map +1 -0
  106. package/dist/models/UpdateNamespaceSlsConfigsResponseBody.d.ts +42 -0
  107. package/dist/models/UpdateNamespaceSlsConfigsResponseBody.js +68 -0
  108. package/dist/models/UpdateNamespaceSlsConfigsResponseBody.js.map +1 -0
  109. package/dist/models/UpdateSwimmingLaneEnableAttributeRequest.d.ts +15 -0
  110. package/dist/models/UpdateSwimmingLaneEnableAttributeRequest.js.map +1 -1
  111. package/dist/models/UpdateSwimmingLaneEnableAttributeResponseBody.d.ts +33 -0
  112. package/dist/models/UpdateSwimmingLaneEnableAttributeResponseBody.js.map +1 -1
  113. package/dist/models/UpgradeApplicationApmServiceRequest.d.ts +2 -0
  114. package/dist/models/UpgradeApplicationApmServiceRequest.js.map +1 -1
  115. package/dist/models/UpgradeApplicationApmServiceResponseBody.d.ts +43 -0
  116. package/dist/models/UpgradeApplicationApmServiceResponseBody.js.map +1 -1
  117. package/dist/models/model.d.ts +3 -0
  118. package/dist/models/model.js +8 -2
  119. package/dist/models/model.js.map +1 -1
  120. package/package.json +1 -1
  121. package/src/client.ts +119 -40
  122. package/src/models/CreateApplicationRequest.ts +9 -0
  123. package/src/models/CreateApplicationScalingRuleRequest.ts +134 -0
  124. package/src/models/CreateApplicationScalingRuleResponseBody.ts +166 -0
  125. package/src/models/CreateApplicationShrinkRequest.ts +9 -0
  126. package/src/models/CreateIngressRequest.ts +30 -26
  127. package/src/models/CreateIngressResponseBody.ts +15 -15
  128. package/src/models/CreateOrUpdateSwimmingLaneGroupRequest.ts +26 -0
  129. package/src/models/CreateOrUpdateSwimmingLaneGroupResponseBody.ts +40 -0
  130. package/src/models/CreateOrUpdateSwimmingLaneGroupShrinkRequest.ts +26 -0
  131. package/src/models/CreateOrUpdateSwimmingLaneRequest.ts +137 -0
  132. package/src/models/CreateOrUpdateSwimmingLaneResponseBody.ts +40 -0
  133. package/src/models/CreateOrUpdateSwimmingLaneShrinkRequest.ts +39 -0
  134. package/src/models/CreateSecretRequest.ts +12 -0
  135. package/src/models/CreateSecretResponseBody.ts +40 -0
  136. package/src/models/CreateSecretShrinkRequest.ts +12 -0
  137. package/src/models/DeleteInstancesRequest.ts +4 -0
  138. package/src/models/DeleteInstancesResponseBody.ts +40 -0
  139. package/src/models/DeleteSwimmingLaneGroupRequest.ts +6 -0
  140. package/src/models/DeleteSwimmingLaneGroupResponseBody.ts +33 -0
  141. package/src/models/DeployApplicationRequest.ts +6 -0
  142. package/src/models/DeployApplicationShrinkRequest.ts +6 -0
  143. package/src/models/DescribeApplicationConfigResponseBody.ts +6 -0
  144. package/src/models/DescribeInstanceLogRequest.ts +3 -0
  145. package/src/models/DescribeNamespaceResourcesResponseBody.ts +3 -0
  146. package/src/models/DescribeSwimmingLaneRequest.ts +9 -0
  147. package/src/models/DescribeSwimmingLaneResponseBody.ts +185 -0
  148. package/src/models/DowngradeApplicationApmServiceRequest.ts +2 -0
  149. package/src/models/DowngradeApplicationApmServiceResponseBody.ts +41 -0
  150. package/src/models/GetWebshellTokenRequest.ts +6 -2
  151. package/src/models/GetWebshellTokenResponseBody.ts +46 -0
  152. package/src/models/ListAllSwimmingLaneGroupsRequest.ts +3 -0
  153. package/src/models/ListAllSwimmingLaneGroupsResponseBody.ts +113 -0
  154. package/src/models/ListAllSwimmingLanesRequest.ts +6 -0
  155. package/src/models/ListAllSwimmingLanesResponseBody.ts +185 -0
  156. package/src/models/ListApplicationsForSwimmingLaneRequest.ts +8 -0
  157. package/src/models/ListApplicationsForSwimmingLaneResponseBody.ts +59 -0
  158. package/src/models/ListSwimmingLaneGatewayRoutesRequest.ts +6 -0
  159. package/src/models/ListSwimmingLaneGatewayRoutesResponseBody.ts +57 -0
  160. package/src/models/ListSwimmingLaneGroupTagsRequest.ts +6 -0
  161. package/src/models/ListSwimmingLaneGroupTagsResponseBody.ts +43 -0
  162. package/src/models/UpdateAppModeRequest.ts +11 -0
  163. package/src/models/UpdateAppModeResponseBody.ts +27 -0
  164. package/src/models/UpdateApplicationDescriptionRequest.ts +4 -0
  165. package/src/models/UpdateApplicationDescriptionResponseBody.ts +36 -0
  166. package/src/models/UpdateIngressRequest.ts +12 -12
  167. package/src/models/UpdateIngressResponseBody.ts +11 -11
  168. package/src/models/UpdateNamespaceSlsConfigsRequest.ts +45 -0
  169. package/src/models/UpdateNamespaceSlsConfigsResponse.ts +40 -0
  170. package/src/models/UpdateNamespaceSlsConfigsResponseBody.ts +65 -0
  171. package/src/models/UpdateSwimmingLaneEnableAttributeRequest.ts +15 -0
  172. package/src/models/UpdateSwimmingLaneEnableAttributeResponseBody.ts +33 -0
  173. package/src/models/UpgradeApplicationApmServiceRequest.ts +2 -0
  174. package/src/models/UpgradeApplicationApmServiceResponseBody.ts +43 -0
  175. package/src/models/model.ts +3 -0
@@ -21,6 +21,7 @@ export class CreateApplicationRequest extends $dara.Model {
21
21
  * cri-xxxxxx
22
22
  */
23
23
  acrInstanceId?: string;
24
+ agentVersion?: string;
24
25
  /**
25
26
  * @remarks
26
27
  * The description of the template. The description cannot exceed 1,024 characters in length.
@@ -225,6 +226,8 @@ export class CreateApplicationRequest extends $dara.Model {
225
226
  * false
226
227
  */
227
228
  enableEbpf?: string;
229
+ enableNamespaceAgentVersion?: boolean;
230
+ enableNamespaceSlsConfig?: boolean;
228
231
  /**
229
232
  * @remarks
230
233
  * Indicates whether to enable the new ARMS feature:
@@ -847,6 +850,7 @@ export class CreateApplicationRequest extends $dara.Model {
847
850
  return {
848
851
  acrAssumeRoleArn: 'AcrAssumeRoleArn',
849
852
  acrInstanceId: 'AcrInstanceId',
853
+ agentVersion: 'AgentVersion',
850
854
  appDescription: 'AppDescription',
851
855
  appName: 'AppName',
852
856
  appSource: 'AppSource',
@@ -866,6 +870,8 @@ export class CreateApplicationRequest extends $dara.Model {
866
870
  emptyDirDesc: 'EmptyDirDesc',
867
871
  enableCpuBurst: 'EnableCpuBurst',
868
872
  enableEbpf: 'EnableEbpf',
873
+ enableNamespaceAgentVersion: 'EnableNamespaceAgentVersion',
874
+ enableNamespaceSlsConfig: 'EnableNamespaceSlsConfig',
869
875
  enableNewArms: 'EnableNewArms',
870
876
  enablePrometheus: 'EnablePrometheus',
871
877
  enableSidecarResourceIsolated: 'EnableSidecarResourceIsolated',
@@ -933,6 +939,7 @@ export class CreateApplicationRequest extends $dara.Model {
933
939
  return {
934
940
  acrAssumeRoleArn: 'string',
935
941
  acrInstanceId: 'string',
942
+ agentVersion: 'string',
936
943
  appDescription: 'string',
937
944
  appName: 'string',
938
945
  appSource: 'string',
@@ -952,6 +959,8 @@ export class CreateApplicationRequest extends $dara.Model {
952
959
  emptyDirDesc: 'string',
953
960
  enableCpuBurst: 'boolean',
954
961
  enableEbpf: 'string',
962
+ enableNamespaceAgentVersion: 'boolean',
963
+ enableNamespaceSlsConfig: 'boolean',
955
964
  enableNewArms: 'boolean',
956
965
  enablePrometheus: 'boolean',
957
966
  enableSidecarResourceIsolated: 'boolean',
@@ -5,6 +5,8 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class CreateApplicationScalingRuleRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
+ * The application ID.
9
+ *
8
10
  * This parameter is required.
9
11
  *
10
12
  * @example
@@ -13,27 +15,109 @@ export class CreateApplicationScalingRuleRequest extends $dara.Model {
13
15
  appId?: string;
14
16
  enableIdle?: boolean;
15
17
  /**
18
+ * @remarks
19
+ * The percentage of the minimum number of available instances. Valid values:
20
+ *
21
+ * * **-1** (default value): The minimum number of available instances is not determined based on this parameter.
22
+ * * **0 to 100**: The minimum number of available instances is calculated by using the following formula: Number of existing instances × Value of MinReadyInstanceRatio × 100%. The calculation result is rounded up to the nearest integer. For example, if the number of existing instances is 5 and MinReadyInstanceRatio is set to 50, the minimum number of available instances is 3.
23
+ *
24
+ * > When **MinReadyInstance** and **MinReadyInstanceRatio** are passed at the same time and the **MinReadyInstanceRatio** value is not \\*\\*-1\\*\\*, the **MinReadyInstanceRatio** parameter takes precedence. **Note**When both **MinReadyInstance** and **MinReadyInstanceRatio** are specified and **MinReadyInstanceRatio** is set to a number from 0 to 100, the value of **MinReadyInstanceRatio** takes precedence.
25
+ *
16
26
  * @example
17
27
  * -1
18
28
  */
19
29
  minReadyInstanceRatio?: number;
20
30
  /**
31
+ * @remarks
32
+ * The minimum number of available instances. Special values:
33
+ *
34
+ * * If you set the value to **0**, business is interrupted when the application is updated.
35
+ * * If you set this property to -1, the system calculates a recommended value as the minimum number of available instances by using the following formula: Recommended value = Number of existing instances × 25%. The calculation result is rounded up to the nearest integer. For example, if the number of existing instances is 5, the recommended value is calculated by using the following formula: 5 × 25% = 1.25. In this case, the minimum number of available instances is 2.
36
+ *
37
+ * > To ensure business continuity, make sure that at least one instance is available during application deployment and rollback.
38
+ *
21
39
  * @example
22
40
  * 3
23
41
  */
24
42
  minReadyInstances?: number;
25
43
  /**
44
+ * @remarks
45
+ * Specifies whether to enable the auto scaling policy. Valid values:
46
+ *
47
+ * * **true**: The auto scaling policy is enabled.
48
+ * * **false**: The auto scaling policy is disabled.
49
+ *
26
50
  * @example
27
51
  * true
28
52
  */
29
53
  scalingRuleEnable?: boolean;
30
54
  /**
55
+ * @remarks
56
+ * The configurations of the metric-based auto scaling policy. This parameter is required if you set the ScalingRuleType parameter to metric.
57
+ *
58
+ * The following list describes the involved parameters:
59
+ *
60
+ * * **maxReplicas**: the maximum number of instances in the application.
61
+ *
62
+ * * **minReplicas**: the minimum number of instances in the application.
63
+ *
64
+ * * **metricType**: the metric that is used to trigger the auto scaling policy.
65
+ *
66
+ * * **CPU**: the CPU utilization.
67
+ * * **MEMORY**: the memory usage.
68
+ * * **QPS**: the average QPS within 1 minute per Java application instance.
69
+ * * **RT**: the average response time of all API operations within 1 minute in the Java application.
70
+ * * **tcpActiveConn**: the average number of active TCP connections within 30 seconds per instance.
71
+ * * **SLB_QPS**: the average QPS of the Internet-facing SLB instance within 15 seconds per instance.
72
+ * * **SLB_RT**: the average response time of the Internet-facing SLB instance within 15 seconds.
73
+ * * **INTRANET_SLB_QPS**: the average QPS of the internal-facing SLB instance within 15 seconds per instance.
74
+ * * **INTRANET_SLB_RT**: the average response time of the internal-facing SLB instance within 15 seconds.
75
+ *
76
+ * * **metricTargetAverageUtilization**: the limit on the metric that is specified by **metricType**. You can specify following limits:
77
+ *
78
+ * * The limit on the CPU utilization. Unit: percentage.
79
+ * * The limit on the memory usage. Unit: percentage.
80
+ * * The limit on the QPS.
81
+ * * The limit on the response time. Unit: milliseconds.
82
+ * * The limit on the average number of active TCP connections per second.
83
+ * * The limit on the QPS of the Internet-facing SLB instance.
84
+ * * The limit on the response time of the Internet-facing SLB instance. Unit: milliseconds.
85
+ * * The limit on the QPS of the internal-facing SLB instance.
86
+ * * The limit on the response time of the internal-facing SLB instance. Unit: milliseconds.
87
+ *
88
+ * * **slbId**: the ID of the SLB instance.
89
+ *
90
+ * * **slbProject**: the Simple Log Service (SLS) project.
91
+ *
92
+ * * **slbLogstore**: the SLS Logstore.
93
+ *
94
+ * * **vport**: the listener port of the SLB instance. HTTP and HTTPS are supported.
95
+ *
96
+ * * **scaleUpRules**: the scale-out rules.
97
+ *
98
+ * * **scaleDownRules**: the scale-in rule.
99
+ *
100
+ * * **step**: the scale-out or scale-in step size. This parameter specifies the maximum number of instances that can be added or removed per unit time.
101
+ *
102
+ * * **disabled**: specifies whether to disable the application scale-in. If you set this parameter to true, the application instances are never reduced. This prevents business risks during peak hours.
103
+ *
104
+ * * **true**: disables the application scale-in.
105
+ * * **false**: enables the application scale-in. Default value: false.
106
+ *
107
+ * * **stabilizationWindowSeconds**: the cooldown period during which the system is stable and does not perform scale-out or scale-in operations. Valid values: 0 to 3600. Unit: seconds. Default value: 0.
108
+ *
109
+ * > NoteYou can specify one or more metrics as the trigger conditions of the auto scaling policy. If one of the values of the specified metrics is greater than or equal to the specified limit, the application is scaled out. The number of instances after the scale-out operation is less than or equal to the value of the specified maximum application instances. If the values of all specified metrics are less than the limits, the application is scaled in. The number of instances after the scale-in operation is greater than or equal to the value of the specified minimum application instances.
110
+ *
31
111
  * @example
32
112
  * {"maxReplicas":3,"minReplicas":1,"metrics":[{"metricType":"CPU","metricTargetAverageUtilization":20},{"metricType":"MEMORY","metricTargetAverageUtilization":30},{"metricType":"tcpActiveConn","metricTargetAverageUtilization":20},{"metricType":"SLB_QPS","MetricTargetAverageUtilization":25,"SlbProject":"aliyun-fc-cn-hangzhou-d95881d9-5d3c-5f26-a6b8-************","SlbLogstore":"function-log","Vport":"80"},{"metricType":"SLB_RT","MetricTargetAverageUtilization":35,"SlbProject":"aliyun-fc-cn-hangzhou-d95881d9-5d3c-5f26-a6b8-************","SlbLogstore":"function-log","Vport":"80"}],"scaleUpRules":{"step":"100","disabled":false,"stabilizationWindowSeconds":0},"scaleDownRules":{"step":"100","disabled":false,"stabilizationWindowSeconds":300}}
33
113
  */
34
114
  scalingRuleMetric?: string;
35
115
  /**
36
116
  * @remarks
117
+ * The name of the auto scaling policy. The name must be unique in an application, and can be up to 32 characters in length. It must start with a lowercase letter and can contain only lowercase letters, digits, and hyphens (-).
118
+ *
119
+ * > You cannot change the names of created auto scaling policies.
120
+ *
37
121
  * This parameter is required.
38
122
  *
39
123
  * @example
@@ -41,12 +125,62 @@ export class CreateApplicationScalingRuleRequest extends $dara.Model {
41
125
  */
42
126
  scalingRuleName?: string;
43
127
  /**
128
+ * @remarks
129
+ * The configuration of the scheduled elasticity policy. This parameter is required if you select Scheduled Scaling Policy or Use SDK to Set.
130
+ *
131
+ * The following table describes the parameters.
132
+ *
133
+ * * **beginDate** and **endDate**: **beginDate** is the start date and **endDate** is the end date, which is used to configure the timing Auto Scaling policy. Valid values:
134
+ *
135
+ * * If both values are **null**, long-term execution is performed. This is the default value.
136
+ * * If the value is a specific date, for example, the **beginDate** is **2021-03-25** and the **endDate** is **2021-04-25**, the validity period is one month.
137
+ *
138
+ * * **period**: The period during which the timed Auto Scaling policy is executed. Valid values:
139
+ *
140
+ * * **\\* \\* \\***: The scheduled policy is executed at a specified time every day.
141
+ *
142
+ * * **\\* \\* Fri,Mon**: The scheduled policy is executed at the specified time on the specified number of days per week. You can select multiple time zones. The time zone is GMT +8. Valid values:
143
+ *
144
+ * * **Sun**: Sunday
145
+ * * **Mon**: Monday
146
+ * * **Tue**: Tuesday
147
+ * * **Wed**: Wednesday
148
+ * * **Thu**: Thursday
149
+ * * **Fri**: Friday
150
+ * * **Sat**: Saturday
151
+ *
152
+ * * **1,2,3,28,31 \\* \\***: The scheduled auto scaling policy is executed at a specified point in time on one or more dates of each month. Valid values: 1 to 31. If a month does not have the 31st day, the auto scaling policy is executed on the specified days other than the 31st day.
153
+ *
154
+ * * **schedules**: the points in time at which the scheduled auto scaling policy is triggered and the number of application instances that are retained during the time periods. You can specify up to 20 points in time. The following list describes the involved parameters:
155
+ *
156
+ * * **atTime**: the point in time at which the policy is triggered. **targetReplicas**: the number of application instances that you want to retain during the corresponding time period or the minimum number of available instances required for each deployment.****
157
+ *
158
+ * * **Valid values: 1 to 50.** Valid values: 1 to 50.
159
+ *
160
+ * **
161
+ *
162
+ * **Note**Make sure that at least one instance is available during the application deployment and rollback to prevent your business from being interrupted. If you set the value to **0**, business interruptions occur when the application is updated. If you set the value to **0**, business interruptions occur when the application is updated.
163
+ *
44
164
  * @example
45
165
  * {"beginDate":null,"endDate":null,"period":"* * *","schedules":[{"atTime":"08:00","targetReplicas":10},{"atTime":"20:00","targetReplicas":3}]}
46
166
  */
47
167
  scalingRuleTimer?: string;
48
168
  /**
49
169
  * @remarks
170
+ * The type of the auto scaling policy. Take note of the following rules:
171
+ *
172
+ * * **timing**: a scheduled auto scaling policy.
173
+ * * **metric**: a metric-based auto scaling policy.
174
+ * * **mix**: a hybrid auto scaling policy.
175
+ *
176
+ * >
177
+ *
178
+ * * If you set this parameter to timing, the ScalingRuleTimer parameter must be specified.
179
+ *
180
+ * * If you set this parameter to metric, the ScalingRuleMetric parameter must be specified.
181
+ *
182
+ * * If you set this parameter to mix, the ScalingRuleMetric parameter must be specified. You can specify the ScalingRuleTimer parameter based on your business requirements.
183
+ *
50
184
  * This parameter is required.
51
185
  *
52
186
  * @example
@@ -4,31 +4,69 @@ import * as $dara from '@darabonba/typescript';
4
4
 
5
5
  export class CreateApplicationScalingRuleResponseBodyDataMetricMetrics extends $dara.Model {
6
6
  /**
7
+ * @remarks
8
+ * The limit on the metric.
9
+ *
10
+ * * The limit on the CPU utilization. Unit: percentage.
11
+ * * The limit on the memory usage. Unit: percentage.
12
+ * * The limit on the queries per second (QPS). Unit: seconds.
13
+ * * The limit on the response time. Unit: milliseconds.
14
+ * * The limit on the average number of active TCP connections per second.
15
+ * * The limit on the QPS of the Internet-facing SLB instance.
16
+ * * The limit on the response time of the Internet-facing SLB instance. Unit: milliseconds.
17
+ * * The limit on the QPS of the internal-facing SLB instance.
18
+ * * The limit on the response time of the internal-facing SLB instance. Unit: milliseconds.
19
+ *
7
20
  * @example
8
21
  * 20
9
22
  */
10
23
  metricTargetAverageUtilization?: number;
11
24
  /**
25
+ * @remarks
26
+ * The metric that is used to trigger the auto scaling policy. Valid values:
27
+ *
28
+ * * **CPU**: the CPU utilization.
29
+ * * **MEMORY**: the memory usage.
30
+ * * **QPS**: the average QPS within 1 minute per Java application instance.
31
+ * * **RT**: the average response time of all API operations within 1 minute in the Java application.
32
+ * * **tcpActiveConn**: the average number of active TCP connections within 30 seconds per instance.
33
+ * * **SLB_QPS**: the average QPS of the Internet-facing SLB instance within 15 seconds per instance.
34
+ * * **SLB_RT**: the average response time of the Internet-facing SLB instance within 15 seconds.
35
+ * * **INTRANET_SLB_QPS**: the average QPS of the internal-facing SLB instance within 15 seconds per instance.
36
+ * * **INTRANET_SLB_RT**: the average response time of the internal-facing SLB instance within 15 seconds.
37
+ *
12
38
  * @example
13
39
  * CPU
14
40
  */
15
41
  metricType?: string;
16
42
  /**
43
+ * @remarks
44
+ * The ID of the SLB instance.
45
+ *
17
46
  * @example
18
47
  * lb-xxx
19
48
  */
20
49
  slbId?: string;
21
50
  /**
51
+ * @remarks
52
+ * The Logstore that stores the SLB access logs.
53
+ *
22
54
  * @example
23
55
  * test
24
56
  */
25
57
  slbLogstore?: string;
26
58
  /**
59
+ * @remarks
60
+ * The project that stores the SLB access logs.
61
+ *
27
62
  * @example
28
63
  * test
29
64
  */
30
65
  slbProject?: string;
31
66
  /**
67
+ * @remarks
68
+ * The port number of the SLB instance.
69
+ *
32
70
  * @example
33
71
  * 80
34
72
  */
@@ -66,12 +104,22 @@ export class CreateApplicationScalingRuleResponseBodyDataMetricMetrics extends $
66
104
 
67
105
  export class CreateApplicationScalingRuleResponseBodyDataMetric extends $dara.Model {
68
106
  /**
107
+ * @remarks
108
+ * The maximum number of Elastic Compute Service (ECS) instances supported by the node pool.
109
+ *
69
110
  * @example
70
111
  * 3
71
112
  */
72
113
  maxReplicas?: number;
114
+ /**
115
+ * @remarks
116
+ * The metrics that are used to trigger the auto scaling policy.
117
+ */
73
118
  metrics?: CreateApplicationScalingRuleResponseBodyDataMetricMetrics[];
74
119
  /**
120
+ * @remarks
121
+ * The minimum number of instances.
122
+ *
75
123
  * @example
76
124
  * 1
77
125
  */
@@ -106,21 +154,33 @@ export class CreateApplicationScalingRuleResponseBodyDataMetric extends $dara.Mo
106
154
 
107
155
  export class CreateApplicationScalingRuleResponseBodyDataTimerSchedules extends $dara.Model {
108
156
  /**
157
+ * @remarks
158
+ * The point in time. Format: **Hour:Minute**.
159
+ *
109
160
  * @example
110
161
  * 08:00
111
162
  */
112
163
  atTime?: string;
113
164
  /**
165
+ * @remarks
166
+ * The maximum number of instances.
167
+ *
114
168
  * @example
115
169
  * 10
116
170
  */
117
171
  maxReplicas?: number;
118
172
  /**
173
+ * @remarks
174
+ * The minimum number of instances.
175
+ *
119
176
  * @example
120
177
  * 5
121
178
  */
122
179
  minReplicas?: number;
123
180
  /**
181
+ * @remarks
182
+ * The expected number of instances.
183
+ *
124
184
  * @example
125
185
  * 3
126
186
  */
@@ -154,20 +214,53 @@ export class CreateApplicationScalingRuleResponseBodyDataTimerSchedules extends
154
214
 
155
215
  export class CreateApplicationScalingRuleResponseBodyDataTimer extends $dara.Model {
156
216
  /**
217
+ * @remarks
218
+ * The start date of the validity period of the scheduled auto scaling policy.
219
+ *
220
+ * * **null** (default): If you set **BeginDate** and **EndDate** to null, the scheduled auto scaling policy can always be triggered.
221
+ * * If the two parameters are set to specific dates, the scheduled auto scaling policy can be triggered during the period between the two dates. For example, if **BeginDate** is set to 2021-03-25 and **EndDate** is set to 2021-04-25, the auto scaling policy is valid for one month.
222
+ *
157
223
  * @example
158
224
  * 2021-03-25
159
225
  */
160
226
  beginDate?: string;
161
227
  /**
228
+ * @remarks
229
+ * The end date of the validity period of the scheduled auto scaling policy.
230
+ *
231
+ * * **null** (default): If you set **BeginDate** and **EndDate** to null, the scheduled auto scaling policy can always be triggered.
232
+ * * If the two parameters are set to specific dates, the scheduled auto scaling policy can be triggered during the period between the two dates. For example, if **BeginDate** is set to 2021-03-25 and **EndDate** is set to 2021-04-25, the auto scaling policy is valid for one month.
233
+ *
162
234
  * @example
163
235
  * 2021-04-25
164
236
  */
165
237
  endDate?: string;
166
238
  /**
239
+ * @remarks
240
+ * The days on which the scheduled auto scaling policy takes effect. Valid values:
241
+ *
242
+ * * **\\* \\* \\***: The scheduled auto scaling policy is executed at a specified point in time every day.
243
+ *
244
+ * * **\\* \\* Fri,Mon**: The scheduled auto scaling policy is executed at a specified point in time on one or more days every week. The time must be in GMT+8. Valid values:
245
+ *
246
+ * * **Sun**: Sunday
247
+ * * **Mon**: Monday
248
+ * * **Tue**: Tuesday
249
+ * * **Wed**: Wednesday
250
+ * * **Thu**: Thursday
251
+ * * **Fri**: Friday
252
+ * * **Sat**: Saturday
253
+ *
254
+ * * **1,2,3,28,31 \\* \\***: The scheduled auto scaling policy is executed at a specified point in time on one or more dates of each month. Valid values: 1 to 31. If a month does not have the 31st day, the auto scaling policy is executed on the specified days other than the 31st day.
255
+ *
167
256
  * @example
168
257
  * * * *
169
258
  */
170
259
  period?: string;
260
+ /**
261
+ * @remarks
262
+ * The points in time at which the auto scaling policy is triggered within one day.
263
+ */
171
264
  schedules?: CreateApplicationScalingRuleResponseBodyDataTimerSchedules[];
172
265
  static names(): { [key: string]: string } {
173
266
  return {
@@ -201,39 +294,75 @@ export class CreateApplicationScalingRuleResponseBodyDataTimer extends $dara.Mod
201
294
 
202
295
  export class CreateApplicationScalingRuleResponseBodyData extends $dara.Model {
203
296
  /**
297
+ * @remarks
298
+ * null
299
+ *
204
300
  * @example
205
301
  * 7171a6ca-d1cd-4928-8642-7d5cfe69****
206
302
  */
207
303
  appId?: string;
208
304
  /**
305
+ * @remarks
306
+ * null null
307
+ *
209
308
  * @example
210
309
  * 1616642248938
211
310
  */
212
311
  createTime?: number;
213
312
  enableIdle?: boolean;
214
313
  /**
314
+ * @remarks
315
+ * null
316
+ *
215
317
  * @example
216
318
  * 1641882854484
217
319
  */
218
320
  lastDisableTime?: number;
321
+ /**
322
+ * @remarks
323
+ * The details of the metric-based auto scaling policy.
324
+ */
219
325
  metric?: CreateApplicationScalingRuleResponseBodyDataMetric;
220
326
  /**
327
+ * @remarks
328
+ * null null
329
+ *
330
+ * * **null**
331
+ * * **null**
332
+ *
221
333
  * @example
222
334
  * true
223
335
  */
224
336
  scaleRuleEnabled?: boolean;
225
337
  /**
338
+ * @remarks
339
+ * The name of the auto scaling policy.
340
+ *
226
341
  * @example
227
342
  * test
228
343
  */
229
344
  scaleRuleName?: string;
230
345
  /**
346
+ * @remarks
347
+ * null null
348
+ *
349
+ * * **null**
350
+ * * **metric**: a metric-based auto scaling policy.
351
+ * * **mix**: a hybrid auto scaling policy.
352
+ *
231
353
  * @example
232
354
  * timing
233
355
  */
234
356
  scaleRuleType?: string;
357
+ /**
358
+ * @remarks
359
+ * The details of the scheduled auto scaling policy.
360
+ */
235
361
  timer?: CreateApplicationScalingRuleResponseBodyDataTimer;
236
362
  /**
363
+ * @remarks
364
+ * null null
365
+ *
237
366
  * @example
238
367
  * 1616642248938
239
368
  */
@@ -285,28 +414,65 @@ export class CreateApplicationScalingRuleResponseBodyData extends $dara.Model {
285
414
 
286
415
  export class CreateApplicationScalingRuleResponseBody extends $dara.Model {
287
416
  /**
417
+ * @remarks
418
+ * The HTTP status code or the error code. Valid values:
419
+ *
420
+ * * **2xx**: The request was successful.
421
+ * * **3xx**: The request was redirected.
422
+ * * **4xx**: The request failed.
423
+ * * **5xx**: A server error occurred.
424
+ *
288
425
  * @example
289
426
  * 200
290
427
  */
291
428
  code?: string;
429
+ /**
430
+ * @remarks
431
+ * The returned result.
432
+ */
292
433
  data?: CreateApplicationScalingRuleResponseBodyData;
434
+ /**
435
+ * @remarks
436
+ * The status code. Value values:
437
+ *
438
+ * * If the request was successful, **ErrorCode** is not returned.
439
+ * * If the request failed, **ErrorCode** is returned. For more information, see **Error codes** in this topic.
440
+ */
293
441
  errorCode?: string;
294
442
  /**
443
+ * @remarks
444
+ * The message returned. The following limits are imposed on the ID:
445
+ *
446
+ * * If the request was successful, **success** is returned.
447
+ * * An error code is returned when a request failed.
448
+ *
295
449
  * @example
296
450
  * success
297
451
  */
298
452
  message?: string;
299
453
  /**
454
+ * @remarks
455
+ * Request ID.
456
+ *
300
457
  * @example
301
458
  * 91F93257-7A4A-4BD3-9A7E-2F6EAE6D****
302
459
  */
303
460
  requestId?: string;
304
461
  /**
462
+ * @remarks
463
+ * Indicates whether the application instances were restarted. Valid values:
464
+ *
465
+ * * **true**: The application instances were restarted.
466
+ * * **false**: The application instances failed to be restarted.
467
+ *
305
468
  * @example
306
469
  * true
307
470
  */
308
471
  success?: boolean;
309
472
  /**
473
+ * @remarks
474
+ * The ID of the trace. The ID is used to query the details of a request.
475
+ *
310
476
  * @example
311
477
  * 0a98a02315955564772843261e****
312
478
  */
@@ -19,6 +19,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
19
19
  * cri-xxxxxx
20
20
  */
21
21
  acrInstanceId?: string;
22
+ agentVersion?: string;
22
23
  /**
23
24
  * @remarks
24
25
  * The description of the template. The description cannot exceed 1,024 characters in length.
@@ -223,6 +224,8 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
223
224
  * false
224
225
  */
225
226
  enableEbpf?: string;
227
+ enableNamespaceAgentVersion?: boolean;
228
+ enableNamespaceSlsConfig?: boolean;
226
229
  /**
227
230
  * @remarks
228
231
  * Indicates whether to enable the new ARMS feature:
@@ -845,6 +848,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
845
848
  return {
846
849
  acrAssumeRoleArn: 'AcrAssumeRoleArn',
847
850
  acrInstanceId: 'AcrInstanceId',
851
+ agentVersion: 'AgentVersion',
848
852
  appDescription: 'AppDescription',
849
853
  appName: 'AppName',
850
854
  appSource: 'AppSource',
@@ -864,6 +868,8 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
864
868
  emptyDirDesc: 'EmptyDirDesc',
865
869
  enableCpuBurst: 'EnableCpuBurst',
866
870
  enableEbpf: 'EnableEbpf',
871
+ enableNamespaceAgentVersion: 'EnableNamespaceAgentVersion',
872
+ enableNamespaceSlsConfig: 'EnableNamespaceSlsConfig',
867
873
  enableNewArms: 'EnableNewArms',
868
874
  enablePrometheus: 'EnablePrometheus',
869
875
  enableSidecarResourceIsolated: 'EnableSidecarResourceIsolated',
@@ -931,6 +937,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
931
937
  return {
932
938
  acrAssumeRoleArn: 'string',
933
939
  acrInstanceId: 'string',
940
+ agentVersion: 'string',
934
941
  appDescription: 'string',
935
942
  appName: 'string',
936
943
  appSource: 'string',
@@ -950,6 +957,8 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
950
957
  emptyDirDesc: 'string',
951
958
  enableCpuBurst: 'boolean',
952
959
  enableEbpf: 'string',
960
+ enableNamespaceAgentVersion: 'boolean',
961
+ enableNamespaceSlsConfig: 'boolean',
953
962
  enableNewArms: 'boolean',
954
963
  enablePrometheus: 'boolean',
955
964
  enableSidecarResourceIsolated: 'boolean',