@alicloud/cms20240330 1.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.js ADDED
@@ -0,0 +1,1520 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.NotifyStrategyForViewRoutes = exports.NotifyStrategyForViewRoutesEffectTimeRange = exports.NotifyStrategyForViewRoutesChannels = exports.NotifyStrategyForViewGroupingSetting = exports.NotifyStrategyForViewCustomTemplateEntries = exports.NotifyStrategyForModifyRoutes = exports.NotifyStrategyForModifyRoutesEffectTimeRange = exports.NotifyStrategyForModifyRoutesChannels = exports.NotifyStrategyForModifyGroupingSetting = exports.NotifyStrategyForModifyCustomTemplateEntries = exports.FilterSettingConditions = exports.AlertRuleSlsQueryJoinConditions = exports.AlertRuleQueryQueries = exports.AlertRuleDataSourceDsList = exports.AlertRuleConditionCompareList = exports.AlertRuleConditionCompareListValueLevelList = exports.AlertRuleConditionCaseList = exports.AlertRuleAlertMetricParamDefValues = exports.AlertRuleAlertMetricFilterDefSupportedOpts = exports.ListAlertActionsResponse = exports.ListAlertActionsResponseBody = exports.ListAlertActionsShrinkRequest = exports.ListAlertActionsRequest = exports.TransformerForView = exports.TransformerForModify = exports.TransformAction = exports.SubscriptionForView = exports.SubscriptionForModify = exports.NotifyStrategyForView = exports.NotifyStrategyForModify = exports.MaintainWindowForView = exports.MaintainWindowForModify = exports.FilterSetting = exports.AlertRuleTimeSpan = exports.AlertRuleSlsQueryJoin = exports.AlertRuleSend = exports.AlertRuleQuery = exports.AlertRuleNotificationFilter = exports.AlertRuleNotification = exports.AlertRuleLabelFilter = exports.AlertRuleDataSource = exports.AlertRuleCondition = exports.AlertRuleAlertMetricParamDef = exports.AlertRuleAlertMetricInputParamValue = exports.AlertRuleAlertMetricInputFilterValue = exports.AlertRuleAlertMetricInput = exports.AlertRuleAlertMetricFilterDef = exports.AlertRuleAction = exports.AlertEventIntegrationPolicyForView = exports.AlertEventIntegrationPolicyForModify = void 0;
30
+ exports.ListAlertActionsResponseBodyAlertActions = exports.ListAlertActionsResponseBodyAlertActionsWebhookParam = exports.ListAlertActionsResponseBodyAlertActionsSlsParam = exports.ListAlertActionsResponseBodyAlertActionsPagerDutyParam = exports.ListAlertActionsResponseBodyAlertActionsMnsParam = exports.ListAlertActionsResponseBodyAlertActionsFcParam = exports.ListAlertActionsResponseBodyAlertActionsEssParam = exports.SubscriptionForViewPushingSetting = exports.SubscriptionForModifyPushingSetting = void 0;
31
+ // This file is auto-generated, don't edit it
32
+ /**
33
+ */
34
+ const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
35
+ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $OpenApi = openapi_client_1;
36
+ const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
37
+ const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
38
+ const $tea = __importStar(require("@alicloud/tea-typescript"));
39
+ class AlertEventIntegrationPolicyForModify extends $tea.Model {
40
+ static names() {
41
+ return {
42
+ alertEventIntegrationPolicyName: 'alertEventIntegrationPolicyName',
43
+ description: 'description',
44
+ filterSetting: 'filterSetting',
45
+ integrationSetting: 'integrationSetting',
46
+ transformerSetting: 'transformerSetting',
47
+ type: 'type',
48
+ };
49
+ }
50
+ static types() {
51
+ return {
52
+ alertEventIntegrationPolicyName: 'string',
53
+ description: 'string',
54
+ filterSetting: FilterSetting,
55
+ integrationSetting: 'string',
56
+ transformerSetting: { 'type': 'array', 'itemType': TransformAction },
57
+ type: 'string',
58
+ };
59
+ }
60
+ constructor(map) {
61
+ super(map);
62
+ }
63
+ }
64
+ exports.AlertEventIntegrationPolicyForModify = AlertEventIntegrationPolicyForModify;
65
+ class AlertEventIntegrationPolicyForView extends $tea.Model {
66
+ static names() {
67
+ return {
68
+ alertEventIntegrationPolicyId: 'alertEventIntegrationPolicyId',
69
+ alertEventIntegrationPolicyName: 'alertEventIntegrationPolicyName',
70
+ createTime: 'createTime',
71
+ description: 'description',
72
+ enable: 'enable',
73
+ filterSetting: 'filterSetting',
74
+ integrationSetting: 'integrationSetting',
75
+ transformerSetting: 'transformerSetting',
76
+ type: 'type',
77
+ updateTime: 'updateTime',
78
+ userId: 'userId',
79
+ workspace: 'workspace',
80
+ };
81
+ }
82
+ static types() {
83
+ return {
84
+ alertEventIntegrationPolicyId: 'string',
85
+ alertEventIntegrationPolicyName: 'string',
86
+ createTime: 'string',
87
+ description: 'string',
88
+ enable: 'boolean',
89
+ filterSetting: FilterSetting,
90
+ integrationSetting: 'string',
91
+ transformerSetting: { 'type': 'array', 'itemType': TransformAction },
92
+ type: 'string',
93
+ updateTime: 'string',
94
+ userId: 'string',
95
+ workspace: 'string',
96
+ };
97
+ }
98
+ constructor(map) {
99
+ super(map);
100
+ }
101
+ }
102
+ exports.AlertEventIntegrationPolicyForView = AlertEventIntegrationPolicyForView;
103
+ class AlertRuleAction extends $tea.Model {
104
+ static names() {
105
+ return {
106
+ actions: 'actions',
107
+ };
108
+ }
109
+ static types() {
110
+ return {
111
+ actions: { 'type': 'array', 'itemType': 'string' },
112
+ };
113
+ }
114
+ constructor(map) {
115
+ super(map);
116
+ }
117
+ }
118
+ exports.AlertRuleAction = AlertRuleAction;
119
+ class AlertRuleAlertMetricFilterDef extends $tea.Model {
120
+ static names() {
121
+ return {
122
+ dim: 'dim',
123
+ displayNameCn: 'displayNameCn',
124
+ displayNameEn: 'displayNameEn',
125
+ hidden: 'hidden',
126
+ opt: 'opt',
127
+ supportedOpts: 'supportedOpts',
128
+ };
129
+ }
130
+ static types() {
131
+ return {
132
+ dim: 'string',
133
+ displayNameCn: 'string',
134
+ displayNameEn: 'string',
135
+ hidden: 'boolean',
136
+ opt: 'string',
137
+ supportedOpts: { 'type': 'array', 'itemType': AlertRuleAlertMetricFilterDefSupportedOpts },
138
+ };
139
+ }
140
+ constructor(map) {
141
+ super(map);
142
+ }
143
+ }
144
+ exports.AlertRuleAlertMetricFilterDef = AlertRuleAlertMetricFilterDef;
145
+ class AlertRuleAlertMetricInput extends $tea.Model {
146
+ static names() {
147
+ return {
148
+ filterValues: 'filterValues',
149
+ groupId: 'groupId',
150
+ metricId: 'metricId',
151
+ paramValues: 'paramValues',
152
+ };
153
+ }
154
+ static types() {
155
+ return {
156
+ filterValues: { 'type': 'array', 'itemType': AlertRuleAlertMetricInputFilterValue },
157
+ groupId: 'string',
158
+ metricId: 'string',
159
+ paramValues: { 'type': 'array', 'itemType': AlertRuleAlertMetricInputParamValue },
160
+ };
161
+ }
162
+ constructor(map) {
163
+ super(map);
164
+ }
165
+ }
166
+ exports.AlertRuleAlertMetricInput = AlertRuleAlertMetricInput;
167
+ class AlertRuleAlertMetricInputFilterValue extends $tea.Model {
168
+ static names() {
169
+ return {
170
+ dim: 'dim',
171
+ opt: 'opt',
172
+ value: 'value',
173
+ };
174
+ }
175
+ static types() {
176
+ return {
177
+ dim: 'string',
178
+ opt: 'string',
179
+ value: 'string',
180
+ };
181
+ }
182
+ constructor(map) {
183
+ super(map);
184
+ }
185
+ }
186
+ exports.AlertRuleAlertMetricInputFilterValue = AlertRuleAlertMetricInputFilterValue;
187
+ class AlertRuleAlertMetricInputParamValue extends $tea.Model {
188
+ static names() {
189
+ return {
190
+ name: 'name',
191
+ value: 'value',
192
+ };
193
+ }
194
+ static types() {
195
+ return {
196
+ name: 'string',
197
+ value: 'string',
198
+ };
199
+ }
200
+ constructor(map) {
201
+ super(map);
202
+ }
203
+ }
204
+ exports.AlertRuleAlertMetricInputParamValue = AlertRuleAlertMetricInputParamValue;
205
+ class AlertRuleAlertMetricParamDef extends $tea.Model {
206
+ static names() {
207
+ return {
208
+ maxWidth: 'maxWidth',
209
+ minWidth: 'minWidth',
210
+ name: 'name',
211
+ placeholderCn: 'placeholderCn',
212
+ placeholderEn: 'placeholderEn',
213
+ type: 'type',
214
+ value: 'value',
215
+ values: 'values',
216
+ };
217
+ }
218
+ static types() {
219
+ return {
220
+ maxWidth: 'number',
221
+ minWidth: 'number',
222
+ name: 'string',
223
+ placeholderCn: 'string',
224
+ placeholderEn: 'string',
225
+ type: 'string',
226
+ value: 'string',
227
+ values: { 'type': 'array', 'itemType': AlertRuleAlertMetricParamDefValues },
228
+ };
229
+ }
230
+ constructor(map) {
231
+ super(map);
232
+ }
233
+ }
234
+ exports.AlertRuleAlertMetricParamDef = AlertRuleAlertMetricParamDef;
235
+ class AlertRuleCondition extends $tea.Model {
236
+ static names() {
237
+ return {
238
+ alertCount: 'alertCount',
239
+ caseList: 'caseList',
240
+ compareList: 'compareList',
241
+ noDataAppendValue: 'noDataAppendValue',
242
+ nodataAlertLevel: 'nodataAlertLevel',
243
+ type: 'type',
244
+ };
245
+ }
246
+ static types() {
247
+ return {
248
+ alertCount: 'number',
249
+ caseList: { 'type': 'array', 'itemType': AlertRuleConditionCaseList },
250
+ compareList: { 'type': 'array', 'itemType': AlertRuleConditionCompareList },
251
+ noDataAppendValue: 'string',
252
+ nodataAlertLevel: 'string',
253
+ type: 'string',
254
+ };
255
+ }
256
+ constructor(map) {
257
+ super(map);
258
+ }
259
+ }
260
+ exports.AlertRuleCondition = AlertRuleCondition;
261
+ class AlertRuleDataSource extends $tea.Model {
262
+ static names() {
263
+ return {
264
+ dsList: 'dsList',
265
+ instanceId: 'instanceId',
266
+ namespace: 'namespace',
267
+ type: 'type',
268
+ };
269
+ }
270
+ static types() {
271
+ return {
272
+ dsList: { 'type': 'array', 'itemType': AlertRuleDataSourceDsList },
273
+ instanceId: 'string',
274
+ namespace: 'string',
275
+ type: 'string',
276
+ };
277
+ }
278
+ constructor(map) {
279
+ super(map);
280
+ }
281
+ }
282
+ exports.AlertRuleDataSource = AlertRuleDataSource;
283
+ class AlertRuleLabelFilter extends $tea.Model {
284
+ static names() {
285
+ return {
286
+ labels: 'labels',
287
+ opt: 'opt',
288
+ };
289
+ }
290
+ static types() {
291
+ return {
292
+ labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
293
+ opt: 'string',
294
+ };
295
+ }
296
+ constructor(map) {
297
+ super(map);
298
+ }
299
+ }
300
+ exports.AlertRuleLabelFilter = AlertRuleLabelFilter;
301
+ class AlertRuleNotification extends $tea.Model {
302
+ static names() {
303
+ return {
304
+ contacts: 'contacts',
305
+ customWebhooks: 'customWebhooks',
306
+ dingWebhooks: 'dingWebhooks',
307
+ fsWebhooks: 'fsWebhooks',
308
+ groups: 'groups',
309
+ notifyTime: 'notifyTime',
310
+ silenceTime: 'silenceTime',
311
+ slackWebhooks: 'slackWebhooks',
312
+ wxWebhooks: 'wxWebhooks',
313
+ };
314
+ }
315
+ static types() {
316
+ return {
317
+ contacts: { 'type': 'array', 'itemType': 'string' },
318
+ customWebhooks: { 'type': 'array', 'itemType': 'string' },
319
+ dingWebhooks: { 'type': 'array', 'itemType': 'string' },
320
+ fsWebhooks: { 'type': 'array', 'itemType': 'string' },
321
+ groups: { 'type': 'array', 'itemType': 'string' },
322
+ notifyTime: AlertRuleTimeSpan,
323
+ silenceTime: 'number',
324
+ slackWebhooks: { 'type': 'array', 'itemType': 'string' },
325
+ wxWebhooks: { 'type': 'array', 'itemType': 'string' },
326
+ };
327
+ }
328
+ constructor(map) {
329
+ super(map);
330
+ }
331
+ }
332
+ exports.AlertRuleNotification = AlertRuleNotification;
333
+ class AlertRuleNotificationFilter extends $tea.Model {
334
+ static names() {
335
+ return {
336
+ contacts: 'contacts',
337
+ customWebhooks: 'customWebhooks',
338
+ dingWebhooks: 'dingWebhooks',
339
+ fsWebhooks: 'fsWebhooks',
340
+ groups: 'groups',
341
+ slackWebhooks: 'slackWebhooks',
342
+ wxWebhooks: 'wxWebhooks',
343
+ };
344
+ }
345
+ static types() {
346
+ return {
347
+ contacts: { 'type': 'array', 'itemType': 'string' },
348
+ customWebhooks: { 'type': 'array', 'itemType': 'string' },
349
+ dingWebhooks: { 'type': 'array', 'itemType': 'string' },
350
+ fsWebhooks: { 'type': 'array', 'itemType': 'string' },
351
+ groups: { 'type': 'array', 'itemType': 'string' },
352
+ slackWebhooks: { 'type': 'array', 'itemType': 'string' },
353
+ wxWebhooks: { 'type': 'array', 'itemType': 'string' },
354
+ };
355
+ }
356
+ constructor(map) {
357
+ super(map);
358
+ }
359
+ }
360
+ exports.AlertRuleNotificationFilter = AlertRuleNotificationFilter;
361
+ class AlertRuleQuery extends $tea.Model {
362
+ static names() {
363
+ return {
364
+ duration: 'duration',
365
+ expr: 'expr',
366
+ firstJoin: 'firstJoin',
367
+ groupFieldList: 'groupFieldList',
368
+ groupType: 'groupType',
369
+ queries: 'queries',
370
+ secondJoin: 'secondJoin',
371
+ type: 'type',
372
+ };
373
+ }
374
+ static types() {
375
+ return {
376
+ duration: 'number',
377
+ expr: 'string',
378
+ firstJoin: AlertRuleSlsQueryJoin,
379
+ groupFieldList: { 'type': 'array', 'itemType': 'string' },
380
+ groupType: 'string',
381
+ queries: { 'type': 'array', 'itemType': AlertRuleQueryQueries },
382
+ secondJoin: AlertRuleSlsQueryJoin,
383
+ type: 'string',
384
+ };
385
+ }
386
+ constructor(map) {
387
+ super(map);
388
+ }
389
+ }
390
+ exports.AlertRuleQuery = AlertRuleQuery;
391
+ class AlertRuleSend extends $tea.Model {
392
+ static names() {
393
+ return {
394
+ action: 'action',
395
+ notification: 'notification',
396
+ };
397
+ }
398
+ static types() {
399
+ return {
400
+ action: AlertRuleAction,
401
+ notification: AlertRuleNotification,
402
+ };
403
+ }
404
+ constructor(map) {
405
+ super(map);
406
+ }
407
+ }
408
+ exports.AlertRuleSend = AlertRuleSend;
409
+ class AlertRuleSlsQueryJoin extends $tea.Model {
410
+ static names() {
411
+ return {
412
+ conditions: 'conditions',
413
+ type: 'type',
414
+ };
415
+ }
416
+ static types() {
417
+ return {
418
+ conditions: { 'type': 'array', 'itemType': AlertRuleSlsQueryJoinConditions },
419
+ type: 'string',
420
+ };
421
+ }
422
+ constructor(map) {
423
+ super(map);
424
+ }
425
+ }
426
+ exports.AlertRuleSlsQueryJoin = AlertRuleSlsQueryJoin;
427
+ class AlertRuleTimeSpan extends $tea.Model {
428
+ static names() {
429
+ return {
430
+ dayOfWeek: 'dayOfWeek',
431
+ endTime: 'endTime',
432
+ gmtOffset: 'gmtOffset',
433
+ startTime: 'startTime',
434
+ };
435
+ }
436
+ static types() {
437
+ return {
438
+ dayOfWeek: { 'type': 'array', 'itemType': 'number' },
439
+ endTime: 'string',
440
+ gmtOffset: 'string',
441
+ startTime: 'string',
442
+ };
443
+ }
444
+ constructor(map) {
445
+ super(map);
446
+ }
447
+ }
448
+ exports.AlertRuleTimeSpan = AlertRuleTimeSpan;
449
+ class FilterSetting extends $tea.Model {
450
+ static names() {
451
+ return {
452
+ conditions: 'conditions',
453
+ expression: 'expression',
454
+ relation: 'relation',
455
+ };
456
+ }
457
+ static types() {
458
+ return {
459
+ conditions: { 'type': 'array', 'itemType': FilterSettingConditions },
460
+ expression: 'string',
461
+ relation: 'string',
462
+ };
463
+ }
464
+ constructor(map) {
465
+ super(map);
466
+ }
467
+ }
468
+ exports.FilterSetting = FilterSetting;
469
+ class MaintainWindowForModify extends $tea.Model {
470
+ static names() {
471
+ return {
472
+ description: 'description',
473
+ effective: 'effective',
474
+ endTime: 'endTime',
475
+ filterSetting: 'filterSetting',
476
+ maintainWindowName: 'maintainWindowName',
477
+ startTime: 'startTime',
478
+ };
479
+ }
480
+ static types() {
481
+ return {
482
+ description: 'string',
483
+ effective: 'string',
484
+ endTime: 'string',
485
+ filterSetting: FilterSetting,
486
+ maintainWindowName: 'string',
487
+ startTime: 'string',
488
+ };
489
+ }
490
+ constructor(map) {
491
+ super(map);
492
+ }
493
+ }
494
+ exports.MaintainWindowForModify = MaintainWindowForModify;
495
+ class MaintainWindowForView extends $tea.Model {
496
+ static names() {
497
+ return {
498
+ createTime: 'createTime',
499
+ description: 'description',
500
+ effective: 'effective',
501
+ enable: 'enable',
502
+ endTime: 'endTime',
503
+ filterSetting: 'filterSetting',
504
+ maintainWindowId: 'maintainWindowId',
505
+ maintainWindowName: 'maintainWindowName',
506
+ startTime: 'startTime',
507
+ updateTime: 'updateTime',
508
+ userId: 'userId',
509
+ workspace: 'workspace',
510
+ };
511
+ }
512
+ static types() {
513
+ return {
514
+ createTime: 'string',
515
+ description: 'string',
516
+ effective: 'string',
517
+ enable: 'boolean',
518
+ endTime: 'string',
519
+ filterSetting: FilterSetting,
520
+ maintainWindowId: 'string',
521
+ maintainWindowName: 'string',
522
+ startTime: 'string',
523
+ updateTime: 'string',
524
+ userId: 'string',
525
+ workspace: 'string',
526
+ };
527
+ }
528
+ constructor(map) {
529
+ super(map);
530
+ }
531
+ }
532
+ exports.MaintainWindowForView = MaintainWindowForView;
533
+ class NotifyStrategyForModify extends $tea.Model {
534
+ static names() {
535
+ return {
536
+ customTemplateEntries: 'customTemplateEntries',
537
+ description: 'description',
538
+ groupingSetting: 'groupingSetting',
539
+ ignoreRestoredNotification: 'ignoreRestoredNotification',
540
+ notifyStrategyName: 'notifyStrategyName',
541
+ routes: 'routes',
542
+ };
543
+ }
544
+ static types() {
545
+ return {
546
+ customTemplateEntries: { 'type': 'array', 'itemType': NotifyStrategyForModifyCustomTemplateEntries },
547
+ description: 'string',
548
+ groupingSetting: NotifyStrategyForModifyGroupingSetting,
549
+ ignoreRestoredNotification: 'boolean',
550
+ notifyStrategyName: 'string',
551
+ routes: { 'type': 'array', 'itemType': NotifyStrategyForModifyRoutes },
552
+ };
553
+ }
554
+ constructor(map) {
555
+ super(map);
556
+ }
557
+ }
558
+ exports.NotifyStrategyForModify = NotifyStrategyForModify;
559
+ class NotifyStrategyForView extends $tea.Model {
560
+ static names() {
561
+ return {
562
+ createTime: 'createTime',
563
+ customTemplateEntries: 'customTemplateEntries',
564
+ description: 'description',
565
+ enable: 'enable',
566
+ groupingSetting: 'groupingSetting',
567
+ ignoreRestoredNotification: 'ignoreRestoredNotification',
568
+ notifyStrategyId: 'notifyStrategyId',
569
+ notifyStrategyName: 'notifyStrategyName',
570
+ routes: 'routes',
571
+ updateTime: 'updateTime',
572
+ userId: 'userId',
573
+ workspace: 'workspace',
574
+ };
575
+ }
576
+ static types() {
577
+ return {
578
+ createTime: 'string',
579
+ customTemplateEntries: { 'type': 'array', 'itemType': NotifyStrategyForViewCustomTemplateEntries },
580
+ description: 'string',
581
+ enable: 'boolean',
582
+ groupingSetting: NotifyStrategyForViewGroupingSetting,
583
+ ignoreRestoredNotification: 'boolean',
584
+ notifyStrategyId: 'string',
585
+ notifyStrategyName: 'string',
586
+ routes: { 'type': 'array', 'itemType': NotifyStrategyForViewRoutes },
587
+ updateTime: 'string',
588
+ userId: 'string',
589
+ workspace: 'string',
590
+ };
591
+ }
592
+ constructor(map) {
593
+ super(map);
594
+ }
595
+ }
596
+ exports.NotifyStrategyForView = NotifyStrategyForView;
597
+ class SubscriptionForModify extends $tea.Model {
598
+ static names() {
599
+ return {
600
+ description: 'description',
601
+ filterSetting: 'filterSetting',
602
+ notifyStrategyId: 'notifyStrategyId',
603
+ pushingSetting: 'pushingSetting',
604
+ subscriptionName: 'subscriptionName',
605
+ };
606
+ }
607
+ static types() {
608
+ return {
609
+ description: 'string',
610
+ filterSetting: FilterSetting,
611
+ notifyStrategyId: 'string',
612
+ pushingSetting: SubscriptionForModifyPushingSetting,
613
+ subscriptionName: 'string',
614
+ };
615
+ }
616
+ constructor(map) {
617
+ super(map);
618
+ }
619
+ }
620
+ exports.SubscriptionForModify = SubscriptionForModify;
621
+ class SubscriptionForView extends $tea.Model {
622
+ static names() {
623
+ return {
624
+ createTime: 'createTime',
625
+ description: 'description',
626
+ enable: 'enable',
627
+ filterSetting: 'filterSetting',
628
+ notifyStrategyId: 'notifyStrategyId',
629
+ pushingSetting: 'pushingSetting',
630
+ subscriptionId: 'subscriptionId',
631
+ subscriptionName: 'subscriptionName',
632
+ updateTime: 'updateTime',
633
+ userId: 'userId',
634
+ workspace: 'workspace',
635
+ };
636
+ }
637
+ static types() {
638
+ return {
639
+ createTime: 'string',
640
+ description: 'string',
641
+ enable: 'boolean',
642
+ filterSetting: FilterSetting,
643
+ notifyStrategyId: 'string',
644
+ pushingSetting: SubscriptionForViewPushingSetting,
645
+ subscriptionId: 'string',
646
+ subscriptionName: 'string',
647
+ updateTime: 'string',
648
+ userId: 'string',
649
+ workspace: 'string',
650
+ };
651
+ }
652
+ constructor(map) {
653
+ super(map);
654
+ }
655
+ }
656
+ exports.SubscriptionForView = SubscriptionForView;
657
+ class TransformAction extends $tea.Model {
658
+ static names() {
659
+ return {
660
+ filterSetting: 'filterSetting',
661
+ labelKey: 'labelKey',
662
+ mapping: 'mapping',
663
+ regExp: 'regExp',
664
+ source: 'source',
665
+ target: 'target',
666
+ type: 'type',
667
+ value: 'value',
668
+ variable: 'variable',
669
+ };
670
+ }
671
+ static types() {
672
+ return {
673
+ filterSetting: FilterSetting,
674
+ labelKey: 'string',
675
+ mapping: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
676
+ regExp: 'string',
677
+ source: 'string',
678
+ target: 'string',
679
+ type: 'string',
680
+ value: 'string',
681
+ variable: 'string',
682
+ };
683
+ }
684
+ constructor(map) {
685
+ super(map);
686
+ }
687
+ }
688
+ exports.TransformAction = TransformAction;
689
+ class TransformerForModify extends $tea.Model {
690
+ static names() {
691
+ return {
692
+ actions: 'actions',
693
+ description: 'description',
694
+ filterSetting: 'filterSetting',
695
+ quitAfterMatch: 'quitAfterMatch',
696
+ sortId: 'sortId',
697
+ transformerName: 'transformerName',
698
+ };
699
+ }
700
+ static types() {
701
+ return {
702
+ actions: { 'type': 'array', 'itemType': TransformAction },
703
+ description: 'string',
704
+ filterSetting: FilterSetting,
705
+ quitAfterMatch: 'boolean',
706
+ sortId: 'number',
707
+ transformerName: 'string',
708
+ };
709
+ }
710
+ constructor(map) {
711
+ super(map);
712
+ }
713
+ }
714
+ exports.TransformerForModify = TransformerForModify;
715
+ class TransformerForView extends $tea.Model {
716
+ static names() {
717
+ return {
718
+ actions: 'actions',
719
+ createTime: 'createTime',
720
+ description: 'description',
721
+ enable: 'enable',
722
+ filterSetting: 'filterSetting',
723
+ quitAfterMatch: 'quitAfterMatch',
724
+ sortId: 'sortId',
725
+ transformerId: 'transformerId',
726
+ transformerName: 'transformerName',
727
+ updateTime: 'updateTime',
728
+ userId: 'userId',
729
+ workspace: 'workspace',
730
+ };
731
+ }
732
+ static types() {
733
+ return {
734
+ actions: { 'type': 'array', 'itemType': TransformAction },
735
+ createTime: 'string',
736
+ description: 'string',
737
+ enable: 'boolean',
738
+ filterSetting: FilterSetting,
739
+ quitAfterMatch: 'boolean',
740
+ sortId: 'number',
741
+ transformerId: 'string',
742
+ transformerName: 'string',
743
+ updateTime: 'string',
744
+ userId: 'string',
745
+ workspace: 'string',
746
+ };
747
+ }
748
+ constructor(map) {
749
+ super(map);
750
+ }
751
+ }
752
+ exports.TransformerForView = TransformerForView;
753
+ class ListAlertActionsRequest extends $tea.Model {
754
+ static names() {
755
+ return {
756
+ alertActionIds: 'alertActionIds',
757
+ alertActionName: 'alertActionName',
758
+ pageNumber: 'pageNumber',
759
+ pageSize: 'pageSize',
760
+ type: 'type',
761
+ };
762
+ }
763
+ static types() {
764
+ return {
765
+ alertActionIds: { 'type': 'array', 'itemType': 'string' },
766
+ alertActionName: 'string',
767
+ pageNumber: 'number',
768
+ pageSize: 'number',
769
+ type: 'string',
770
+ };
771
+ }
772
+ constructor(map) {
773
+ super(map);
774
+ }
775
+ }
776
+ exports.ListAlertActionsRequest = ListAlertActionsRequest;
777
+ class ListAlertActionsShrinkRequest extends $tea.Model {
778
+ static names() {
779
+ return {
780
+ alertActionIdsShrink: 'alertActionIds',
781
+ alertActionName: 'alertActionName',
782
+ pageNumber: 'pageNumber',
783
+ pageSize: 'pageSize',
784
+ type: 'type',
785
+ };
786
+ }
787
+ static types() {
788
+ return {
789
+ alertActionIdsShrink: 'string',
790
+ alertActionName: 'string',
791
+ pageNumber: 'number',
792
+ pageSize: 'number',
793
+ type: 'string',
794
+ };
795
+ }
796
+ constructor(map) {
797
+ super(map);
798
+ }
799
+ }
800
+ exports.ListAlertActionsShrinkRequest = ListAlertActionsShrinkRequest;
801
+ class ListAlertActionsResponseBody extends $tea.Model {
802
+ static names() {
803
+ return {
804
+ alertActions: 'alertActions',
805
+ pageNumber: 'pageNumber',
806
+ pageSize: 'pageSize',
807
+ requestId: 'requestId',
808
+ total: 'total',
809
+ };
810
+ }
811
+ static types() {
812
+ return {
813
+ alertActions: { 'type': 'array', 'itemType': ListAlertActionsResponseBodyAlertActions },
814
+ pageNumber: 'number',
815
+ pageSize: 'number',
816
+ requestId: 'string',
817
+ total: 'number',
818
+ };
819
+ }
820
+ constructor(map) {
821
+ super(map);
822
+ }
823
+ }
824
+ exports.ListAlertActionsResponseBody = ListAlertActionsResponseBody;
825
+ class ListAlertActionsResponse extends $tea.Model {
826
+ static names() {
827
+ return {
828
+ headers: 'headers',
829
+ statusCode: 'statusCode',
830
+ body: 'body',
831
+ };
832
+ }
833
+ static types() {
834
+ return {
835
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
836
+ statusCode: 'number',
837
+ body: ListAlertActionsResponseBody,
838
+ };
839
+ }
840
+ constructor(map) {
841
+ super(map);
842
+ }
843
+ }
844
+ exports.ListAlertActionsResponse = ListAlertActionsResponse;
845
+ class AlertRuleAlertMetricFilterDefSupportedOpts extends $tea.Model {
846
+ static names() {
847
+ return {
848
+ displayNameCn: 'displayNameCn',
849
+ displayNameEn: 'displayNameEn',
850
+ value: 'value',
851
+ };
852
+ }
853
+ static types() {
854
+ return {
855
+ displayNameCn: 'string',
856
+ displayNameEn: 'string',
857
+ value: 'string',
858
+ };
859
+ }
860
+ constructor(map) {
861
+ super(map);
862
+ }
863
+ }
864
+ exports.AlertRuleAlertMetricFilterDefSupportedOpts = AlertRuleAlertMetricFilterDefSupportedOpts;
865
+ class AlertRuleAlertMetricParamDefValues extends $tea.Model {
866
+ static names() {
867
+ return {
868
+ labelCn: 'labelCn',
869
+ labelEn: 'labelEn',
870
+ value: 'value',
871
+ };
872
+ }
873
+ static types() {
874
+ return {
875
+ labelCn: 'string',
876
+ labelEn: 'string',
877
+ value: 'string',
878
+ };
879
+ }
880
+ constructor(map) {
881
+ super(map);
882
+ }
883
+ }
884
+ exports.AlertRuleAlertMetricParamDefValues = AlertRuleAlertMetricParamDefValues;
885
+ class AlertRuleConditionCaseList extends $tea.Model {
886
+ static names() {
887
+ return {
888
+ condition: 'condition',
889
+ countCondition: 'countCondition',
890
+ level: 'level',
891
+ type: 'type',
892
+ };
893
+ }
894
+ static types() {
895
+ return {
896
+ condition: 'string',
897
+ countCondition: 'string',
898
+ level: 'string',
899
+ type: 'string',
900
+ };
901
+ }
902
+ constructor(map) {
903
+ super(map);
904
+ }
905
+ }
906
+ exports.AlertRuleConditionCaseList = AlertRuleConditionCaseList;
907
+ class AlertRuleConditionCompareListValueLevelList extends $tea.Model {
908
+ static names() {
909
+ return {
910
+ level: 'level',
911
+ value: 'value',
912
+ };
913
+ }
914
+ static types() {
915
+ return {
916
+ level: 'string',
917
+ value: 'number',
918
+ };
919
+ }
920
+ constructor(map) {
921
+ super(map);
922
+ }
923
+ }
924
+ exports.AlertRuleConditionCompareListValueLevelList = AlertRuleConditionCompareListValueLevelList;
925
+ class AlertRuleConditionCompareList extends $tea.Model {
926
+ static names() {
927
+ return {
928
+ aggregate: 'aggregate',
929
+ oper: 'oper',
930
+ value: 'value',
931
+ valueLevelList: 'valueLevelList',
932
+ yoyTimeUnit: 'yoyTimeUnit',
933
+ yoyTimeValue: 'yoyTimeValue',
934
+ };
935
+ }
936
+ static types() {
937
+ return {
938
+ aggregate: 'string',
939
+ oper: 'string',
940
+ value: 'number',
941
+ valueLevelList: { 'type': 'array', 'itemType': AlertRuleConditionCompareListValueLevelList },
942
+ yoyTimeUnit: 'string',
943
+ yoyTimeValue: 'number',
944
+ };
945
+ }
946
+ constructor(map) {
947
+ super(map);
948
+ }
949
+ }
950
+ exports.AlertRuleConditionCompareList = AlertRuleConditionCompareList;
951
+ class AlertRuleDataSourceDsList extends $tea.Model {
952
+ static names() {
953
+ return {
954
+ project: 'project',
955
+ regionId: 'regionId',
956
+ store: 'store',
957
+ type: 'type',
958
+ };
959
+ }
960
+ static types() {
961
+ return {
962
+ project: 'string',
963
+ regionId: 'string',
964
+ store: 'string',
965
+ type: 'string',
966
+ };
967
+ }
968
+ constructor(map) {
969
+ super(map);
970
+ }
971
+ }
972
+ exports.AlertRuleDataSourceDsList = AlertRuleDataSourceDsList;
973
+ class AlertRuleQueryQueries extends $tea.Model {
974
+ static names() {
975
+ return {
976
+ duration: 'duration',
977
+ end: 'end',
978
+ expr: 'expr',
979
+ start: 'start',
980
+ timeUnit: 'timeUnit',
981
+ window: 'window',
982
+ };
983
+ }
984
+ static types() {
985
+ return {
986
+ duration: 'number',
987
+ end: 'number',
988
+ expr: 'string',
989
+ start: 'number',
990
+ timeUnit: 'string',
991
+ window: 'string',
992
+ };
993
+ }
994
+ constructor(map) {
995
+ super(map);
996
+ }
997
+ }
998
+ exports.AlertRuleQueryQueries = AlertRuleQueryQueries;
999
+ class AlertRuleSlsQueryJoinConditions extends $tea.Model {
1000
+ static names() {
1001
+ return {
1002
+ firstField: 'firstField',
1003
+ oper: 'oper',
1004
+ secondField: 'secondField',
1005
+ };
1006
+ }
1007
+ static types() {
1008
+ return {
1009
+ firstField: 'string',
1010
+ oper: 'string',
1011
+ secondField: 'string',
1012
+ };
1013
+ }
1014
+ constructor(map) {
1015
+ super(map);
1016
+ }
1017
+ }
1018
+ exports.AlertRuleSlsQueryJoinConditions = AlertRuleSlsQueryJoinConditions;
1019
+ class FilterSettingConditions extends $tea.Model {
1020
+ static names() {
1021
+ return {
1022
+ field: 'field',
1023
+ op: 'op',
1024
+ value: 'value',
1025
+ };
1026
+ }
1027
+ static types() {
1028
+ return {
1029
+ field: 'string',
1030
+ op: 'string',
1031
+ value: 'string',
1032
+ };
1033
+ }
1034
+ constructor(map) {
1035
+ super(map);
1036
+ }
1037
+ }
1038
+ exports.FilterSettingConditions = FilterSettingConditions;
1039
+ class NotifyStrategyForModifyCustomTemplateEntries extends $tea.Model {
1040
+ static names() {
1041
+ return {
1042
+ targetType: 'targetType',
1043
+ templateUuid: 'templateUuid',
1044
+ };
1045
+ }
1046
+ static types() {
1047
+ return {
1048
+ targetType: 'string',
1049
+ templateUuid: 'string',
1050
+ };
1051
+ }
1052
+ constructor(map) {
1053
+ super(map);
1054
+ }
1055
+ }
1056
+ exports.NotifyStrategyForModifyCustomTemplateEntries = NotifyStrategyForModifyCustomTemplateEntries;
1057
+ class NotifyStrategyForModifyGroupingSetting extends $tea.Model {
1058
+ static names() {
1059
+ return {
1060
+ groupingKeys: 'groupingKeys',
1061
+ periodMin: 'periodMin',
1062
+ silenceSec: 'silenceSec',
1063
+ times: 'times',
1064
+ };
1065
+ }
1066
+ static types() {
1067
+ return {
1068
+ groupingKeys: { 'type': 'array', 'itemType': 'string' },
1069
+ periodMin: 'number',
1070
+ silenceSec: 'number',
1071
+ times: 'number',
1072
+ };
1073
+ }
1074
+ constructor(map) {
1075
+ super(map);
1076
+ }
1077
+ }
1078
+ exports.NotifyStrategyForModifyGroupingSetting = NotifyStrategyForModifyGroupingSetting;
1079
+ class NotifyStrategyForModifyRoutesChannels extends $tea.Model {
1080
+ static names() {
1081
+ return {
1082
+ channelType: 'channelType',
1083
+ enabledSubChannels: 'enabledSubChannels',
1084
+ receivers: 'receivers',
1085
+ };
1086
+ }
1087
+ static types() {
1088
+ return {
1089
+ channelType: 'string',
1090
+ enabledSubChannels: { 'type': 'array', 'itemType': 'string' },
1091
+ receivers: { 'type': 'array', 'itemType': 'string' },
1092
+ };
1093
+ }
1094
+ constructor(map) {
1095
+ super(map);
1096
+ }
1097
+ }
1098
+ exports.NotifyStrategyForModifyRoutesChannels = NotifyStrategyForModifyRoutesChannels;
1099
+ class NotifyStrategyForModifyRoutesEffectTimeRange extends $tea.Model {
1100
+ static names() {
1101
+ return {
1102
+ dayInWeek: 'dayInWeek',
1103
+ endTimeInMinute: 'endTimeInMinute',
1104
+ startTimeInMinute: 'startTimeInMinute',
1105
+ timeZone: 'timeZone',
1106
+ };
1107
+ }
1108
+ static types() {
1109
+ return {
1110
+ dayInWeek: { 'type': 'array', 'itemType': 'number' },
1111
+ endTimeInMinute: 'number',
1112
+ startTimeInMinute: 'number',
1113
+ timeZone: 'string',
1114
+ };
1115
+ }
1116
+ constructor(map) {
1117
+ super(map);
1118
+ }
1119
+ }
1120
+ exports.NotifyStrategyForModifyRoutesEffectTimeRange = NotifyStrategyForModifyRoutesEffectTimeRange;
1121
+ class NotifyStrategyForModifyRoutes extends $tea.Model {
1122
+ static names() {
1123
+ return {
1124
+ channels: 'channels',
1125
+ effectTimeRange: 'effectTimeRange',
1126
+ filterSetting: 'filterSetting',
1127
+ severities: 'severities',
1128
+ };
1129
+ }
1130
+ static types() {
1131
+ return {
1132
+ channels: { 'type': 'array', 'itemType': NotifyStrategyForModifyRoutesChannels },
1133
+ effectTimeRange: NotifyStrategyForModifyRoutesEffectTimeRange,
1134
+ filterSetting: FilterSetting,
1135
+ severities: { 'type': 'array', 'itemType': 'string' },
1136
+ };
1137
+ }
1138
+ constructor(map) {
1139
+ super(map);
1140
+ }
1141
+ }
1142
+ exports.NotifyStrategyForModifyRoutes = NotifyStrategyForModifyRoutes;
1143
+ class NotifyStrategyForViewCustomTemplateEntries extends $tea.Model {
1144
+ static names() {
1145
+ return {
1146
+ targetType: 'targetType',
1147
+ templateUuid: 'templateUuid',
1148
+ };
1149
+ }
1150
+ static types() {
1151
+ return {
1152
+ targetType: 'string',
1153
+ templateUuid: 'string',
1154
+ };
1155
+ }
1156
+ constructor(map) {
1157
+ super(map);
1158
+ }
1159
+ }
1160
+ exports.NotifyStrategyForViewCustomTemplateEntries = NotifyStrategyForViewCustomTemplateEntries;
1161
+ class NotifyStrategyForViewGroupingSetting extends $tea.Model {
1162
+ static names() {
1163
+ return {
1164
+ groupingKeys: 'groupingKeys',
1165
+ periodMin: 'periodMin',
1166
+ silenceSec: 'silenceSec',
1167
+ times: 'times',
1168
+ };
1169
+ }
1170
+ static types() {
1171
+ return {
1172
+ groupingKeys: { 'type': 'array', 'itemType': 'string' },
1173
+ periodMin: 'number',
1174
+ silenceSec: 'number',
1175
+ times: 'number',
1176
+ };
1177
+ }
1178
+ constructor(map) {
1179
+ super(map);
1180
+ }
1181
+ }
1182
+ exports.NotifyStrategyForViewGroupingSetting = NotifyStrategyForViewGroupingSetting;
1183
+ class NotifyStrategyForViewRoutesChannels extends $tea.Model {
1184
+ static names() {
1185
+ return {
1186
+ channelType: 'channelType',
1187
+ enabledSubChannels: 'enabledSubChannels',
1188
+ receivers: 'receivers',
1189
+ };
1190
+ }
1191
+ static types() {
1192
+ return {
1193
+ channelType: 'string',
1194
+ enabledSubChannels: { 'type': 'array', 'itemType': 'string' },
1195
+ receivers: { 'type': 'array', 'itemType': 'string' },
1196
+ };
1197
+ }
1198
+ constructor(map) {
1199
+ super(map);
1200
+ }
1201
+ }
1202
+ exports.NotifyStrategyForViewRoutesChannels = NotifyStrategyForViewRoutesChannels;
1203
+ class NotifyStrategyForViewRoutesEffectTimeRange extends $tea.Model {
1204
+ static names() {
1205
+ return {
1206
+ dayInWeek: 'dayInWeek',
1207
+ endTimeInMinute: 'endTimeInMinute',
1208
+ startTimeInMinute: 'startTimeInMinute',
1209
+ timeZone: 'timeZone',
1210
+ };
1211
+ }
1212
+ static types() {
1213
+ return {
1214
+ dayInWeek: { 'type': 'array', 'itemType': 'number' },
1215
+ endTimeInMinute: 'number',
1216
+ startTimeInMinute: 'number',
1217
+ timeZone: 'string',
1218
+ };
1219
+ }
1220
+ constructor(map) {
1221
+ super(map);
1222
+ }
1223
+ }
1224
+ exports.NotifyStrategyForViewRoutesEffectTimeRange = NotifyStrategyForViewRoutesEffectTimeRange;
1225
+ class NotifyStrategyForViewRoutes extends $tea.Model {
1226
+ static names() {
1227
+ return {
1228
+ channels: 'channels',
1229
+ effectTimeRange: 'effectTimeRange',
1230
+ filterSetting: 'filterSetting',
1231
+ severities: 'severities',
1232
+ };
1233
+ }
1234
+ static types() {
1235
+ return {
1236
+ channels: { 'type': 'array', 'itemType': NotifyStrategyForViewRoutesChannels },
1237
+ effectTimeRange: NotifyStrategyForViewRoutesEffectTimeRange,
1238
+ filterSetting: FilterSetting,
1239
+ severities: { 'type': 'array', 'itemType': 'string' },
1240
+ };
1241
+ }
1242
+ constructor(map) {
1243
+ super(map);
1244
+ }
1245
+ }
1246
+ exports.NotifyStrategyForViewRoutes = NotifyStrategyForViewRoutes;
1247
+ class SubscriptionForModifyPushingSetting extends $tea.Model {
1248
+ static names() {
1249
+ return {
1250
+ alertActionIds: 'alertActionIds',
1251
+ responsePlanId: 'responsePlanId',
1252
+ restoreActionIds: 'restoreActionIds',
1253
+ templateUuid: 'templateUuid',
1254
+ };
1255
+ }
1256
+ static types() {
1257
+ return {
1258
+ alertActionIds: { 'type': 'array', 'itemType': 'string' },
1259
+ responsePlanId: 'string',
1260
+ restoreActionIds: { 'type': 'array', 'itemType': 'string' },
1261
+ templateUuid: 'string',
1262
+ };
1263
+ }
1264
+ constructor(map) {
1265
+ super(map);
1266
+ }
1267
+ }
1268
+ exports.SubscriptionForModifyPushingSetting = SubscriptionForModifyPushingSetting;
1269
+ class SubscriptionForViewPushingSetting extends $tea.Model {
1270
+ static names() {
1271
+ return {
1272
+ alertActionIds: 'alertActionIds',
1273
+ responsePlanId: 'responsePlanId',
1274
+ restoreActionIds: 'restoreActionIds',
1275
+ templateUuid: 'templateUuid',
1276
+ };
1277
+ }
1278
+ static types() {
1279
+ return {
1280
+ alertActionIds: { 'type': 'array', 'itemType': 'string' },
1281
+ responsePlanId: 'string',
1282
+ restoreActionIds: { 'type': 'array', 'itemType': 'string' },
1283
+ templateUuid: 'string',
1284
+ };
1285
+ }
1286
+ constructor(map) {
1287
+ super(map);
1288
+ }
1289
+ }
1290
+ exports.SubscriptionForViewPushingSetting = SubscriptionForViewPushingSetting;
1291
+ class ListAlertActionsResponseBodyAlertActionsEssParam extends $tea.Model {
1292
+ static names() {
1293
+ return {
1294
+ essGroupId: 'essGroupId',
1295
+ essRuleId: 'essRuleId',
1296
+ regionId: 'regionId',
1297
+ };
1298
+ }
1299
+ static types() {
1300
+ return {
1301
+ essGroupId: 'string',
1302
+ essRuleId: 'string',
1303
+ regionId: 'string',
1304
+ };
1305
+ }
1306
+ constructor(map) {
1307
+ super(map);
1308
+ }
1309
+ }
1310
+ exports.ListAlertActionsResponseBodyAlertActionsEssParam = ListAlertActionsResponseBodyAlertActionsEssParam;
1311
+ class ListAlertActionsResponseBodyAlertActionsFcParam extends $tea.Model {
1312
+ static names() {
1313
+ return {
1314
+ function: 'function',
1315
+ regionId: 'regionId',
1316
+ service: 'service',
1317
+ };
1318
+ }
1319
+ static types() {
1320
+ return {
1321
+ function: 'string',
1322
+ regionId: 'string',
1323
+ service: 'string',
1324
+ };
1325
+ }
1326
+ constructor(map) {
1327
+ super(map);
1328
+ }
1329
+ }
1330
+ exports.ListAlertActionsResponseBodyAlertActionsFcParam = ListAlertActionsResponseBodyAlertActionsFcParam;
1331
+ class ListAlertActionsResponseBodyAlertActionsMnsParam extends $tea.Model {
1332
+ static names() {
1333
+ return {
1334
+ mnsType: 'mnsType',
1335
+ name: 'name',
1336
+ regionId: 'regionId',
1337
+ };
1338
+ }
1339
+ static types() {
1340
+ return {
1341
+ mnsType: 'string',
1342
+ name: 'string',
1343
+ regionId: 'string',
1344
+ };
1345
+ }
1346
+ constructor(map) {
1347
+ super(map);
1348
+ }
1349
+ }
1350
+ exports.ListAlertActionsResponseBodyAlertActionsMnsParam = ListAlertActionsResponseBodyAlertActionsMnsParam;
1351
+ class ListAlertActionsResponseBodyAlertActionsPagerDutyParam extends $tea.Model {
1352
+ static names() {
1353
+ return {
1354
+ key: 'key',
1355
+ url: 'url',
1356
+ };
1357
+ }
1358
+ static types() {
1359
+ return {
1360
+ key: 'string',
1361
+ url: 'string',
1362
+ };
1363
+ }
1364
+ constructor(map) {
1365
+ super(map);
1366
+ }
1367
+ }
1368
+ exports.ListAlertActionsResponseBodyAlertActionsPagerDutyParam = ListAlertActionsResponseBodyAlertActionsPagerDutyParam;
1369
+ class ListAlertActionsResponseBodyAlertActionsSlsParam extends $tea.Model {
1370
+ static names() {
1371
+ return {
1372
+ logstore: 'logstore',
1373
+ project: 'project',
1374
+ regionId: 'regionId',
1375
+ };
1376
+ }
1377
+ static types() {
1378
+ return {
1379
+ logstore: 'string',
1380
+ project: 'string',
1381
+ regionId: 'string',
1382
+ };
1383
+ }
1384
+ constructor(map) {
1385
+ super(map);
1386
+ }
1387
+ }
1388
+ exports.ListAlertActionsResponseBodyAlertActionsSlsParam = ListAlertActionsResponseBodyAlertActionsSlsParam;
1389
+ class ListAlertActionsResponseBodyAlertActionsWebhookParam extends $tea.Model {
1390
+ static names() {
1391
+ return {
1392
+ contentType: 'contentType',
1393
+ headers: 'headers',
1394
+ method: 'method',
1395
+ url: 'url',
1396
+ };
1397
+ }
1398
+ static types() {
1399
+ return {
1400
+ contentType: 'string',
1401
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1402
+ method: 'string',
1403
+ url: 'string',
1404
+ };
1405
+ }
1406
+ constructor(map) {
1407
+ super(map);
1408
+ }
1409
+ }
1410
+ exports.ListAlertActionsResponseBodyAlertActionsWebhookParam = ListAlertActionsResponseBodyAlertActionsWebhookParam;
1411
+ class ListAlertActionsResponseBodyAlertActions extends $tea.Model {
1412
+ static names() {
1413
+ return {
1414
+ alertActionId: 'alertActionId',
1415
+ alertActionName: 'alertActionName',
1416
+ essParam: 'essParam',
1417
+ fcParam: 'fcParam',
1418
+ mnsParam: 'mnsParam',
1419
+ pagerDutyParam: 'pagerDutyParam',
1420
+ slsParam: 'slsParam',
1421
+ type: 'type',
1422
+ webhookParam: 'webhookParam',
1423
+ };
1424
+ }
1425
+ static types() {
1426
+ return {
1427
+ alertActionId: 'string',
1428
+ alertActionName: 'string',
1429
+ essParam: ListAlertActionsResponseBodyAlertActionsEssParam,
1430
+ fcParam: ListAlertActionsResponseBodyAlertActionsFcParam,
1431
+ mnsParam: ListAlertActionsResponseBodyAlertActionsMnsParam,
1432
+ pagerDutyParam: ListAlertActionsResponseBodyAlertActionsPagerDutyParam,
1433
+ slsParam: ListAlertActionsResponseBodyAlertActionsSlsParam,
1434
+ type: 'string',
1435
+ webhookParam: ListAlertActionsResponseBodyAlertActionsWebhookParam,
1436
+ };
1437
+ }
1438
+ constructor(map) {
1439
+ super(map);
1440
+ }
1441
+ }
1442
+ exports.ListAlertActionsResponseBodyAlertActions = ListAlertActionsResponseBodyAlertActions;
1443
+ class Client extends openapi_client_1.default {
1444
+ constructor(config) {
1445
+ super(config);
1446
+ this._endpointRule = "";
1447
+ this.checkConfig(config);
1448
+ this._endpoint = this.getEndpoint("cms", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
1449
+ }
1450
+ getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) {
1451
+ if (!tea_util_1.default.empty(endpoint)) {
1452
+ return endpoint;
1453
+ }
1454
+ if (!tea_util_1.default.isUnset(endpointMap) && !tea_util_1.default.empty(endpointMap[regionId])) {
1455
+ return endpointMap[regionId];
1456
+ }
1457
+ return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
1458
+ }
1459
+ /**
1460
+ * 查询告警动作
1461
+ *
1462
+ * @param tmpReq - ListAlertActionsRequest
1463
+ * @param headers - map
1464
+ * @param runtime - runtime options for this request RuntimeOptions
1465
+ * @returns ListAlertActionsResponse
1466
+ */
1467
+ async listAlertActionsWithOptions(tmpReq, headers, runtime) {
1468
+ tea_util_1.default.validateModel(tmpReq);
1469
+ let request = new ListAlertActionsShrinkRequest({});
1470
+ openapi_util_1.default.convert(tmpReq, request);
1471
+ if (!tea_util_1.default.isUnset(tmpReq.alertActionIds)) {
1472
+ request.alertActionIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.alertActionIds, "alertActionIds", "json");
1473
+ }
1474
+ let query = {};
1475
+ if (!tea_util_1.default.isUnset(request.alertActionIdsShrink)) {
1476
+ query["alertActionIds"] = request.alertActionIdsShrink;
1477
+ }
1478
+ if (!tea_util_1.default.isUnset(request.alertActionName)) {
1479
+ query["alertActionName"] = request.alertActionName;
1480
+ }
1481
+ if (!tea_util_1.default.isUnset(request.pageNumber)) {
1482
+ query["pageNumber"] = request.pageNumber;
1483
+ }
1484
+ if (!tea_util_1.default.isUnset(request.pageSize)) {
1485
+ query["pageSize"] = request.pageSize;
1486
+ }
1487
+ if (!tea_util_1.default.isUnset(request.type)) {
1488
+ query["type"] = request.type;
1489
+ }
1490
+ let req = new $OpenApi.OpenApiRequest({
1491
+ headers: headers,
1492
+ query: openapi_util_1.default.query(query),
1493
+ });
1494
+ let params = new $OpenApi.Params({
1495
+ action: "ListAlertActions",
1496
+ version: "2024-03-30",
1497
+ protocol: "HTTPS",
1498
+ pathname: `/alertActions`,
1499
+ method: "GET",
1500
+ authType: "AK",
1501
+ style: "ROA",
1502
+ reqBodyType: "json",
1503
+ bodyType: "json",
1504
+ });
1505
+ return $tea.cast(await this.callApi(params, req, runtime), new ListAlertActionsResponse({}));
1506
+ }
1507
+ /**
1508
+ * 查询告警动作
1509
+ *
1510
+ * @param request - ListAlertActionsRequest
1511
+ * @returns ListAlertActionsResponse
1512
+ */
1513
+ async listAlertActions(request) {
1514
+ let runtime = new $Util.RuntimeOptions({});
1515
+ let headers = {};
1516
+ return await this.listAlertActionsWithOptions(request, headers, runtime);
1517
+ }
1518
+ }
1519
+ exports.default = Client;
1520
+ //# sourceMappingURL=client.js.map