@alicloud/sae20190506 2.9.0 → 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 (77) hide show
  1. package/dist/client.d.ts +16 -14
  2. package/dist/client.js +31 -14
  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/CreateSecretRequest.d.ts +12 -0
  18. package/dist/models/CreateSecretRequest.js.map +1 -1
  19. package/dist/models/CreateSecretResponseBody.d.ts +40 -0
  20. package/dist/models/CreateSecretResponseBody.js.map +1 -1
  21. package/dist/models/CreateSecretShrinkRequest.d.ts +12 -0
  22. package/dist/models/CreateSecretShrinkRequest.js.map +1 -1
  23. package/dist/models/DeployApplicationRequest.d.ts +2 -0
  24. package/dist/models/DeployApplicationRequest.js +4 -0
  25. package/dist/models/DeployApplicationRequest.js.map +1 -1
  26. package/dist/models/DeployApplicationShrinkRequest.d.ts +2 -0
  27. package/dist/models/DeployApplicationShrinkRequest.js +4 -0
  28. package/dist/models/DeployApplicationShrinkRequest.js.map +1 -1
  29. package/dist/models/DescribeApplicationConfigResponseBody.d.ts +2 -0
  30. package/dist/models/DescribeApplicationConfigResponseBody.js +4 -0
  31. package/dist/models/DescribeApplicationConfigResponseBody.js.map +1 -1
  32. package/dist/models/DescribeNamespaceResourcesResponseBody.d.ts +1 -0
  33. package/dist/models/DescribeNamespaceResourcesResponseBody.js +2 -0
  34. package/dist/models/DescribeNamespaceResourcesResponseBody.js.map +1 -1
  35. package/dist/models/DowngradeApplicationApmServiceRequest.d.ts +2 -0
  36. package/dist/models/DowngradeApplicationApmServiceRequest.js.map +1 -1
  37. package/dist/models/DowngradeApplicationApmServiceResponseBody.d.ts +41 -0
  38. package/dist/models/DowngradeApplicationApmServiceResponseBody.js.map +1 -1
  39. package/dist/models/GetWebshellTokenRequest.d.ts +6 -2
  40. package/dist/models/GetWebshellTokenRequest.js.map +1 -1
  41. package/dist/models/GetWebshellTokenResponseBody.d.ts +43 -1
  42. package/dist/models/GetWebshellTokenResponseBody.js.map +1 -1
  43. package/dist/models/UpdateApplicationDescriptionRequest.d.ts +4 -0
  44. package/dist/models/UpdateApplicationDescriptionRequest.js.map +1 -1
  45. package/dist/models/UpdateApplicationDescriptionResponseBody.d.ts +36 -0
  46. package/dist/models/UpdateApplicationDescriptionResponseBody.js.map +1 -1
  47. package/dist/models/UpdateIngressRequest.d.ts +12 -12
  48. package/dist/models/UpdateIngressResponseBody.d.ts +11 -11
  49. package/dist/models/UpgradeApplicationApmServiceRequest.d.ts +2 -0
  50. package/dist/models/UpgradeApplicationApmServiceRequest.js.map +1 -1
  51. package/dist/models/UpgradeApplicationApmServiceResponseBody.d.ts +43 -0
  52. package/dist/models/UpgradeApplicationApmServiceResponseBody.js.map +1 -1
  53. package/package.json +1 -1
  54. package/src/client.ts +36 -14
  55. package/src/models/CreateApplicationRequest.ts +9 -0
  56. package/src/models/CreateApplicationScalingRuleRequest.ts +134 -0
  57. package/src/models/CreateApplicationScalingRuleResponseBody.ts +166 -0
  58. package/src/models/CreateApplicationShrinkRequest.ts +9 -0
  59. package/src/models/CreateIngressRequest.ts +30 -26
  60. package/src/models/CreateIngressResponseBody.ts +15 -15
  61. package/src/models/CreateSecretRequest.ts +12 -0
  62. package/src/models/CreateSecretResponseBody.ts +40 -0
  63. package/src/models/CreateSecretShrinkRequest.ts +12 -0
  64. package/src/models/DeployApplicationRequest.ts +6 -0
  65. package/src/models/DeployApplicationShrinkRequest.ts +6 -0
  66. package/src/models/DescribeApplicationConfigResponseBody.ts +6 -0
  67. package/src/models/DescribeNamespaceResourcesResponseBody.ts +3 -0
  68. package/src/models/DowngradeApplicationApmServiceRequest.ts +2 -0
  69. package/src/models/DowngradeApplicationApmServiceResponseBody.ts +41 -0
  70. package/src/models/GetWebshellTokenRequest.ts +6 -2
  71. package/src/models/GetWebshellTokenResponseBody.ts +43 -1
  72. package/src/models/UpdateApplicationDescriptionRequest.ts +4 -0
  73. package/src/models/UpdateApplicationDescriptionResponseBody.ts +36 -0
  74. package/src/models/UpdateIngressRequest.ts +12 -12
  75. package/src/models/UpdateIngressResponseBody.ts +11 -11
  76. package/src/models/UpgradeApplicationApmServiceRequest.ts +2 -0
  77. package/src/models/UpgradeApplicationApmServiceResponseBody.ts +43 -0
