@alicloud/ess20220222 1.9.0 → 1.10.0

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 (81) hide show
  1. package/dist/client.d.ts +66 -0
  2. package/dist/client.js +333 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeInstanceCreateAndDeleteStatisticsRequest.d.ts +45 -0
  5. package/dist/models/DescribeInstanceCreateAndDeleteStatisticsRequest.js +70 -0
  6. package/dist/models/DescribeInstanceCreateAndDeleteStatisticsRequest.js.map +1 -0
  7. package/dist/models/DescribeInstanceCreateAndDeleteStatisticsResponse.d.ts +19 -0
  8. package/dist/models/DescribeInstanceCreateAndDeleteStatisticsResponse.js +69 -0
  9. package/dist/models/DescribeInstanceCreateAndDeleteStatisticsResponse.js.map +1 -0
  10. package/dist/models/DescribeInstanceCreateAndDeleteStatisticsResponseBody.d.ts +69 -0
  11. package/dist/models/DescribeInstanceCreateAndDeleteStatisticsResponseBody.js +112 -0
  12. package/dist/models/DescribeInstanceCreateAndDeleteStatisticsResponseBody.js.map +1 -0
  13. package/dist/models/DescribeScalingActivityStatisticsRequest.d.ts +50 -0
  14. package/dist/models/DescribeScalingActivityStatisticsRequest.js +72 -0
  15. package/dist/models/DescribeScalingActivityStatisticsRequest.js.map +1 -0
  16. package/dist/models/DescribeScalingActivityStatisticsResponse.d.ts +19 -0
  17. package/dist/models/DescribeScalingActivityStatisticsResponse.js +69 -0
  18. package/dist/models/DescribeScalingActivityStatisticsResponse.js.map +1 -0
  19. package/dist/models/DescribeScalingActivityStatisticsResponseBody.d.ts +105 -0
  20. package/dist/models/DescribeScalingActivityStatisticsResponseBody.js +160 -0
  21. package/dist/models/DescribeScalingActivityStatisticsResponseBody.js.map +1 -0
  22. package/dist/models/QueryHistoricalMetricRequest.d.ts +56 -0
  23. package/dist/models/QueryHistoricalMetricRequest.js +72 -0
  24. package/dist/models/QueryHistoricalMetricRequest.js.map +1 -0
  25. package/dist/models/QueryHistoricalMetricResponse.d.ts +19 -0
  26. package/dist/models/QueryHistoricalMetricResponse.js +69 -0
  27. package/dist/models/QueryHistoricalMetricResponse.js.map +1 -0
  28. package/dist/models/QueryHistoricalMetricResponseBody.d.ts +54 -0
  29. package/dist/models/QueryHistoricalMetricResponseBody.js +106 -0
  30. package/dist/models/QueryHistoricalMetricResponseBody.js.map +1 -0
  31. package/dist/models/QueryPredictiveMetricRequest.d.ts +56 -0
  32. package/dist/models/QueryPredictiveMetricRequest.js +72 -0
  33. package/dist/models/QueryPredictiveMetricRequest.js.map +1 -0
  34. package/dist/models/QueryPredictiveMetricResponse.d.ts +19 -0
  35. package/dist/models/QueryPredictiveMetricResponse.js +69 -0
  36. package/dist/models/QueryPredictiveMetricResponse.js.map +1 -0
  37. package/dist/models/QueryPredictiveMetricResponseBody.d.ts +54 -0
  38. package/dist/models/QueryPredictiveMetricResponseBody.js +106 -0
  39. package/dist/models/QueryPredictiveMetricResponseBody.js.map +1 -0
  40. package/dist/models/QueryPredictiveTaskInfoRequest.d.ts +48 -0
  41. package/dist/models/QueryPredictiveTaskInfoRequest.js +70 -0
  42. package/dist/models/QueryPredictiveTaskInfoRequest.js.map +1 -0
  43. package/dist/models/QueryPredictiveTaskInfoResponse.d.ts +19 -0
  44. package/dist/models/QueryPredictiveTaskInfoResponse.js +69 -0
  45. package/dist/models/QueryPredictiveTaskInfoResponse.js.map +1 -0
  46. package/dist/models/QueryPredictiveTaskInfoResponseBody.d.ts +59 -0
  47. package/dist/models/QueryPredictiveTaskInfoResponseBody.js +108 -0
  48. package/dist/models/QueryPredictiveTaskInfoResponseBody.js.map +1 -0
  49. package/dist/models/QueryPredictiveValueRequest.d.ts +64 -0
  50. package/dist/models/QueryPredictiveValueRequest.js +74 -0
  51. package/dist/models/QueryPredictiveValueRequest.js.map +1 -0
  52. package/dist/models/QueryPredictiveValueResponse.d.ts +19 -0
  53. package/dist/models/QueryPredictiveValueResponse.js +69 -0
  54. package/dist/models/QueryPredictiveValueResponse.js.map +1 -0
  55. package/dist/models/QueryPredictiveValueResponseBody.d.ts +54 -0
  56. package/dist/models/QueryPredictiveValueResponseBody.js +106 -0
  57. package/dist/models/QueryPredictiveValueResponseBody.js.map +1 -0
  58. package/dist/models/model.d.ts +32 -0
  59. package/dist/models/model.js +74 -10
  60. package/dist/models/model.js.map +1 -1
  61. package/package.json +1 -1
  62. package/src/client.ts +392 -0
  63. package/src/models/DescribeInstanceCreateAndDeleteStatisticsRequest.ts +70 -0
  64. package/src/models/DescribeInstanceCreateAndDeleteStatisticsResponse.ts +40 -0
  65. package/src/models/DescribeInstanceCreateAndDeleteStatisticsResponseBody.ts +118 -0
  66. package/src/models/DescribeScalingActivityStatisticsRequest.ts +77 -0
  67. package/src/models/DescribeScalingActivityStatisticsResponse.ts +40 -0
  68. package/src/models/DescribeScalingActivityStatisticsResponseBody.ts +184 -0
  69. package/src/models/QueryHistoricalMetricRequest.ts +83 -0
  70. package/src/models/QueryHistoricalMetricResponse.ts +40 -0
  71. package/src/models/QueryHistoricalMetricResponseBody.ts +97 -0
  72. package/src/models/QueryPredictiveMetricRequest.ts +83 -0
  73. package/src/models/QueryPredictiveMetricResponse.ts +40 -0
  74. package/src/models/QueryPredictiveMetricResponseBody.ts +97 -0
  75. package/src/models/QueryPredictiveTaskInfoRequest.ts +73 -0
  76. package/src/models/QueryPredictiveTaskInfoResponse.ts +40 -0
  77. package/src/models/QueryPredictiveTaskInfoResponseBody.ts +104 -0
  78. package/src/models/QueryPredictiveValueRequest.ts +93 -0
  79. package/src/models/QueryPredictiveValueResponse.ts +40 -0
  80. package/src/models/QueryPredictiveValueResponseBody.ts +97 -0
  81. package/src/models/model.ts +32 -0
