@alicloud/cms20240330 9.2.0 → 9.2.2
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.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/models/DescribeMetricMetaListRequest.d.ts +1 -0
- package/dist/models/DescribeMetricMetaListRequest.js +2 -0
- package/dist/models/DescribeMetricMetaListRequest.js.map +1 -1
- package/dist/models/DescribeMetricMetaListResponseBody.d.ts +1 -0
- package/dist/models/DescribeMetricMetaListResponseBody.js +2 -0
- package/dist/models/DescribeMetricMetaListResponseBody.js.map +1 -1
- package/dist/models/DescribeMetricMetaListShrinkRequest.d.ts +1 -0
- package/dist/models/DescribeMetricMetaListShrinkRequest.js +2 -0
- package/dist/models/DescribeMetricMetaListShrinkRequest.js.map +1 -1
- package/dist/models/GetPipelineResponseBody.d.ts +1 -0
- package/dist/models/GetPipelineResponseBody.js +2 -0
- package/dist/models/GetPipelineResponseBody.js.map +1 -1
- package/dist/models/MergeOncallSchedule.d.ts +22 -0
- package/dist/models/MergeOncallSchedule.js +73 -0
- package/dist/models/MergeOncallSchedule.js.map +1 -0
- package/dist/models/NotifyRouteForSubscription.d.ts +46 -0
- package/dist/models/NotifyRouteForSubscription.js +123 -0
- package/dist/models/NotifyRouteForSubscription.js.map +1 -0
- package/dist/models/SubscriptionForModify.d.ts +16 -0
- package/dist/models/SubscriptionForModify.js +31 -1
- package/dist/models/SubscriptionForModify.js.map +1 -1
- package/dist/models/SubscriptionForView.d.ts +21 -0
- package/dist/models/SubscriptionForView.js +33 -1
- package/dist/models/SubscriptionForView.js.map +1 -1
- package/dist/models/model.d.ts +6 -0
- package/dist/models/model.js +35 -23
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +4 -0
- package/src/models/DescribeMetricMetaListRequest.ts +3 -0
- package/src/models/DescribeMetricMetaListResponseBody.ts +3 -0
- package/src/models/DescribeMetricMetaListShrinkRequest.ts +3 -0
- package/src/models/GetPipelineResponseBody.ts +3 -0
- package/src/models/MergeOncallSchedule.ts +48 -0
- package/src/models/NotifyRouteForSubscription.ts +106 -0
- package/src/models/SubscriptionForModify.ts +36 -0
- package/src/models/SubscriptionForView.ts +43 -0
- package/src/models/model.ts +6 -0
|
@@ -253,10 +253,12 @@ export class GetPipelineResponseBodySourceLogstore extends $dara.Model {
|
|
|
253
253
|
* test-project
|
|
254
254
|
*/
|
|
255
255
|
project?: string;
|
|
256
|
+
query?: string;
|
|
256
257
|
static names(): { [key: string]: string } {
|
|
257
258
|
return {
|
|
258
259
|
logstore: 'logstore',
|
|
259
260
|
project: 'project',
|
|
261
|
+
query: 'query',
|
|
260
262
|
};
|
|
261
263
|
}
|
|
262
264
|
|
|
@@ -264,6 +266,7 @@ export class GetPipelineResponseBodySourceLogstore extends $dara.Model {
|
|
|
264
266
|
return {
|
|
265
267
|
logstore: 'string',
|
|
266
268
|
project: 'string',
|
|
269
|
+
query: 'string',
|
|
267
270
|
};
|
|
268
271
|
}
|
|
269
272
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class MergeOncallSchedule extends $dara.Model {
|
|
6
|
+
detail?: { [key: string]: any };
|
|
7
|
+
gmtCreate?: string;
|
|
8
|
+
gmtModified?: string;
|
|
9
|
+
identifier?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
source?: string;
|
|
12
|
+
workspace?: string;
|
|
13
|
+
static names(): { [key: string]: string } {
|
|
14
|
+
return {
|
|
15
|
+
detail: 'detail',
|
|
16
|
+
gmtCreate: 'gmtCreate',
|
|
17
|
+
gmtModified: 'gmtModified',
|
|
18
|
+
identifier: 'identifier',
|
|
19
|
+
name: 'name',
|
|
20
|
+
source: 'source',
|
|
21
|
+
workspace: 'workspace',
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static types(): { [key: string]: any } {
|
|
26
|
+
return {
|
|
27
|
+
detail: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
28
|
+
gmtCreate: 'string',
|
|
29
|
+
gmtModified: 'string',
|
|
30
|
+
identifier: 'string',
|
|
31
|
+
name: 'string',
|
|
32
|
+
source: 'string',
|
|
33
|
+
workspace: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
if(this.detail) {
|
|
39
|
+
$dara.Model.validateMap(this.detail);
|
|
40
|
+
}
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class NotifyRouteForSubscriptionChannels extends $dara.Model {
|
|
6
|
+
channelType?: string;
|
|
7
|
+
enabledSubChannels?: string[];
|
|
8
|
+
receivers?: string[];
|
|
9
|
+
static names(): { [key: string]: string } {
|
|
10
|
+
return {
|
|
11
|
+
channelType: 'channelType',
|
|
12
|
+
enabledSubChannels: 'enabledSubChannels',
|
|
13
|
+
receivers: 'receivers',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
channelType: 'string',
|
|
20
|
+
enabledSubChannels: { 'type': 'array', 'itemType': 'string' },
|
|
21
|
+
receivers: { 'type': 'array', 'itemType': 'string' },
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
validate() {
|
|
26
|
+
if(Array.isArray(this.enabledSubChannels)) {
|
|
27
|
+
$dara.Model.validateArray(this.enabledSubChannels);
|
|
28
|
+
}
|
|
29
|
+
if(Array.isArray(this.receivers)) {
|
|
30
|
+
$dara.Model.validateArray(this.receivers);
|
|
31
|
+
}
|
|
32
|
+
super.validate();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
constructor(map?: { [key: string]: any }) {
|
|
36
|
+
super(map);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class NotifyRouteForSubscriptionEffectTimeRange extends $dara.Model {
|
|
41
|
+
dayInWeek?: number[];
|
|
42
|
+
endTimeInMinute?: number;
|
|
43
|
+
startTimeInMinute?: number;
|
|
44
|
+
timeZone?: string;
|
|
45
|
+
static names(): { [key: string]: string } {
|
|
46
|
+
return {
|
|
47
|
+
dayInWeek: 'dayInWeek',
|
|
48
|
+
endTimeInMinute: 'endTimeInMinute',
|
|
49
|
+
startTimeInMinute: 'startTimeInMinute',
|
|
50
|
+
timeZone: 'timeZone',
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
static types(): { [key: string]: any } {
|
|
55
|
+
return {
|
|
56
|
+
dayInWeek: { 'type': 'array', 'itemType': 'number' },
|
|
57
|
+
endTimeInMinute: 'number',
|
|
58
|
+
startTimeInMinute: 'number',
|
|
59
|
+
timeZone: 'string',
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
validate() {
|
|
64
|
+
if(Array.isArray(this.dayInWeek)) {
|
|
65
|
+
$dara.Model.validateArray(this.dayInWeek);
|
|
66
|
+
}
|
|
67
|
+
super.validate();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
constructor(map?: { [key: string]: any }) {
|
|
71
|
+
super(map);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export class NotifyRouteForSubscription extends $dara.Model {
|
|
76
|
+
channels?: NotifyRouteForSubscriptionChannels[];
|
|
77
|
+
effectTimeRange?: NotifyRouteForSubscriptionEffectTimeRange;
|
|
78
|
+
static names(): { [key: string]: string } {
|
|
79
|
+
return {
|
|
80
|
+
channels: 'channels',
|
|
81
|
+
effectTimeRange: 'effectTimeRange',
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
static types(): { [key: string]: any } {
|
|
86
|
+
return {
|
|
87
|
+
channels: { 'type': 'array', 'itemType': NotifyRouteForSubscriptionChannels },
|
|
88
|
+
effectTimeRange: NotifyRouteForSubscriptionEffectTimeRange,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
validate() {
|
|
93
|
+
if(Array.isArray(this.channels)) {
|
|
94
|
+
$dara.Model.validateArray(this.channels);
|
|
95
|
+
}
|
|
96
|
+
if(this.effectTimeRange && typeof (this.effectTimeRange as any).validate === 'function') {
|
|
97
|
+
(this.effectTimeRange as any).validate();
|
|
98
|
+
}
|
|
99
|
+
super.validate();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
constructor(map?: { [key: string]: any }) {
|
|
103
|
+
super(map);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -2,8 +2,38 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
import { FilterSetting } from "./FilterSetting";
|
|
4
4
|
import { WorkspaceFilterSetting } from "./WorkspaceFilterSetting";
|
|
5
|
+
import { NotifyRouteForSubscription } from "./NotifyRouteForSubscription";
|
|
5
6
|
|
|
6
7
|
|
|
8
|
+
export class SubscriptionForModifyAgentConfig extends $dara.Model {
|
|
9
|
+
agentUuid?: string;
|
|
10
|
+
routes?: NotifyRouteForSubscription[];
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
agentUuid: 'agentUuid',
|
|
14
|
+
routes: 'routes',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
agentUuid: 'string',
|
|
21
|
+
routes: { 'type': 'array', 'itemType': NotifyRouteForSubscription },
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
validate() {
|
|
26
|
+
if(Array.isArray(this.routes)) {
|
|
27
|
+
$dara.Model.validateArray(this.routes);
|
|
28
|
+
}
|
|
29
|
+
super.validate();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
constructor(map?: { [key: string]: any }) {
|
|
33
|
+
super(map);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
7
37
|
export class SubscriptionForModifyPushingSetting extends $dara.Model {
|
|
8
38
|
/**
|
|
9
39
|
* @remarks
|
|
@@ -65,6 +95,7 @@ export class SubscriptionForModifyPushingSetting extends $dara.Model {
|
|
|
65
95
|
}
|
|
66
96
|
|
|
67
97
|
export class SubscriptionForModify extends $dara.Model {
|
|
98
|
+
agentConfig?: SubscriptionForModifyAgentConfig;
|
|
68
99
|
/**
|
|
69
100
|
* @remarks
|
|
70
101
|
* Description.
|
|
@@ -104,6 +135,7 @@ export class SubscriptionForModify extends $dara.Model {
|
|
|
104
135
|
workspaceFilterSetting?: WorkspaceFilterSetting;
|
|
105
136
|
static names(): { [key: string]: string } {
|
|
106
137
|
return {
|
|
138
|
+
agentConfig: 'agentConfig',
|
|
107
139
|
description: 'description',
|
|
108
140
|
filterSetting: 'filterSetting',
|
|
109
141
|
notifyStrategyId: 'notifyStrategyId',
|
|
@@ -115,6 +147,7 @@ export class SubscriptionForModify extends $dara.Model {
|
|
|
115
147
|
|
|
116
148
|
static types(): { [key: string]: any } {
|
|
117
149
|
return {
|
|
150
|
+
agentConfig: SubscriptionForModifyAgentConfig,
|
|
118
151
|
description: 'string',
|
|
119
152
|
filterSetting: FilterSetting,
|
|
120
153
|
notifyStrategyId: 'string',
|
|
@@ -125,6 +158,9 @@ export class SubscriptionForModify extends $dara.Model {
|
|
|
125
158
|
}
|
|
126
159
|
|
|
127
160
|
validate() {
|
|
161
|
+
if(this.agentConfig && typeof (this.agentConfig as any).validate === 'function') {
|
|
162
|
+
(this.agentConfig as any).validate();
|
|
163
|
+
}
|
|
128
164
|
if(this.filterSetting && typeof (this.filterSetting as any).validate === 'function') {
|
|
129
165
|
(this.filterSetting as any).validate();
|
|
130
166
|
}
|
|
@@ -2,8 +2,38 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
import { FilterSetting } from "./FilterSetting";
|
|
4
4
|
import { WorkspaceFilterSetting } from "./WorkspaceFilterSetting";
|
|
5
|
+
import { NotifyRouteForSubscription } from "./NotifyRouteForSubscription";
|
|
5
6
|
|
|
6
7
|
|
|
8
|
+
export class SubscriptionForViewAgentConfig extends $dara.Model {
|
|
9
|
+
agentUuid?: string;
|
|
10
|
+
routes?: NotifyRouteForSubscription[];
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
agentUuid: 'agentUuid',
|
|
14
|
+
routes: 'routes',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
agentUuid: 'string',
|
|
21
|
+
routes: { 'type': 'array', 'itemType': NotifyRouteForSubscription },
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
validate() {
|
|
26
|
+
if(Array.isArray(this.routes)) {
|
|
27
|
+
$dara.Model.validateArray(this.routes);
|
|
28
|
+
}
|
|
29
|
+
super.validate();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
constructor(map?: { [key: string]: any }) {
|
|
33
|
+
super(map);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
7
37
|
export class SubscriptionForViewPushingSetting extends $dara.Model {
|
|
8
38
|
/**
|
|
9
39
|
* @remarks
|
|
@@ -65,6 +95,7 @@ export class SubscriptionForViewPushingSetting extends $dara.Model {
|
|
|
65
95
|
}
|
|
66
96
|
|
|
67
97
|
export class SubscriptionForView extends $dara.Model {
|
|
98
|
+
agentConfig?: SubscriptionForViewAgentConfig;
|
|
68
99
|
/**
|
|
69
100
|
* @remarks
|
|
70
101
|
* Create Time.
|
|
@@ -125,6 +156,11 @@ export class SubscriptionForView extends $dara.Model {
|
|
|
125
156
|
* Subscription test.
|
|
126
157
|
*/
|
|
127
158
|
subscriptionName?: string;
|
|
159
|
+
/**
|
|
160
|
+
* @example
|
|
161
|
+
* NORMAL
|
|
162
|
+
*/
|
|
163
|
+
subscriptionType?: string;
|
|
128
164
|
syncFromType?: string;
|
|
129
165
|
/**
|
|
130
166
|
* @remarks
|
|
@@ -153,6 +189,7 @@ export class SubscriptionForView extends $dara.Model {
|
|
|
153
189
|
workspaceFilterSetting?: WorkspaceFilterSetting;
|
|
154
190
|
static names(): { [key: string]: string } {
|
|
155
191
|
return {
|
|
192
|
+
agentConfig: 'agentConfig',
|
|
156
193
|
createTime: 'createTime',
|
|
157
194
|
description: 'description',
|
|
158
195
|
enable: 'enable',
|
|
@@ -161,6 +198,7 @@ export class SubscriptionForView extends $dara.Model {
|
|
|
161
198
|
pushingSetting: 'pushingSetting',
|
|
162
199
|
subscriptionId: 'subscriptionId',
|
|
163
200
|
subscriptionName: 'subscriptionName',
|
|
201
|
+
subscriptionType: 'subscriptionType',
|
|
164
202
|
syncFromType: 'syncFromType',
|
|
165
203
|
updateTime: 'updateTime',
|
|
166
204
|
userId: 'userId',
|
|
@@ -171,6 +209,7 @@ export class SubscriptionForView extends $dara.Model {
|
|
|
171
209
|
|
|
172
210
|
static types(): { [key: string]: any } {
|
|
173
211
|
return {
|
|
212
|
+
agentConfig: SubscriptionForViewAgentConfig,
|
|
174
213
|
createTime: 'string',
|
|
175
214
|
description: 'string',
|
|
176
215
|
enable: 'boolean',
|
|
@@ -179,6 +218,7 @@ export class SubscriptionForView extends $dara.Model {
|
|
|
179
218
|
pushingSetting: SubscriptionForViewPushingSetting,
|
|
180
219
|
subscriptionId: 'string',
|
|
181
220
|
subscriptionName: 'string',
|
|
221
|
+
subscriptionType: 'string',
|
|
182
222
|
syncFromType: 'string',
|
|
183
223
|
updateTime: 'string',
|
|
184
224
|
userId: 'string',
|
|
@@ -188,6 +228,9 @@ export class SubscriptionForView extends $dara.Model {
|
|
|
188
228
|
}
|
|
189
229
|
|
|
190
230
|
validate() {
|
|
231
|
+
if(this.agentConfig && typeof (this.agentConfig as any).validate === 'function') {
|
|
232
|
+
(this.agentConfig as any).validate();
|
|
233
|
+
}
|
|
191
234
|
if(this.filterSetting && typeof (this.filterSetting as any).validate === 'function') {
|
|
192
235
|
(this.filterSetting as any).validate();
|
|
193
236
|
}
|
package/src/models/model.ts
CHANGED
|
@@ -44,6 +44,8 @@ export { IncidentNoteStructOperator } from './IncidentNoteStruct';
|
|
|
44
44
|
export { MaintainWindowForModifyEffectTimeRange } from './MaintainWindowForModify';
|
|
45
45
|
export { MaintainWindowForViewEffectTimeRange } from './MaintainWindowForView';
|
|
46
46
|
export { MergeRobotExtend } from './MergeRobot';
|
|
47
|
+
export { NotifyRouteForSubscriptionChannels } from './NotifyRouteForSubscription';
|
|
48
|
+
export { NotifyRouteForSubscriptionEffectTimeRange } from './NotifyRouteForSubscription';
|
|
47
49
|
export { NotifyStrategyForModifyCustomTemplateEntries } from './NotifyStrategyForModify';
|
|
48
50
|
export { NotifyStrategyForModifyGroupingSetting } from './NotifyStrategyForModify';
|
|
49
51
|
export { NotifyStrategyForModifyPushingSetting } from './NotifyStrategyForModify';
|
|
@@ -58,7 +60,9 @@ export { NotifyStrategyForViewRepeatNotifySetting } from './NotifyStrategyForVie
|
|
|
58
60
|
export { NotifyStrategyForViewRoutesChannels } from './NotifyStrategyForView';
|
|
59
61
|
export { NotifyStrategyForViewRoutesEffectTimeRange } from './NotifyStrategyForView';
|
|
60
62
|
export { NotifyStrategyForViewRoutes } from './NotifyStrategyForView';
|
|
63
|
+
export { SubscriptionForModifyAgentConfig } from './SubscriptionForModify';
|
|
61
64
|
export { SubscriptionForModifyPushingSetting } from './SubscriptionForModify';
|
|
65
|
+
export { SubscriptionForViewAgentConfig } from './SubscriptionForView';
|
|
62
66
|
export { SubscriptionForViewPushingSetting } from './SubscriptionForView';
|
|
63
67
|
export { AddContextsRequestItems } from './AddContextsRequest';
|
|
64
68
|
export { AddContextsResponseBodyResults } from './AddContextsResponseBody';
|
|
@@ -335,11 +339,13 @@ export { ManageAlertRulesResult } from './ManageAlertRulesResult';
|
|
|
335
339
|
export { ManageAlertRulesUnifiedActionInput } from './ManageAlertRulesUnifiedActionInput';
|
|
336
340
|
export { MergeContact } from './MergeContact';
|
|
337
341
|
export { MergeContactGroup } from './MergeContactGroup';
|
|
342
|
+
export { MergeOncallSchedule } from './MergeOncallSchedule';
|
|
338
343
|
export { MergeRobot } from './MergeRobot';
|
|
339
344
|
export { MergeWebhook } from './MergeWebhook';
|
|
340
345
|
export { ModelParameters } from './ModelParameters';
|
|
341
346
|
export { NotifyChannel } from './NotifyChannel';
|
|
342
347
|
export { NotifyConfigUnified } from './NotifyConfigUnified';
|
|
348
|
+
export { NotifyRouteForSubscription } from './NotifyRouteForSubscription';
|
|
343
349
|
export { NotifyStrategyForModify } from './NotifyStrategyForModify';
|
|
344
350
|
export { NotifyStrategyForView } from './NotifyStrategyForView';
|
|
345
351
|
export { Pagination } from './Pagination';
|