@@ -1,6 +1,12 @@
1
1
  import * as $dara from '@darabonba/typescript';
2
2
  export declare class UpgradeApplicationApmServiceResponseBodyData extends $dara.Model {
3
3
  /**
4
+ * @remarks
5
+ * Indicates whether ARMS advanced monitoring is enabled. Valid values:
6
+ *
7
+ * * **true**
8
+ * * **false**
9
+ *
4
10
  * @example
5
11
  * true
6
12
  */
@@ -18,28 +24,65 @@ export declare class UpgradeApplicationApmServiceResponseBodyData extends $dara.
18
24
  }
19
25
  export declare class UpgradeApplicationApmServiceResponseBody extends $dara.Model {
20
26
  /**
27
+ * @remarks
28
+ * The HTTP status code or the error code. Valid values:
29
+ *
30
+ * * **2xx**: The request was successful.
31
+ * * **3xx**: The request was redirected.
32
+ * * **4xx**: The request failed.
33
+ * * **5xx**: A server error occurred.
34
+ *
21
35
  * @example
22
36
  * 200
23
37
  */
24
38
  code?: string;
39
+ /**
40
+ * @remarks
41
+ * The returned result.
42
+ */
25
43
  data?: UpgradeApplicationApmServiceResponseBodyData;
26
44
  /**
45
+ * @remarks
46
+ * The status code. Value values:
47
+ *
48
+ * * If the request was successful, **ErrorCode** is not returned.
49
+ * * If the request failed, **ErrorCode** is returned. For more information, see **Error codes** in this topic.
50
+ *
27
51
  * @example
28
52
  * success
29
53
  */
30
54
  errorCode?: string;
31
55
  /**
56
+ * @remarks
57
+ * The message returned. The following limits are imposed on the ID:
58
+ *
59
+ * * If the request was successful, **success** is returned.
60
+ * * An error code is returned when a request failed.
61
+ *
32
62
  * @example
33
63
  * success
34
64
  */
35
65
  message?: string;
36
66
  /**
67
+ * @remarks
68
+ * Request ID.
69
+ *
37
70
  * @example
38
71
  * 91F93257-7A4A-4BD3-9A7E-2F6EAE6D****
39
72
  */
40
73
  requestId?: string;
74
+ /**
75
+ * @remarks
76
+ * Indicates whether the request was successful. Valid values:
77
+ *
78
+ * * **true**
79
+ * * **false**
80
+ */
41
81
  success?: boolean;
42
82
  /**
83
+ * @remarks
84
+ * The ID of the trace. The ID is used to query the details of a request.
85
+ *
43
86
  * @example
44
87
  * 0a98a02315955564772843261e****
45
88
  */
@@ -1 +1 @@
1
- {"version":3,"file":"UpgradeApplicationApmServiceResponseBody.js","sourceRoot":"","sources":["../../src/models/UpgradeApplicationApmServiceResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4CAA6C,SAAQ,KAAK,CAAC,KAAK;IAM3E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,SAAS;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzBD,oGAyBC;AAED,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IA4BvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,4CAA4C;YAClD,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9DD,4FA8DC"}
1
+ {"version":3,"file":"UpgradeApplicationApmServiceResponseBody.js","sourceRoot":"","sources":["../../src/models/UpgradeApplicationApmServiceResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4CAA6C,SAAQ,KAAK,CAAC,KAAK;IAY3E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,SAAS;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/BD,oGA+BC;AAED,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAiEvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,4CAA4C;YAClD,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnGD,4FAmGC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/sae20190506",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -478,6 +478,10 @@ export default class Client extends OpenApi {
478
478
  query["AcrAssumeRoleArn"] = request.acrAssumeRoleArn;
479
479
  }
480
480
 
481
+ if (!$dara.isNull(request.agentVersion)) {
482
+ query["AgentVersion"] = request.agentVersion;
483
+ }
484
+
481
485
  if (!$dara.isNull(request.appDescription)) {
482
486
  query["AppDescription"] = request.appDescription;
483
487
  }
@@ -538,6 +542,14 @@ export default class Client extends OpenApi {
538
542
  query["EnableEbpf"] = request.enableEbpf;
539
543
  }
540
544
 
545
+ if (!$dara.isNull(request.enableNamespaceAgentVersion)) {
546
+ query["EnableNamespaceAgentVersion"] = request.enableNamespaceAgentVersion;
547
+ }
548
+
549
+ if (!$dara.isNull(request.enableNamespaceSlsConfig)) {
550
+ query["EnableNamespaceSlsConfig"] = request.enableNamespaceSlsConfig;
551
+ }
552
+
541
553
  if (!$dara.isNull(request.enableNewArms)) {
542
554
  query["EnableNewArms"] = request.enableNewArms;
543
555
  }
@@ -831,14 +843,15 @@ export default class Client extends OpenApi {
831
843
  }
832
844
 
833
845
  /**
834
- * Null
846
+ * Creates an auto scaling policy for an application.
835
847
  *
836
848
  * @remarks
837
- * The HTTP status code. Take note of the following rules:
838
- * * **2xx**: The call was successful.
839
- * * **3xx**: The call was redirected.
840
- * * **4xx**: The call failed.
841
- * * **5xx**: A server error occurred.
849
+ * ## [](#)Precautions
850
+ * * You can create up to five auto scaling policies for one application.
851
+ * * You can create up to 20 trigger points within one day in a scheduled auto scaling policy.
852
+ * * If an auto scaling policy is enabled for an application, you cannot manually manage the lifecycle of the application. For example, you cannot scale, deploy (including single-batch release, phased release, and canary release), stop, or restart the application, or change the instance type. If you want to perform the preceding operations on the application, disable the auto scaling policy and then manually perform the operations.
853
+ * * If an application is in the process of scale-out, scale-in, deployment (including single-batch release, phased release, and canary release), instance type change, restart, or stop, you cannot add or enable an auto scaling policy for the application.
854
+ * * If you want to configure more than 50 instances for an application, you must contact SAE technical support to add your account to the whitelist. For more information, see [Contact us](https://help.aliyun.com/document_detail/146530.html).
842
855
  *
843
856
  * @param request - CreateApplicationScalingRuleRequest
844
857
  * @param headers - map
@@ -903,14 +916,15 @@ export default class Client extends OpenApi {
903
916
  }
904
917
 
905
918
  /**
906
- * Null
919
+ * Creates an auto scaling policy for an application.
907
920
  *
908
921
  * @remarks
909
- * The HTTP status code. Take note of the following rules:
910
- * * **2xx**: The call was successful.
911
- * * **3xx**: The call was redirected.
912
- * * **4xx**: The call failed.
913
- * * **5xx**: A server error occurred.
922
+ * ## [](#)Precautions
923
+ * * You can create up to five auto scaling policies for one application.
924
+ * * You can create up to 20 trigger points within one day in a scheduled auto scaling policy.
925
+ * * If an auto scaling policy is enabled for an application, you cannot manually manage the lifecycle of the application. For example, you cannot scale, deploy (including single-batch release, phased release, and canary release), stop, or restart the application, or change the instance type. If you want to perform the preceding operations on the application, disable the auto scaling policy and then manually perform the operations.
926
+ * * If an application is in the process of scale-out, scale-in, deployment (including single-batch release, phased release, and canary release), instance type change, restart, or stop, you cannot add or enable an auto scaling policy for the application.
927
+ * * If you want to configure more than 50 instances for an application, you must contact SAE technical support to add your account to the whitelist. For more information, see [Contact us](https://help.aliyun.com/document_detail/146530.html).
914
928
  *
915
929
  * @param request - CreateApplicationScalingRuleRequest
916
930
  * @returns CreateApplicationScalingRuleResponse
@@ -2540,6 +2554,10 @@ export default class Client extends OpenApi {
2540
2554
  query["AcrAssumeRoleArn"] = request.acrAssumeRoleArn;
2541
2555
  }
2542
2556
 
2557
+ if (!$dara.isNull(request.agentVersion)) {
2558
+ query["AgentVersion"] = request.agentVersion;
2559
+ }
2560
+
2543
2561
  if (!$dara.isNull(request.albIngressReadinessGate)) {
2544
2562
  query["AlbIngressReadinessGate"] = request.albIngressReadinessGate;
2545
2563
  }
@@ -2604,6 +2622,10 @@ export default class Client extends OpenApi {
2604
2622
  query["EnableGreyTagRoute"] = request.enableGreyTagRoute;
2605
2623
  }
2606
2624
 
2625
+ if (!$dara.isNull(request.enableNamespaceAgentVersion)) {
2626
+ query["EnableNamespaceAgentVersion"] = request.enableNamespaceAgentVersion;
2627
+ }
2628
+
2607
2629
  if (!$dara.isNull(request.enableNewArms)) {
2608
2630
  query["EnableNewArms"] = request.enableNewArms;
2609
2631
  }
@@ -9154,7 +9176,7 @@ export default class Client extends OpenApi {
9154
9176
  * Enables the advanced monitoring feature of Application Real-Time Monitoring Service (ARMS).
9155
9177
  *
9156
9178
  * @remarks
9157
- * You are charged when you use the ARMS advanced monitoring feature. Enable this feature based on your business requirements. For more information, see [Billing overview](https://icms.alibaba-inc.com/content/arms/arms?l=1\\&m=16992\\&n=3183148).
9179
+ * You are charged when you use the ARMS advanced monitoring feature. Enable this feature based on your business requirements. For more information, see [Billing overview](https://www.alibabacloud.com/help/zh/arms/application-monitoring/product-overview/billing-overview-1).
9158
9180
  *
9159
9181
  * @param request - UpgradeApplicationApmServiceRequest
9160
9182
  * @param headers - map
@@ -9190,7 +9212,7 @@ export default class Client extends OpenApi {
9190
9212
  * Enables the advanced monitoring feature of Application Real-Time Monitoring Service (ARMS).
9191
9213
  *
9192
9214
  * @remarks
9193
- * You are charged when you use the ARMS advanced monitoring feature. Enable this feature based on your business requirements. For more information, see [Billing overview](https://icms.alibaba-inc.com/content/arms/arms?l=1\\&m=16992\\&n=3183148).
9215
+ * You are charged when you use the ARMS advanced monitoring feature. Enable this feature based on your business requirements. For more information, see [Billing overview](https://www.alibabacloud.com/help/zh/arms/application-monitoring/product-overview/billing-overview-1).
9194
9216
  *
9195
9217
  * @param request - UpgradeApplicationApmServiceRequest
9196
9218
  * @returns UpgradeApplicationApmServiceResponse
@@ -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