@@ -0,0 +1,77 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeScalingActivityStatisticsRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * 2025-12-18T08:00Z
12
+ */
13
+ endTime?: string;
14
+ /**
15
+ * @example
16
+ * ScalingActivityStatus
17
+ */
18
+ metricType?: string;
19
+ ownerId?: number;
20
+ /**
21
+ * @remarks
22
+ * This parameter is required.
23
+ *
24
+ * @example
25
+ * cn-hangzhou
26
+ */
27
+ regionId?: string;
28
+ resourceOwnerAccount?: string;
29
+ resourceOwnerId?: number;
30
+ /**
31
+ * @example
32
+ * asg-8vbje5pofxxxxxxxx
33
+ */
34
+ scalingGroupId?: string;
35
+ /**
36
+ * @remarks
37
+ * This parameter is required.
38
+ *
39
+ * @example
40
+ * 2025-12-15T08:00Z
41
+ */
42
+ startTime?: string;
43
+ static names(): { [key: string]: string } {
44
+ return {
45
+ endTime: 'EndTime',
46
+ metricType: 'MetricType',
47
+ ownerId: 'OwnerId',
48
+ regionId: 'RegionId',
49
+ resourceOwnerAccount: 'ResourceOwnerAccount',
50
+ resourceOwnerId: 'ResourceOwnerId',
51
+ scalingGroupId: 'ScalingGroupId',
52
+ startTime: 'StartTime',
53
+ };
54
+ }
55
+
56
+ static types(): { [key: string]: any } {
57
+ return {
58
+ endTime: 'string',
59
+ metricType: 'string',
60
+ ownerId: 'number',
61
+ regionId: 'string',
62
+ resourceOwnerAccount: 'string',
63
+ resourceOwnerId: 'number',
64
+ scalingGroupId: 'string',
65
+ startTime: 'string',
66
+ };
67
+ }
68
+
69
+ validate() {
70
+ super.validate();
71
+ }
72
+
73
+ constructor(map?: { [key: string]: any }) {
74
+ super(map);
75
+ }
76
+ }
77
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DescribeScalingActivityStatisticsResponseBody } from "./DescribeScalingActivityStatisticsResponseBody";
4
+
5
+
6
+ export class DescribeScalingActivityStatisticsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribeScalingActivityStatisticsResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: DescribeScalingActivityStatisticsResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,184 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeScalingActivityStatisticsResponseBodyScalingActivityErrorCodeStatisticsErrorStatistic extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 4
9
+ */
10
+ count?: number;
11
+ /**
12
+ * @example
13
+ * QuotaExceeded.PrivateIpAddress
14
+ */
15
+ errorCode?: string;
16
+ /**
17
+ * @example
18
+ * 2025121623
19
+ */
20
+ time?: string;
21
+ static names(): { [key: string]: string } {
22
+ return {
23
+ count: 'Count',
24
+ errorCode: 'ErrorCode',
25
+ time: 'Time',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ count: 'number',
32
+ errorCode: 'string',
33
+ time: 'string',
34
+ };
35
+ }
36
+
37
+ validate() {
38
+ super.validate();
39
+ }
40
+
41
+ constructor(map?: { [key: string]: any }) {
42
+ super(map);
43
+ }
44
+ }
45
+
46
+ export class DescribeScalingActivityStatisticsResponseBodyScalingActivityErrorCodeStatistics extends $dara.Model {
47
+ errorStatistic?: DescribeScalingActivityStatisticsResponseBodyScalingActivityErrorCodeStatisticsErrorStatistic[];
48
+ static names(): { [key: string]: string } {
49
+ return {
50
+ errorStatistic: 'ErrorStatistic',
51
+ };
52
+ }
53
+
54
+ static types(): { [key: string]: any } {
55
+ return {
56
+ errorStatistic: { 'type': 'array', 'itemType': DescribeScalingActivityStatisticsResponseBodyScalingActivityErrorCodeStatisticsErrorStatistic },
57
+ };
58
+ }
59
+
60
+ validate() {
61
+ if(Array.isArray(this.errorStatistic)) {
62
+ $dara.Model.validateArray(this.errorStatistic);
63
+ }
64
+ super.validate();
65
+ }
66
+
67
+ constructor(map?: { [key: string]: any }) {
68
+ super(map);
69
+ }
70
+ }
71
+
72
+ export class DescribeScalingActivityStatisticsResponseBodyScalingActivityStatusStatisticsStatistic extends $dara.Model {
73
+ /**
74
+ * @example
75
+ * 1
76
+ */
77
+ failedActivityCount?: number;
78
+ /**
79
+ * @example
80
+ * 10
81
+ */
82
+ successActivityCount?: number;
83
+ /**
84
+ * @example
85
+ * 2025121623
86
+ */
87
+ time?: string;
88
+ /**
89
+ * @example
90
+ * 2
91
+ */
92
+ warningActivityCount?: number;
93
+ static names(): { [key: string]: string } {
94
+ return {
95
+ failedActivityCount: 'FailedActivityCount',
96
+ successActivityCount: 'SuccessActivityCount',
97
+ time: 'Time',
98
+ warningActivityCount: 'WarningActivityCount',
99
+ };
100
+ }
101
+
102
+ static types(): { [key: string]: any } {
103
+ return {
104
+ failedActivityCount: 'number',
105
+ successActivityCount: 'number',
106
+ time: 'string',
107
+ warningActivityCount: 'number',
108
+ };
109
+ }
110
+
111
+ validate() {
112
+ super.validate();
113
+ }
114
+
115
+ constructor(map?: { [key: string]: any }) {
116
+ super(map);
117
+ }
118
+ }
119
+
120
+ export class DescribeScalingActivityStatisticsResponseBodyScalingActivityStatusStatistics extends $dara.Model {
121
+ statistic?: DescribeScalingActivityStatisticsResponseBodyScalingActivityStatusStatisticsStatistic[];
122
+ static names(): { [key: string]: string } {
123
+ return {
124
+ statistic: 'Statistic',
125
+ };
126
+ }
127
+
128
+ static types(): { [key: string]: any } {
129
+ return {
130
+ statistic: { 'type': 'array', 'itemType': DescribeScalingActivityStatisticsResponseBodyScalingActivityStatusStatisticsStatistic },
131
+ };
132
+ }
133
+
134
+ validate() {
135
+ if(Array.isArray(this.statistic)) {
136
+ $dara.Model.validateArray(this.statistic);
137
+ }
138
+ super.validate();
139
+ }
140
+
141
+ constructor(map?: { [key: string]: any }) {
142
+ super(map);
143
+ }
144
+ }
145
+
146
+ export class DescribeScalingActivityStatisticsResponseBody extends $dara.Model {
147
+ /**
148
+ * @example
149
+ * A8F44B4D-BAB4-5176-8705-5984xxxxx
150
+ */
151
+ requestId?: string;
152
+ scalingActivityErrorCodeStatistics?: DescribeScalingActivityStatisticsResponseBodyScalingActivityErrorCodeStatistics;
153
+ scalingActivityStatusStatistics?: DescribeScalingActivityStatisticsResponseBodyScalingActivityStatusStatistics;
154
+ static names(): { [key: string]: string } {
155
+ return {
156
+ requestId: 'RequestId',
157
+ scalingActivityErrorCodeStatistics: 'ScalingActivityErrorCodeStatistics',
158
+ scalingActivityStatusStatistics: 'ScalingActivityStatusStatistics',
159
+ };
160
+ }
161
+
162
+ static types(): { [key: string]: any } {
163
+ return {
164
+ requestId: 'string',
165
+ scalingActivityErrorCodeStatistics: DescribeScalingActivityStatisticsResponseBodyScalingActivityErrorCodeStatistics,
166
+ scalingActivityStatusStatistics: DescribeScalingActivityStatisticsResponseBodyScalingActivityStatusStatistics,
167
+ };
168
+ }
169
+
170
+ validate() {
171
+ if(this.scalingActivityErrorCodeStatistics && typeof (this.scalingActivityErrorCodeStatistics as any).validate === 'function') {
172
+ (this.scalingActivityErrorCodeStatistics as any).validate();
173
+ }
174
+ if(this.scalingActivityStatusStatistics && typeof (this.scalingActivityStatusStatistics as any).validate === 'function') {
175
+ (this.scalingActivityStatusStatistics as any).validate();
176
+ }
177
+ super.validate();
178
+ }
179
+
180
+ constructor(map?: { [key: string]: any }) {
181
+ super(map);
182
+ }
183
+ }
184
+
@@ -0,0 +1,83 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class QueryHistoricalMetricRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * 2025-12-18T08:00Z
12
+ */
13
+ endTime?: string;
14
+ /**
15
+ * @remarks
16
+ * This parameter is required.
17
+ *
18
+ * @example
19
+ * CpuUtilization
20
+ */
21
+ metricName?: string;
22
+ ownerId?: number;
23
+ /**
24
+ * @remarks
25
+ * This parameter is required.
26
+ *
27
+ * @example
28
+ * cn-hangzhou
29
+ */
30
+ regionId?: string;
31
+ resourceOwnerAccount?: string;
32
+ resourceOwnerId?: number;
33
+ /**
34
+ * @remarks
35
+ * This parameter is required.
36
+ *
37
+ * @example
38
+ * asg-bp15oubotmrq11xe****
39
+ */
40
+ scalingGroupId?: string;
41
+ /**
42
+ * @remarks
43
+ * This parameter is required.
44
+ *
45
+ * @example
46
+ * 2025-12-17T08:00Z
47
+ */
48
+ startTime?: string;
49
+ static names(): { [key: string]: string } {
50
+ return {
51
+ endTime: 'EndTime',
52
+ metricName: 'MetricName',
53
+ ownerId: 'OwnerId',
54
+ regionId: 'RegionId',
55
+ resourceOwnerAccount: 'ResourceOwnerAccount',
56
+ resourceOwnerId: 'ResourceOwnerId',
57
+ scalingGroupId: 'ScalingGroupId',
58
+ startTime: 'StartTime',
59
+ };
60
+ }
61
+
62
+ static types(): { [key: string]: any } {
63
+ return {
64
+ endTime: 'string',
65
+ metricName: 'string',
66
+ ownerId: 'number',
67
+ regionId: 'string',
68
+ resourceOwnerAccount: 'string',
69
+ resourceOwnerId: 'number',
70
+ scalingGroupId: 'string',
71
+ startTime: 'string',
72
+ };
73
+ }
74
+
75
+ validate() {
76
+ super.validate();
77
+ }
78
+
79
+ constructor(map?: { [key: string]: any }) {
80
+ super(map);
81
+ }
82
+ }
83
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { QueryHistoricalMetricResponseBody } from "./QueryHistoricalMetricResponseBody";
4
+
5
+
6
+ export class QueryHistoricalMetricResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: QueryHistoricalMetricResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: QueryHistoricalMetricResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,97 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class QueryHistoricalMetricResponseBodyHistoricalMetricsHistoricalMetric extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 10.0
9
+ */
10
+ metricValue?: string;
11
+ /**
12
+ * @example
13
+ * 2025-12-17T16:00Z
14
+ */
15
+ time?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ metricValue: 'MetricValue',
19
+ time: 'Time',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ metricValue: 'string',
26
+ time: 'string',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
39
+ export class QueryHistoricalMetricResponseBodyHistoricalMetrics extends $dara.Model {
40
+ historicalMetric?: QueryHistoricalMetricResponseBodyHistoricalMetricsHistoricalMetric[];
41
+ static names(): { [key: string]: string } {
42
+ return {
43
+ historicalMetric: 'HistoricalMetric',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ historicalMetric: { 'type': 'array', 'itemType': QueryHistoricalMetricResponseBodyHistoricalMetricsHistoricalMetric },
50
+ };
51
+ }
52
+
53
+ validate() {
54
+ if(Array.isArray(this.historicalMetric)) {
55
+ $dara.Model.validateArray(this.historicalMetric);
56
+ }
57
+ super.validate();
58
+ }
59
+
60
+ constructor(map?: { [key: string]: any }) {
61
+ super(map);
62
+ }
63
+ }
64
+
65
+ export class QueryHistoricalMetricResponseBody extends $dara.Model {
66
+ historicalMetrics?: QueryHistoricalMetricResponseBodyHistoricalMetrics;
67
+ /**
68
+ * @example
69
+ * 473469C7-AA6F-4DC5-B3DB-A3DC0DE3****
70
+ */
71
+ requestId?: string;
72
+ static names(): { [key: string]: string } {
73
+ return {
74
+ historicalMetrics: 'HistoricalMetrics',
75
+ requestId: 'RequestId',
76
+ };
77
+ }
78
+
79
+ static types(): { [key: string]: any } {
80
+ return {
81
+ historicalMetrics: QueryHistoricalMetricResponseBodyHistoricalMetrics,
82
+ requestId: 'string',
83
+ };
84
+ }
85
+
86
+ validate() {
87
+ if(this.historicalMetrics && typeof (this.historicalMetrics as any).validate === 'function') {
88
+ (this.historicalMetrics as any).validate();
89
+ }
90
+ super.validate();
91
+ }
92
+
93
+ constructor(map?: { [key: string]: any }) {
94
+ super(map);
95
+ }
96
+ }
97
+
@@ -0,0 +1,83 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class QueryPredictiveMetricRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * 2025-12-18T08:00Z
12
+ */
13
+ endTime?: string;
14
+ /**
15
+ * @remarks
16
+ * This parameter is required.
17
+ *
18
+ * @example
19
+ * CpuUtilization
20
+ */
21
+ metricName?: string;
22
+ ownerId?: number;
23
+ /**
24
+ * @remarks
25
+ * This parameter is required.
26
+ *
27
+ * @example
28
+ * cn-hangzhou
29
+ */
30
+ regionId?: string;
31
+ resourceOwnerAccount?: string;
32
+ resourceOwnerId?: number;
33
+ /**
34
+ * @remarks
35
+ * This parameter is required.
36
+ *
37
+ * @example
38
+ * asg-bp1igpak5ft1flyp****
39
+ */
40
+ scalingGroupId?: string;
41
+ /**
42
+ * @remarks
43
+ * This parameter is required.
44
+ *
45
+ * @example
46
+ * 2025-12-17T08:00Z
47
+ */
48
+ startTime?: string;
49
+ static names(): { [key: string]: string } {
50
+ return {
51
+ endTime: 'EndTime',
52
+ metricName: 'MetricName',
53
+ ownerId: 'OwnerId',
54
+ regionId: 'RegionId',
55
+ resourceOwnerAccount: 'ResourceOwnerAccount',
56
+ resourceOwnerId: 'ResourceOwnerId',
57
+ scalingGroupId: 'ScalingGroupId',
58
+ startTime: 'StartTime',
59
+ };
60
+ }
61
+
62
+ static types(): { [key: string]: any } {
63
+ return {
64
+ endTime: 'string',
65
+ metricName: 'string',
66
+ ownerId: 'number',
67
+ regionId: 'string',
68
+ resourceOwnerAccount: 'string',
69
+ resourceOwnerId: 'number',
70
+ scalingGroupId: 'string',
71
+ startTime: 'string',
72
+ };
73
+ }
74
+
75
+ validate() {
76
+ super.validate();
77
+ }
78
+
79
+ constructor(map?: { [key: string]: any }) {
80
+ super(map);
81
+ }
82
+ }
83
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { QueryPredictiveMetricResponseBody } from "./QueryPredictiveMetricResponseBody";
4
+
5
+
6
+ export class QueryPredictiveMetricResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: QueryPredictiveMetricResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: QueryPredictiveMetricResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+