@alicloud/cms20240330 8.0.1 → 9.0.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.
- package/dist/client.d.ts +18 -0
- package/dist/client.js +64 -2
- package/dist/client.js.map +1 -1
- package/dist/models/DescribeMetricMetaListRequest.d.ts +61 -0
- package/dist/models/DescribeMetricMetaListRequest.js +92 -0
- package/dist/models/DescribeMetricMetaListRequest.js.map +1 -0
- package/dist/models/DescribeMetricMetaListResponse.d.ts +19 -0
- package/dist/models/DescribeMetricMetaListResponse.js +69 -0
- package/dist/models/DescribeMetricMetaListResponse.js.map +1 -0
- package/dist/models/DescribeMetricMetaListResponseBody.d.ts +74 -0
- package/dist/models/DescribeMetricMetaListResponseBody.js +134 -0
- package/dist/models/DescribeMetricMetaListResponseBody.js.map +1 -0
- package/dist/models/DescribeMetricMetaListShrinkRequest.d.ts +39 -0
- package/dist/models/DescribeMetricMetaListShrinkRequest.js +68 -0
- package/dist/models/DescribeMetricMetaListShrinkRequest.js.map +1 -0
- package/dist/models/EntityDiscoverRule.d.ts +1 -9
- package/dist/models/EntityDiscoverRule.js +3 -3
- package/dist/models/EntityDiscoverRule.js.map +1 -1
- package/dist/models/SearchMemoriesRequest.d.ts +2 -2
- package/dist/models/SearchMemoriesRequest.js +2 -2
- package/dist/models/SearchMemoriesRequest.js.map +1 -1
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +28 -13
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +73 -2
- package/src/models/DescribeMetricMetaListRequest.ts +99 -0
- package/src/models/DescribeMetricMetaListResponse.ts +40 -0
- package/src/models/DescribeMetricMetaListResponseBody.ts +143 -0
- package/src/models/DescribeMetricMetaListShrinkRequest.ts +62 -0
- package/src/models/EntityDiscoverRule.ts +4 -12
- package/src/models/SearchMemoriesRequest.ts +4 -4
- package/src/models/model.ts +7 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeMetricMetaListResponseBodyResourcesDimensionDescription extends $dara.Model {
|
|
6
|
+
name?: string;
|
|
7
|
+
static names(): { [key: string]: string } {
|
|
8
|
+
return {
|
|
9
|
+
name: 'name',
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
static types(): { [key: string]: any } {
|
|
14
|
+
return {
|
|
15
|
+
name: 'string',
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
validate() {
|
|
20
|
+
super.validate();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
constructor(map?: { [key: string]: any }) {
|
|
24
|
+
super(map);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export class DescribeMetricMetaListResponseBodyResources extends $dara.Model {
|
|
29
|
+
description?: string;
|
|
30
|
+
dimensionDescription?: DescribeMetricMetaListResponseBodyResourcesDimensionDescription[];
|
|
31
|
+
dimensions?: string[];
|
|
32
|
+
labels?: { [key: string]: string };
|
|
33
|
+
metricName?: string;
|
|
34
|
+
namespace?: string;
|
|
35
|
+
periods?: string;
|
|
36
|
+
statistics?: string;
|
|
37
|
+
type?: string;
|
|
38
|
+
unit?: string;
|
|
39
|
+
static names(): { [key: string]: string } {
|
|
40
|
+
return {
|
|
41
|
+
description: 'description',
|
|
42
|
+
dimensionDescription: 'dimensionDescription',
|
|
43
|
+
dimensions: 'dimensions',
|
|
44
|
+
labels: 'labels',
|
|
45
|
+
metricName: 'metricName',
|
|
46
|
+
namespace: 'namespace',
|
|
47
|
+
periods: 'periods',
|
|
48
|
+
statistics: 'statistics',
|
|
49
|
+
type: 'type',
|
|
50
|
+
unit: 'unit',
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
static types(): { [key: string]: any } {
|
|
55
|
+
return {
|
|
56
|
+
description: 'string',
|
|
57
|
+
dimensionDescription: { 'type': 'array', 'itemType': DescribeMetricMetaListResponseBodyResourcesDimensionDescription },
|
|
58
|
+
dimensions: { 'type': 'array', 'itemType': 'string' },
|
|
59
|
+
labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
60
|
+
metricName: 'string',
|
|
61
|
+
namespace: 'string',
|
|
62
|
+
periods: 'string',
|
|
63
|
+
statistics: 'string',
|
|
64
|
+
type: 'string',
|
|
65
|
+
unit: 'string',
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
validate() {
|
|
70
|
+
if(Array.isArray(this.dimensionDescription)) {
|
|
71
|
+
$dara.Model.validateArray(this.dimensionDescription);
|
|
72
|
+
}
|
|
73
|
+
if(Array.isArray(this.dimensions)) {
|
|
74
|
+
$dara.Model.validateArray(this.dimensions);
|
|
75
|
+
}
|
|
76
|
+
if(this.labels) {
|
|
77
|
+
$dara.Model.validateMap(this.labels);
|
|
78
|
+
}
|
|
79
|
+
super.validate();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
constructor(map?: { [key: string]: any }) {
|
|
83
|
+
super(map);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export class DescribeMetricMetaListResponseBody extends $dara.Model {
|
|
88
|
+
/**
|
|
89
|
+
* @example
|
|
90
|
+
* 1
|
|
91
|
+
*/
|
|
92
|
+
pageNumber?: number;
|
|
93
|
+
/**
|
|
94
|
+
* @example
|
|
95
|
+
* 2000
|
|
96
|
+
*/
|
|
97
|
+
pageSize?: number;
|
|
98
|
+
/**
|
|
99
|
+
* @remarks
|
|
100
|
+
* Id of the request
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* 264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC
|
|
104
|
+
*/
|
|
105
|
+
requestId?: string;
|
|
106
|
+
resources?: DescribeMetricMetaListResponseBodyResources[];
|
|
107
|
+
/**
|
|
108
|
+
* @example
|
|
109
|
+
* 6370
|
|
110
|
+
*/
|
|
111
|
+
totalCount?: number;
|
|
112
|
+
static names(): { [key: string]: string } {
|
|
113
|
+
return {
|
|
114
|
+
pageNumber: 'pageNumber',
|
|
115
|
+
pageSize: 'pageSize',
|
|
116
|
+
requestId: 'requestId',
|
|
117
|
+
resources: 'resources',
|
|
118
|
+
totalCount: 'totalCount',
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
static types(): { [key: string]: any } {
|
|
123
|
+
return {
|
|
124
|
+
pageNumber: 'number',
|
|
125
|
+
pageSize: 'number',
|
|
126
|
+
requestId: 'string',
|
|
127
|
+
resources: { 'type': 'array', 'itemType': DescribeMetricMetaListResponseBodyResources },
|
|
128
|
+
totalCount: 'number',
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
validate() {
|
|
133
|
+
if(Array.isArray(this.resources)) {
|
|
134
|
+
$dara.Model.validateArray(this.resources);
|
|
135
|
+
}
|
|
136
|
+
super.validate();
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
constructor(map?: { [key: string]: any }) {
|
|
140
|
+
super(map);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeMetricMetaListShrinkRequest extends $dara.Model {
|
|
6
|
+
labelsShrink?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @example
|
|
9
|
+
* CMS
|
|
10
|
+
*/
|
|
11
|
+
metaFormat?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @example
|
|
14
|
+
* CPUUtilization
|
|
15
|
+
*/
|
|
16
|
+
metricName?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @example
|
|
19
|
+
* acs_ecs_dashboard
|
|
20
|
+
*/
|
|
21
|
+
namespace?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @example
|
|
24
|
+
* 1
|
|
25
|
+
*/
|
|
26
|
+
pageNumber?: number;
|
|
27
|
+
/**
|
|
28
|
+
* @example
|
|
29
|
+
* 2000
|
|
30
|
+
*/
|
|
31
|
+
pageSize?: number;
|
|
32
|
+
static names(): { [key: string]: string } {
|
|
33
|
+
return {
|
|
34
|
+
labelsShrink: 'labels',
|
|
35
|
+
metaFormat: 'metaFormat',
|
|
36
|
+
metricName: 'metricName',
|
|
37
|
+
namespace: 'namespace',
|
|
38
|
+
pageNumber: 'pageNumber',
|
|
39
|
+
pageSize: 'pageSize',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static types(): { [key: string]: any } {
|
|
44
|
+
return {
|
|
45
|
+
labelsShrink: 'string',
|
|
46
|
+
metaFormat: 'string',
|
|
47
|
+
metricName: 'string',
|
|
48
|
+
namespace: 'string',
|
|
49
|
+
pageNumber: 'number',
|
|
50
|
+
pageSize: 'number',
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
validate() {
|
|
55
|
+
super.validate();
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
constructor(map?: { [key: string]: any }) {
|
|
59
|
+
super(map);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
@@ -83,15 +83,7 @@ export class EntityDiscoverRuleFieldRules extends $dara.Model {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export class EntityDiscoverRuleIpMatchRule extends $dara.Model {
|
|
86
|
-
/**
|
|
87
|
-
* @example
|
|
88
|
-
* 192.168.0.1/10
|
|
89
|
-
*/
|
|
90
86
|
ipCIDR?: string;
|
|
91
|
-
/**
|
|
92
|
-
* @example
|
|
93
|
-
* hostIp
|
|
94
|
-
*/
|
|
95
87
|
ipFieldKey?: string;
|
|
96
88
|
static names(): { [key: string]: string } {
|
|
97
89
|
return {
|
|
@@ -201,7 +193,7 @@ export class EntityDiscoverRule extends $dara.Model {
|
|
|
201
193
|
entityTypes?: string[];
|
|
202
194
|
fieldRules?: EntityDiscoverRuleFieldRules[];
|
|
203
195
|
instanceIds?: string[];
|
|
204
|
-
ipMatchRule?: EntityDiscoverRuleIpMatchRule
|
|
196
|
+
ipMatchRule?: EntityDiscoverRuleIpMatchRule;
|
|
205
197
|
labels?: EntityDiscoverRuleLabels[];
|
|
206
198
|
regionIds?: string[];
|
|
207
199
|
/**
|
|
@@ -230,7 +222,7 @@ export class EntityDiscoverRule extends $dara.Model {
|
|
|
230
222
|
entityTypes: { 'type': 'array', 'itemType': 'string' },
|
|
231
223
|
fieldRules: { 'type': 'array', 'itemType': EntityDiscoverRuleFieldRules },
|
|
232
224
|
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
233
|
-
ipMatchRule:
|
|
225
|
+
ipMatchRule: EntityDiscoverRuleIpMatchRule,
|
|
234
226
|
labels: { 'type': 'array', 'itemType': EntityDiscoverRuleLabels },
|
|
235
227
|
regionIds: { 'type': 'array', 'itemType': 'string' },
|
|
236
228
|
resourceGroupId: 'string',
|
|
@@ -251,8 +243,8 @@ export class EntityDiscoverRule extends $dara.Model {
|
|
|
251
243
|
if(Array.isArray(this.instanceIds)) {
|
|
252
244
|
$dara.Model.validateArray(this.instanceIds);
|
|
253
245
|
}
|
|
254
|
-
if(
|
|
255
|
-
|
|
246
|
+
if(this.ipMatchRule && typeof (this.ipMatchRule as any).validate === 'function') {
|
|
247
|
+
(this.ipMatchRule as any).validate();
|
|
256
248
|
}
|
|
257
249
|
if(Array.isArray(this.labels)) {
|
|
258
250
|
$dara.Model.validateArray(this.labels);
|
|
@@ -26,9 +26,9 @@ export class SearchMemoriesRequest extends $dara.Model {
|
|
|
26
26
|
rerank?: boolean;
|
|
27
27
|
/**
|
|
28
28
|
* @example
|
|
29
|
-
*
|
|
29
|
+
* reranker,llm_rank
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
retrievalOption?: string;
|
|
32
32
|
/**
|
|
33
33
|
* @example
|
|
34
34
|
* test_session_001
|
|
@@ -61,7 +61,7 @@ export class SearchMemoriesRequest extends $dara.Model {
|
|
|
61
61
|
filters: 'filters',
|
|
62
62
|
query: 'query',
|
|
63
63
|
rerank: 'rerank',
|
|
64
|
-
|
|
64
|
+
retrievalOption: 'retrievalOption',
|
|
65
65
|
runId: 'runId',
|
|
66
66
|
searchType: 'searchType',
|
|
67
67
|
threshold: 'threshold',
|
|
@@ -77,7 +77,7 @@ export class SearchMemoriesRequest extends $dara.Model {
|
|
|
77
77
|
filters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
78
78
|
query: 'string',
|
|
79
79
|
rerank: 'boolean',
|
|
80
|
-
|
|
80
|
+
retrievalOption: 'string',
|
|
81
81
|
runId: 'string',
|
|
82
82
|
searchType: 'string',
|
|
83
83
|
threshold: 'number',
|
package/src/models/model.ts
CHANGED
|
@@ -76,6 +76,9 @@ export { CreatePrometheusViewRequestPrometheusInstances } from './CreatePromethe
|
|
|
76
76
|
export { CreatePrometheusViewRequestTags } from './CreatePrometheusViewRequest';
|
|
77
77
|
export { CreatePrometheusVirtualInstanceResponseBodyInstance } from './CreatePrometheusVirtualInstanceResponseBody';
|
|
78
78
|
export { CreateServiceRequestTags } from './CreateServiceRequest';
|
|
79
|
+
export { DescribeMetricMetaListRequestLabels } from './DescribeMetricMetaListRequest';
|
|
80
|
+
export { DescribeMetricMetaListResponseBodyResourcesDimensionDescription } from './DescribeMetricMetaListResponseBody';
|
|
81
|
+
export { DescribeMetricMetaListResponseBodyResources } from './DescribeMetricMetaListResponseBody';
|
|
79
82
|
export { DescribeRegionsResponseBodyRegions } from './DescribeRegionsResponseBody';
|
|
80
83
|
export { ExecuteQueryResponseBodyMeta } from './ExecuteQueryResponseBody';
|
|
81
84
|
export { GetAddonResponseBodyDataDashboards } from './GetAddonResponseBody';
|
|
@@ -438,6 +441,10 @@ export { DeleteUmodelDataResponse } from './DeleteUmodelDataResponse';
|
|
|
438
441
|
export { DeleteWorkspaceRequest } from './DeleteWorkspaceRequest';
|
|
439
442
|
export { DeleteWorkspaceResponseBody } from './DeleteWorkspaceResponseBody';
|
|
440
443
|
export { DeleteWorkspaceResponse } from './DeleteWorkspaceResponse';
|
|
444
|
+
export { DescribeMetricMetaListRequest } from './DescribeMetricMetaListRequest';
|
|
445
|
+
export { DescribeMetricMetaListShrinkRequest } from './DescribeMetricMetaListShrinkRequest';
|
|
446
|
+
export { DescribeMetricMetaListResponseBody } from './DescribeMetricMetaListResponseBody';
|
|
447
|
+
export { DescribeMetricMetaListResponse } from './DescribeMetricMetaListResponse';
|
|
441
448
|
export { DescribeRegionsRequest } from './DescribeRegionsRequest';
|
|
442
449
|
export { DescribeRegionsResponseBody } from './DescribeRegionsResponseBody';
|
|
443
450
|
export { DescribeRegionsResponse } from './DescribeRegionsResponse';
|