@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/src/client.ts ADDED
@@ -0,0 +1,2099 @@
1
+ // This file is auto-generated, don't edit it
2
+ /**
3
+ */
4
+ import Util, * as $Util from '@alicloud/tea-util';
5
+ import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
+ import OpenApiUtil from '@alicloud/openapi-util';
7
+ import EndpointUtil from '@alicloud/endpoint-util';
8
+ import * as $tea from '@alicloud/tea-typescript';
9
+
10
+ export class AlertEventIntegrationPolicyForModify extends $tea.Model {
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ */
15
+ alertEventIntegrationPolicyName?: string;
16
+ description?: string;
17
+ filterSetting?: FilterSetting;
18
+ integrationSetting?: string;
19
+ transformerSetting?: TransformAction[];
20
+ type?: string;
21
+ static names(): { [key: string]: string } {
22
+ return {
23
+ alertEventIntegrationPolicyName: 'alertEventIntegrationPolicyName',
24
+ description: 'description',
25
+ filterSetting: 'filterSetting',
26
+ integrationSetting: 'integrationSetting',
27
+ transformerSetting: 'transformerSetting',
28
+ type: 'type',
29
+ };
30
+ }
31
+
32
+ static types(): { [key: string]: any } {
33
+ return {
34
+ alertEventIntegrationPolicyName: 'string',
35
+ description: 'string',
36
+ filterSetting: FilterSetting,
37
+ integrationSetting: 'string',
38
+ transformerSetting: { 'type': 'array', 'itemType': TransformAction },
39
+ type: 'string',
40
+ };
41
+ }
42
+
43
+ constructor(map?: { [key: string]: any }) {
44
+ super(map);
45
+ }
46
+ }
47
+
48
+ export class AlertEventIntegrationPolicyForView extends $tea.Model {
49
+ alertEventIntegrationPolicyId?: string;
50
+ /**
51
+ * @remarks
52
+ * This parameter is required.
53
+ */
54
+ alertEventIntegrationPolicyName?: string;
55
+ createTime?: string;
56
+ description?: string;
57
+ enable?: boolean;
58
+ filterSetting?: FilterSetting;
59
+ integrationSetting?: string;
60
+ transformerSetting?: TransformAction[];
61
+ type?: string;
62
+ updateTime?: string;
63
+ userId?: string;
64
+ workspace?: string;
65
+ static names(): { [key: string]: string } {
66
+ return {
67
+ alertEventIntegrationPolicyId: 'alertEventIntegrationPolicyId',
68
+ alertEventIntegrationPolicyName: 'alertEventIntegrationPolicyName',
69
+ createTime: 'createTime',
70
+ description: 'description',
71
+ enable: 'enable',
72
+ filterSetting: 'filterSetting',
73
+ integrationSetting: 'integrationSetting',
74
+ transformerSetting: 'transformerSetting',
75
+ type: 'type',
76
+ updateTime: 'updateTime',
77
+ userId: 'userId',
78
+ workspace: 'workspace',
79
+ };
80
+ }
81
+
82
+ static types(): { [key: string]: any } {
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
+
99
+ constructor(map?: { [key: string]: any }) {
100
+ super(map);
101
+ }
102
+ }
103
+
104
+ export class AlertRuleAction extends $tea.Model {
105
+ actions?: string[];
106
+ static names(): { [key: string]: string } {
107
+ return {
108
+ actions: 'actions',
109
+ };
110
+ }
111
+
112
+ static types(): { [key: string]: any } {
113
+ return {
114
+ actions: { 'type': 'array', 'itemType': 'string' },
115
+ };
116
+ }
117
+
118
+ constructor(map?: { [key: string]: any }) {
119
+ super(map);
120
+ }
121
+ }
122
+
123
+ export class AlertRuleAlertMetricFilterDef extends $tea.Model {
124
+ dim?: string;
125
+ displayNameCn?: string;
126
+ displayNameEn?: string;
127
+ hidden?: boolean;
128
+ opt?: string;
129
+ supportedOpts?: AlertRuleAlertMetricFilterDefSupportedOpts[];
130
+ static names(): { [key: string]: string } {
131
+ return {
132
+ dim: 'dim',
133
+ displayNameCn: 'displayNameCn',
134
+ displayNameEn: 'displayNameEn',
135
+ hidden: 'hidden',
136
+ opt: 'opt',
137
+ supportedOpts: 'supportedOpts',
138
+ };
139
+ }
140
+
141
+ static types(): { [key: string]: any } {
142
+ return {
143
+ dim: 'string',
144
+ displayNameCn: 'string',
145
+ displayNameEn: 'string',
146
+ hidden: 'boolean',
147
+ opt: 'string',
148
+ supportedOpts: { 'type': 'array', 'itemType': AlertRuleAlertMetricFilterDefSupportedOpts },
149
+ };
150
+ }
151
+
152
+ constructor(map?: { [key: string]: any }) {
153
+ super(map);
154
+ }
155
+ }
156
+
157
+ export class AlertRuleAlertMetricInput extends $tea.Model {
158
+ filterValues?: AlertRuleAlertMetricInputFilterValue[];
159
+ groupId?: string;
160
+ metricId?: string;
161
+ paramValues?: AlertRuleAlertMetricInputParamValue[];
162
+ static names(): { [key: string]: string } {
163
+ return {
164
+ filterValues: 'filterValues',
165
+ groupId: 'groupId',
166
+ metricId: 'metricId',
167
+ paramValues: 'paramValues',
168
+ };
169
+ }
170
+
171
+ static types(): { [key: string]: any } {
172
+ return {
173
+ filterValues: { 'type': 'array', 'itemType': AlertRuleAlertMetricInputFilterValue },
174
+ groupId: 'string',
175
+ metricId: 'string',
176
+ paramValues: { 'type': 'array', 'itemType': AlertRuleAlertMetricInputParamValue },
177
+ };
178
+ }
179
+
180
+ constructor(map?: { [key: string]: any }) {
181
+ super(map);
182
+ }
183
+ }
184
+
185
+ export class AlertRuleAlertMetricInputFilterValue extends $tea.Model {
186
+ /**
187
+ * @remarks
188
+ * This parameter is required.
189
+ */
190
+ dim?: string;
191
+ /**
192
+ * @remarks
193
+ * This parameter is required.
194
+ */
195
+ opt?: string;
196
+ value?: string;
197
+ static names(): { [key: string]: string } {
198
+ return {
199
+ dim: 'dim',
200
+ opt: 'opt',
201
+ value: 'value',
202
+ };
203
+ }
204
+
205
+ static types(): { [key: string]: any } {
206
+ return {
207
+ dim: 'string',
208
+ opt: 'string',
209
+ value: 'string',
210
+ };
211
+ }
212
+
213
+ constructor(map?: { [key: string]: any }) {
214
+ super(map);
215
+ }
216
+ }
217
+
218
+ export class AlertRuleAlertMetricInputParamValue extends $tea.Model {
219
+ /**
220
+ * @remarks
221
+ * This parameter is required.
222
+ */
223
+ name?: string;
224
+ /**
225
+ * @remarks
226
+ * This parameter is required.
227
+ */
228
+ value?: string;
229
+ static names(): { [key: string]: string } {
230
+ return {
231
+ name: 'name',
232
+ value: 'value',
233
+ };
234
+ }
235
+
236
+ static types(): { [key: string]: any } {
237
+ return {
238
+ name: 'string',
239
+ value: 'string',
240
+ };
241
+ }
242
+
243
+ constructor(map?: { [key: string]: any }) {
244
+ super(map);
245
+ }
246
+ }
247
+
248
+ export class AlertRuleAlertMetricParamDef extends $tea.Model {
249
+ maxWidth?: number;
250
+ minWidth?: number;
251
+ name?: string;
252
+ placeholderCn?: string;
253
+ placeholderEn?: string;
254
+ type?: string;
255
+ value?: string;
256
+ values?: AlertRuleAlertMetricParamDefValues[];
257
+ static names(): { [key: string]: string } {
258
+ return {
259
+ maxWidth: 'maxWidth',
260
+ minWidth: 'minWidth',
261
+ name: 'name',
262
+ placeholderCn: 'placeholderCn',
263
+ placeholderEn: 'placeholderEn',
264
+ type: 'type',
265
+ value: 'value',
266
+ values: 'values',
267
+ };
268
+ }
269
+
270
+ static types(): { [key: string]: any } {
271
+ return {
272
+ maxWidth: 'number',
273
+ minWidth: 'number',
274
+ name: 'string',
275
+ placeholderCn: 'string',
276
+ placeholderEn: 'string',
277
+ type: 'string',
278
+ value: 'string',
279
+ values: { 'type': 'array', 'itemType': AlertRuleAlertMetricParamDefValues },
280
+ };
281
+ }
282
+
283
+ constructor(map?: { [key: string]: any }) {
284
+ super(map);
285
+ }
286
+ }
287
+
288
+ export class AlertRuleCondition extends $tea.Model {
289
+ /**
290
+ * @remarks
291
+ * type=SLS_CONDITION时指定,满足条件几次后告警,默认为1
292
+ */
293
+ alertCount?: number;
294
+ /**
295
+ * @remarks
296
+ * type=SLS_CONDITION时指定
297
+ */
298
+ caseList?: AlertRuleConditionCaseList[];
299
+ compareList?: AlertRuleConditionCompareList[];
300
+ noDataAppendValue?: string;
301
+ /**
302
+ * @remarks
303
+ * 无数据时按什么级别告警,不指定则不对无数据报警
304
+ */
305
+ nodataAlertLevel?: string;
306
+ /**
307
+ * @remarks
308
+ * 规则条件类型,可选值:SLS_CONDITION
309
+ *
310
+ * This parameter is required.
311
+ */
312
+ type?: string;
313
+ static names(): { [key: string]: string } {
314
+ return {
315
+ alertCount: 'alertCount',
316
+ caseList: 'caseList',
317
+ compareList: 'compareList',
318
+ noDataAppendValue: 'noDataAppendValue',
319
+ nodataAlertLevel: 'nodataAlertLevel',
320
+ type: 'type',
321
+ };
322
+ }
323
+
324
+ static types(): { [key: string]: any } {
325
+ return {
326
+ alertCount: 'number',
327
+ caseList: { 'type': 'array', 'itemType': AlertRuleConditionCaseList },
328
+ compareList: { 'type': 'array', 'itemType': AlertRuleConditionCompareList },
329
+ noDataAppendValue: 'string',
330
+ nodataAlertLevel: 'string',
331
+ type: 'string',
332
+ };
333
+ }
334
+
335
+ constructor(map?: { [key: string]: any }) {
336
+ super(map);
337
+ }
338
+ }
339
+
340
+ export class AlertRuleDataSource extends $tea.Model {
341
+ dsList?: AlertRuleDataSourceDsList[];
342
+ /**
343
+ * @remarks
344
+ * 实例id,当type=PROMETHEUS_DS/ENTERPRISE_DS时必填,为prometheus实例的clusterId或指标仓库名称
345
+ */
346
+ instanceId?: string;
347
+ namespace?: string;
348
+ /**
349
+ * @remarks
350
+ * 数据源类型
351
+ *
352
+ * This parameter is required.
353
+ */
354
+ type?: string;
355
+ static names(): { [key: string]: string } {
356
+ return {
357
+ dsList: 'dsList',
358
+ instanceId: 'instanceId',
359
+ namespace: 'namespace',
360
+ type: 'type',
361
+ };
362
+ }
363
+
364
+ static types(): { [key: string]: any } {
365
+ return {
366
+ dsList: { 'type': 'array', 'itemType': AlertRuleDataSourceDsList },
367
+ instanceId: 'string',
368
+ namespace: 'string',
369
+ type: 'string',
370
+ };
371
+ }
372
+
373
+ constructor(map?: { [key: string]: any }) {
374
+ super(map);
375
+ }
376
+ }
377
+
378
+ export class AlertRuleLabelFilter extends $tea.Model {
379
+ labels?: { [key: string]: string };
380
+ opt?: string;
381
+ static names(): { [key: string]: string } {
382
+ return {
383
+ labels: 'labels',
384
+ opt: 'opt',
385
+ };
386
+ }
387
+
388
+ static types(): { [key: string]: any } {
389
+ return {
390
+ labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
391
+ opt: 'string',
392
+ };
393
+ }
394
+
395
+ constructor(map?: { [key: string]: any }) {
396
+ super(map);
397
+ }
398
+ }
399
+
400
+ export class AlertRuleNotification extends $tea.Model {
401
+ contacts?: string[];
402
+ customWebhooks?: string[];
403
+ dingWebhooks?: string[];
404
+ fsWebhooks?: string[];
405
+ groups?: string[];
406
+ notifyTime?: AlertRuleTimeSpan;
407
+ silenceTime?: number;
408
+ slackWebhooks?: string[];
409
+ wxWebhooks?: string[];
410
+ static names(): { [key: string]: string } {
411
+ return {
412
+ contacts: 'contacts',
413
+ customWebhooks: 'customWebhooks',
414
+ dingWebhooks: 'dingWebhooks',
415
+ fsWebhooks: 'fsWebhooks',
416
+ groups: 'groups',
417
+ notifyTime: 'notifyTime',
418
+ silenceTime: 'silenceTime',
419
+ slackWebhooks: 'slackWebhooks',
420
+ wxWebhooks: 'wxWebhooks',
421
+ };
422
+ }
423
+
424
+ static types(): { [key: string]: any } {
425
+ return {
426
+ contacts: { 'type': 'array', 'itemType': 'string' },
427
+ customWebhooks: { 'type': 'array', 'itemType': 'string' },
428
+ dingWebhooks: { 'type': 'array', 'itemType': 'string' },
429
+ fsWebhooks: { 'type': 'array', 'itemType': 'string' },
430
+ groups: { 'type': 'array', 'itemType': 'string' },
431
+ notifyTime: AlertRuleTimeSpan,
432
+ silenceTime: 'number',
433
+ slackWebhooks: { 'type': 'array', 'itemType': 'string' },
434
+ wxWebhooks: { 'type': 'array', 'itemType': 'string' },
435
+ };
436
+ }
437
+
438
+ constructor(map?: { [key: string]: any }) {
439
+ super(map);
440
+ }
441
+ }
442
+
443
+ export class AlertRuleNotificationFilter extends $tea.Model {
444
+ contacts?: string[];
445
+ customWebhooks?: string[];
446
+ dingWebhooks?: string[];
447
+ fsWebhooks?: string[];
448
+ groups?: string[];
449
+ slackWebhooks?: string[];
450
+ wxWebhooks?: string[];
451
+ static names(): { [key: string]: string } {
452
+ return {
453
+ contacts: 'contacts',
454
+ customWebhooks: 'customWebhooks',
455
+ dingWebhooks: 'dingWebhooks',
456
+ fsWebhooks: 'fsWebhooks',
457
+ groups: 'groups',
458
+ slackWebhooks: 'slackWebhooks',
459
+ wxWebhooks: 'wxWebhooks',
460
+ };
461
+ }
462
+
463
+ static types(): { [key: string]: any } {
464
+ return {
465
+ contacts: { 'type': 'array', 'itemType': 'string' },
466
+ customWebhooks: { 'type': 'array', 'itemType': 'string' },
467
+ dingWebhooks: { 'type': 'array', 'itemType': 'string' },
468
+ fsWebhooks: { 'type': 'array', 'itemType': 'string' },
469
+ groups: { 'type': 'array', 'itemType': 'string' },
470
+ slackWebhooks: { 'type': 'array', 'itemType': 'string' },
471
+ wxWebhooks: { 'type': 'array', 'itemType': 'string' },
472
+ };
473
+ }
474
+
475
+ constructor(map?: { [key: string]: any }) {
476
+ super(map);
477
+ }
478
+ }
479
+
480
+ export class AlertRuleQuery extends $tea.Model {
481
+ duration?: number;
482
+ expr?: string;
483
+ firstJoin?: AlertRuleSlsQueryJoin;
484
+ groupFieldList?: string[];
485
+ groupType?: string;
486
+ queries?: AlertRuleQueryQueries[];
487
+ secondJoin?: AlertRuleSlsQueryJoin;
488
+ /**
489
+ * @remarks
490
+ * 查询类型
491
+ *
492
+ * This parameter is required.
493
+ */
494
+ type?: string;
495
+ static names(): { [key: string]: string } {
496
+ return {
497
+ duration: 'duration',
498
+ expr: 'expr',
499
+ firstJoin: 'firstJoin',
500
+ groupFieldList: 'groupFieldList',
501
+ groupType: 'groupType',
502
+ queries: 'queries',
503
+ secondJoin: 'secondJoin',
504
+ type: 'type',
505
+ };
506
+ }
507
+
508
+ static types(): { [key: string]: any } {
509
+ return {
510
+ duration: 'number',
511
+ expr: 'string',
512
+ firstJoin: AlertRuleSlsQueryJoin,
513
+ groupFieldList: { 'type': 'array', 'itemType': 'string' },
514
+ groupType: 'string',
515
+ queries: { 'type': 'array', 'itemType': AlertRuleQueryQueries },
516
+ secondJoin: AlertRuleSlsQueryJoin,
517
+ type: 'string',
518
+ };
519
+ }
520
+
521
+ constructor(map?: { [key: string]: any }) {
522
+ super(map);
523
+ }
524
+ }
525
+
526
+ export class AlertRuleSend extends $tea.Model {
527
+ action?: AlertRuleAction;
528
+ notification?: AlertRuleNotification;
529
+ static names(): { [key: string]: string } {
530
+ return {
531
+ action: 'action',
532
+ notification: 'notification',
533
+ };
534
+ }
535
+
536
+ static types(): { [key: string]: any } {
537
+ return {
538
+ action: AlertRuleAction,
539
+ notification: AlertRuleNotification,
540
+ };
541
+ }
542
+
543
+ constructor(map?: { [key: string]: any }) {
544
+ super(map);
545
+ }
546
+ }
547
+
548
+ export class AlertRuleSlsQueryJoin extends $tea.Model {
549
+ conditions?: AlertRuleSlsQueryJoinConditions[];
550
+ /**
551
+ * @remarks
552
+ * 集合操作类型。
553
+ * ● CrossJoin: 笛卡尔积
554
+ * ● FullJoin:全联
555
+ * ● InnerJoin:内联
556
+ * ● LeftExclude: 左斥
557
+ * ● RightExclude:右斥
558
+ * ● LeftJoin:左联
559
+ * ● RightJoin:右联
560
+ * ● NoJoin:不合并
561
+ * ● Concat: 拼接
562
+ * https://help.aliyun.com/zh/sls/user-guide/set-query-statistics-statement
563
+ *
564
+ * This parameter is required.
565
+ */
566
+ type?: string;
567
+ static names(): { [key: string]: string } {
568
+ return {
569
+ conditions: 'conditions',
570
+ type: 'type',
571
+ };
572
+ }
573
+
574
+ static types(): { [key: string]: any } {
575
+ return {
576
+ conditions: { 'type': 'array', 'itemType': AlertRuleSlsQueryJoinConditions },
577
+ type: 'string',
578
+ };
579
+ }
580
+
581
+ constructor(map?: { [key: string]: any }) {
582
+ super(map);
583
+ }
584
+ }
585
+
586
+ export class AlertRuleTimeSpan extends $tea.Model {
587
+ dayOfWeek?: number[];
588
+ endTime?: string;
589
+ gmtOffset?: string;
590
+ startTime?: string;
591
+ static names(): { [key: string]: string } {
592
+ return {
593
+ dayOfWeek: 'dayOfWeek',
594
+ endTime: 'endTime',
595
+ gmtOffset: 'gmtOffset',
596
+ startTime: 'startTime',
597
+ };
598
+ }
599
+
600
+ static types(): { [key: string]: any } {
601
+ return {
602
+ dayOfWeek: { 'type': 'array', 'itemType': 'number' },
603
+ endTime: 'string',
604
+ gmtOffset: 'string',
605
+ startTime: 'string',
606
+ };
607
+ }
608
+
609
+ constructor(map?: { [key: string]: any }) {
610
+ super(map);
611
+ }
612
+ }
613
+
614
+ export class FilterSetting extends $tea.Model {
615
+ conditions?: FilterSettingConditions[];
616
+ expression?: string;
617
+ relation?: string;
618
+ static names(): { [key: string]: string } {
619
+ return {
620
+ conditions: 'conditions',
621
+ expression: 'expression',
622
+ relation: 'relation',
623
+ };
624
+ }
625
+
626
+ static types(): { [key: string]: any } {
627
+ return {
628
+ conditions: { 'type': 'array', 'itemType': FilterSettingConditions },
629
+ expression: 'string',
630
+ relation: 'string',
631
+ };
632
+ }
633
+
634
+ constructor(map?: { [key: string]: any }) {
635
+ super(map);
636
+ }
637
+ }
638
+
639
+ export class MaintainWindowForModify extends $tea.Model {
640
+ description?: string;
641
+ effective?: string;
642
+ endTime?: string;
643
+ filterSetting?: FilterSetting;
644
+ /**
645
+ * @remarks
646
+ * This parameter is required.
647
+ */
648
+ maintainWindowName?: string;
649
+ startTime?: string;
650
+ static names(): { [key: string]: string } {
651
+ return {
652
+ description: 'description',
653
+ effective: 'effective',
654
+ endTime: 'endTime',
655
+ filterSetting: 'filterSetting',
656
+ maintainWindowName: 'maintainWindowName',
657
+ startTime: 'startTime',
658
+ };
659
+ }
660
+
661
+ static types(): { [key: string]: any } {
662
+ return {
663
+ description: 'string',
664
+ effective: 'string',
665
+ endTime: 'string',
666
+ filterSetting: FilterSetting,
667
+ maintainWindowName: 'string',
668
+ startTime: 'string',
669
+ };
670
+ }
671
+
672
+ constructor(map?: { [key: string]: any }) {
673
+ super(map);
674
+ }
675
+ }
676
+
677
+ export class MaintainWindowForView extends $tea.Model {
678
+ createTime?: string;
679
+ description?: string;
680
+ effective?: string;
681
+ enable?: boolean;
682
+ endTime?: string;
683
+ filterSetting?: FilterSetting;
684
+ maintainWindowId?: string;
685
+ /**
686
+ * @remarks
687
+ * This parameter is required.
688
+ */
689
+ maintainWindowName?: string;
690
+ startTime?: string;
691
+ updateTime?: string;
692
+ userId?: string;
693
+ workspace?: string;
694
+ static names(): { [key: string]: string } {
695
+ return {
696
+ createTime: 'createTime',
697
+ description: 'description',
698
+ effective: 'effective',
699
+ enable: 'enable',
700
+ endTime: 'endTime',
701
+ filterSetting: 'filterSetting',
702
+ maintainWindowId: 'maintainWindowId',
703
+ maintainWindowName: 'maintainWindowName',
704
+ startTime: 'startTime',
705
+ updateTime: 'updateTime',
706
+ userId: 'userId',
707
+ workspace: 'workspace',
708
+ };
709
+ }
710
+
711
+ static types(): { [key: string]: any } {
712
+ return {
713
+ createTime: 'string',
714
+ description: 'string',
715
+ effective: 'string',
716
+ enable: 'boolean',
717
+ endTime: 'string',
718
+ filterSetting: FilterSetting,
719
+ maintainWindowId: 'string',
720
+ maintainWindowName: 'string',
721
+ startTime: 'string',
722
+ updateTime: 'string',
723
+ userId: 'string',
724
+ workspace: 'string',
725
+ };
726
+ }
727
+
728
+ constructor(map?: { [key: string]: any }) {
729
+ super(map);
730
+ }
731
+ }
732
+
733
+ export class NotifyStrategyForModify extends $tea.Model {
734
+ customTemplateEntries?: NotifyStrategyForModifyCustomTemplateEntries[];
735
+ description?: string;
736
+ /**
737
+ * @remarks
738
+ * This parameter is required.
739
+ */
740
+ groupingSetting?: NotifyStrategyForModifyGroupingSetting;
741
+ ignoreRestoredNotification?: boolean;
742
+ /**
743
+ * @remarks
744
+ * This parameter is required.
745
+ */
746
+ notifyStrategyName?: string;
747
+ /**
748
+ * @remarks
749
+ * This parameter is required.
750
+ */
751
+ routes?: NotifyStrategyForModifyRoutes[];
752
+ static names(): { [key: string]: string } {
753
+ return {
754
+ customTemplateEntries: 'customTemplateEntries',
755
+ description: 'description',
756
+ groupingSetting: 'groupingSetting',
757
+ ignoreRestoredNotification: 'ignoreRestoredNotification',
758
+ notifyStrategyName: 'notifyStrategyName',
759
+ routes: 'routes',
760
+ };
761
+ }
762
+
763
+ static types(): { [key: string]: any } {
764
+ return {
765
+ customTemplateEntries: { 'type': 'array', 'itemType': NotifyStrategyForModifyCustomTemplateEntries },
766
+ description: 'string',
767
+ groupingSetting: NotifyStrategyForModifyGroupingSetting,
768
+ ignoreRestoredNotification: 'boolean',
769
+ notifyStrategyName: 'string',
770
+ routes: { 'type': 'array', 'itemType': NotifyStrategyForModifyRoutes },
771
+ };
772
+ }
773
+
774
+ constructor(map?: { [key: string]: any }) {
775
+ super(map);
776
+ }
777
+ }
778
+
779
+ export class NotifyStrategyForView extends $tea.Model {
780
+ createTime?: string;
781
+ customTemplateEntries?: NotifyStrategyForViewCustomTemplateEntries[];
782
+ description?: string;
783
+ enable?: boolean;
784
+ /**
785
+ * @remarks
786
+ * This parameter is required.
787
+ */
788
+ groupingSetting?: NotifyStrategyForViewGroupingSetting;
789
+ ignoreRestoredNotification?: boolean;
790
+ notifyStrategyId?: string;
791
+ /**
792
+ * @remarks
793
+ * This parameter is required.
794
+ */
795
+ notifyStrategyName?: string;
796
+ /**
797
+ * @remarks
798
+ * This parameter is required.
799
+ */
800
+ routes?: NotifyStrategyForViewRoutes[];
801
+ updateTime?: string;
802
+ userId?: string;
803
+ workspace?: string;
804
+ static names(): { [key: string]: string } {
805
+ return {
806
+ createTime: 'createTime',
807
+ customTemplateEntries: 'customTemplateEntries',
808
+ description: 'description',
809
+ enable: 'enable',
810
+ groupingSetting: 'groupingSetting',
811
+ ignoreRestoredNotification: 'ignoreRestoredNotification',
812
+ notifyStrategyId: 'notifyStrategyId',
813
+ notifyStrategyName: 'notifyStrategyName',
814
+ routes: 'routes',
815
+ updateTime: 'updateTime',
816
+ userId: 'userId',
817
+ workspace: 'workspace',
818
+ };
819
+ }
820
+
821
+ static types(): { [key: string]: any } {
822
+ return {
823
+ createTime: 'string',
824
+ customTemplateEntries: { 'type': 'array', 'itemType': NotifyStrategyForViewCustomTemplateEntries },
825
+ description: 'string',
826
+ enable: 'boolean',
827
+ groupingSetting: NotifyStrategyForViewGroupingSetting,
828
+ ignoreRestoredNotification: 'boolean',
829
+ notifyStrategyId: 'string',
830
+ notifyStrategyName: 'string',
831
+ routes: { 'type': 'array', 'itemType': NotifyStrategyForViewRoutes },
832
+ updateTime: 'string',
833
+ userId: 'string',
834
+ workspace: 'string',
835
+ };
836
+ }
837
+
838
+ constructor(map?: { [key: string]: any }) {
839
+ super(map);
840
+ }
841
+ }
842
+
843
+ export class SubscriptionForModify extends $tea.Model {
844
+ description?: string;
845
+ filterSetting?: FilterSetting;
846
+ notifyStrategyId?: string;
847
+ pushingSetting?: SubscriptionForModifyPushingSetting;
848
+ /**
849
+ * @remarks
850
+ * This parameter is required.
851
+ */
852
+ subscriptionName?: string;
853
+ static names(): { [key: string]: string } {
854
+ return {
855
+ description: 'description',
856
+ filterSetting: 'filterSetting',
857
+ notifyStrategyId: 'notifyStrategyId',
858
+ pushingSetting: 'pushingSetting',
859
+ subscriptionName: 'subscriptionName',
860
+ };
861
+ }
862
+
863
+ static types(): { [key: string]: any } {
864
+ return {
865
+ description: 'string',
866
+ filterSetting: FilterSetting,
867
+ notifyStrategyId: 'string',
868
+ pushingSetting: SubscriptionForModifyPushingSetting,
869
+ subscriptionName: 'string',
870
+ };
871
+ }
872
+
873
+ constructor(map?: { [key: string]: any }) {
874
+ super(map);
875
+ }
876
+ }
877
+
878
+ export class SubscriptionForView extends $tea.Model {
879
+ createTime?: string;
880
+ description?: string;
881
+ enable?: boolean;
882
+ filterSetting?: FilterSetting;
883
+ notifyStrategyId?: string;
884
+ pushingSetting?: SubscriptionForViewPushingSetting;
885
+ subscriptionId?: string;
886
+ /**
887
+ * @remarks
888
+ * This parameter is required.
889
+ */
890
+ subscriptionName?: string;
891
+ updateTime?: string;
892
+ userId?: string;
893
+ workspace?: string;
894
+ static names(): { [key: string]: string } {
895
+ return {
896
+ createTime: 'createTime',
897
+ description: 'description',
898
+ enable: 'enable',
899
+ filterSetting: 'filterSetting',
900
+ notifyStrategyId: 'notifyStrategyId',
901
+ pushingSetting: 'pushingSetting',
902
+ subscriptionId: 'subscriptionId',
903
+ subscriptionName: 'subscriptionName',
904
+ updateTime: 'updateTime',
905
+ userId: 'userId',
906
+ workspace: 'workspace',
907
+ };
908
+ }
909
+
910
+ static types(): { [key: string]: any } {
911
+ return {
912
+ createTime: 'string',
913
+ description: 'string',
914
+ enable: 'boolean',
915
+ filterSetting: FilterSetting,
916
+ notifyStrategyId: 'string',
917
+ pushingSetting: SubscriptionForViewPushingSetting,
918
+ subscriptionId: 'string',
919
+ subscriptionName: 'string',
920
+ updateTime: 'string',
921
+ userId: 'string',
922
+ workspace: 'string',
923
+ };
924
+ }
925
+
926
+ constructor(map?: { [key: string]: any }) {
927
+ super(map);
928
+ }
929
+ }
930
+
931
+ export class TransformAction extends $tea.Model {
932
+ filterSetting?: FilterSetting;
933
+ labelKey?: string;
934
+ mapping?: { [key: string]: string };
935
+ regExp?: string;
936
+ source?: string;
937
+ target?: string;
938
+ type?: string;
939
+ value?: string;
940
+ variable?: string;
941
+ static names(): { [key: string]: string } {
942
+ return {
943
+ filterSetting: 'filterSetting',
944
+ labelKey: 'labelKey',
945
+ mapping: 'mapping',
946
+ regExp: 'regExp',
947
+ source: 'source',
948
+ target: 'target',
949
+ type: 'type',
950
+ value: 'value',
951
+ variable: 'variable',
952
+ };
953
+ }
954
+
955
+ static types(): { [key: string]: any } {
956
+ return {
957
+ filterSetting: FilterSetting,
958
+ labelKey: 'string',
959
+ mapping: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
960
+ regExp: 'string',
961
+ source: 'string',
962
+ target: 'string',
963
+ type: 'string',
964
+ value: 'string',
965
+ variable: 'string',
966
+ };
967
+ }
968
+
969
+ constructor(map?: { [key: string]: any }) {
970
+ super(map);
971
+ }
972
+ }
973
+
974
+ export class TransformerForModify extends $tea.Model {
975
+ actions?: TransformAction[];
976
+ description?: string;
977
+ filterSetting?: FilterSetting;
978
+ quitAfterMatch?: boolean;
979
+ sortId?: number;
980
+ /**
981
+ * @remarks
982
+ * This parameter is required.
983
+ */
984
+ transformerName?: string;
985
+ static names(): { [key: string]: string } {
986
+ return {
987
+ actions: 'actions',
988
+ description: 'description',
989
+ filterSetting: 'filterSetting',
990
+ quitAfterMatch: 'quitAfterMatch',
991
+ sortId: 'sortId',
992
+ transformerName: 'transformerName',
993
+ };
994
+ }
995
+
996
+ static types(): { [key: string]: any } {
997
+ return {
998
+ actions: { 'type': 'array', 'itemType': TransformAction },
999
+ description: 'string',
1000
+ filterSetting: FilterSetting,
1001
+ quitAfterMatch: 'boolean',
1002
+ sortId: 'number',
1003
+ transformerName: 'string',
1004
+ };
1005
+ }
1006
+
1007
+ constructor(map?: { [key: string]: any }) {
1008
+ super(map);
1009
+ }
1010
+ }
1011
+
1012
+ export class TransformerForView extends $tea.Model {
1013
+ actions?: TransformAction[];
1014
+ createTime?: string;
1015
+ description?: string;
1016
+ enable?: boolean;
1017
+ filterSetting?: FilterSetting;
1018
+ quitAfterMatch?: boolean;
1019
+ sortId?: number;
1020
+ transformerId?: string;
1021
+ /**
1022
+ * @remarks
1023
+ * This parameter is required.
1024
+ */
1025
+ transformerName?: string;
1026
+ updateTime?: string;
1027
+ userId?: string;
1028
+ workspace?: string;
1029
+ static names(): { [key: string]: string } {
1030
+ return {
1031
+ actions: 'actions',
1032
+ createTime: 'createTime',
1033
+ description: 'description',
1034
+ enable: 'enable',
1035
+ filterSetting: 'filterSetting',
1036
+ quitAfterMatch: 'quitAfterMatch',
1037
+ sortId: 'sortId',
1038
+ transformerId: 'transformerId',
1039
+ transformerName: 'transformerName',
1040
+ updateTime: 'updateTime',
1041
+ userId: 'userId',
1042
+ workspace: 'workspace',
1043
+ };
1044
+ }
1045
+
1046
+ static types(): { [key: string]: any } {
1047
+ return {
1048
+ actions: { 'type': 'array', 'itemType': TransformAction },
1049
+ createTime: 'string',
1050
+ description: 'string',
1051
+ enable: 'boolean',
1052
+ filterSetting: FilterSetting,
1053
+ quitAfterMatch: 'boolean',
1054
+ sortId: 'number',
1055
+ transformerId: 'string',
1056
+ transformerName: 'string',
1057
+ updateTime: 'string',
1058
+ userId: 'string',
1059
+ workspace: 'string',
1060
+ };
1061
+ }
1062
+
1063
+ constructor(map?: { [key: string]: any }) {
1064
+ super(map);
1065
+ }
1066
+ }
1067
+
1068
+ export class ListAlertActionsRequest extends $tea.Model {
1069
+ alertActionIds?: string[];
1070
+ alertActionName?: string;
1071
+ pageNumber?: number;
1072
+ pageSize?: number;
1073
+ type?: string;
1074
+ static names(): { [key: string]: string } {
1075
+ return {
1076
+ alertActionIds: 'alertActionIds',
1077
+ alertActionName: 'alertActionName',
1078
+ pageNumber: 'pageNumber',
1079
+ pageSize: 'pageSize',
1080
+ type: 'type',
1081
+ };
1082
+ }
1083
+
1084
+ static types(): { [key: string]: any } {
1085
+ return {
1086
+ alertActionIds: { 'type': 'array', 'itemType': 'string' },
1087
+ alertActionName: 'string',
1088
+ pageNumber: 'number',
1089
+ pageSize: 'number',
1090
+ type: 'string',
1091
+ };
1092
+ }
1093
+
1094
+ constructor(map?: { [key: string]: any }) {
1095
+ super(map);
1096
+ }
1097
+ }
1098
+
1099
+ export class ListAlertActionsShrinkRequest extends $tea.Model {
1100
+ alertActionIdsShrink?: string;
1101
+ alertActionName?: string;
1102
+ pageNumber?: number;
1103
+ pageSize?: number;
1104
+ type?: string;
1105
+ static names(): { [key: string]: string } {
1106
+ return {
1107
+ alertActionIdsShrink: 'alertActionIds',
1108
+ alertActionName: 'alertActionName',
1109
+ pageNumber: 'pageNumber',
1110
+ pageSize: 'pageSize',
1111
+ type: 'type',
1112
+ };
1113
+ }
1114
+
1115
+ static types(): { [key: string]: any } {
1116
+ return {
1117
+ alertActionIdsShrink: 'string',
1118
+ alertActionName: 'string',
1119
+ pageNumber: 'number',
1120
+ pageSize: 'number',
1121
+ type: 'string',
1122
+ };
1123
+ }
1124
+
1125
+ constructor(map?: { [key: string]: any }) {
1126
+ super(map);
1127
+ }
1128
+ }
1129
+
1130
+ export class ListAlertActionsResponseBody extends $tea.Model {
1131
+ alertActions?: ListAlertActionsResponseBodyAlertActions[];
1132
+ pageNumber?: number;
1133
+ pageSize?: number;
1134
+ requestId?: string;
1135
+ total?: number;
1136
+ static names(): { [key: string]: string } {
1137
+ return {
1138
+ alertActions: 'alertActions',
1139
+ pageNumber: 'pageNumber',
1140
+ pageSize: 'pageSize',
1141
+ requestId: 'requestId',
1142
+ total: 'total',
1143
+ };
1144
+ }
1145
+
1146
+ static types(): { [key: string]: any } {
1147
+ return {
1148
+ alertActions: { 'type': 'array', 'itemType': ListAlertActionsResponseBodyAlertActions },
1149
+ pageNumber: 'number',
1150
+ pageSize: 'number',
1151
+ requestId: 'string',
1152
+ total: 'number',
1153
+ };
1154
+ }
1155
+
1156
+ constructor(map?: { [key: string]: any }) {
1157
+ super(map);
1158
+ }
1159
+ }
1160
+
1161
+ export class ListAlertActionsResponse extends $tea.Model {
1162
+ headers?: { [key: string]: string };
1163
+ statusCode?: number;
1164
+ body?: ListAlertActionsResponseBody;
1165
+ static names(): { [key: string]: string } {
1166
+ return {
1167
+ headers: 'headers',
1168
+ statusCode: 'statusCode',
1169
+ body: 'body',
1170
+ };
1171
+ }
1172
+
1173
+ static types(): { [key: string]: any } {
1174
+ return {
1175
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1176
+ statusCode: 'number',
1177
+ body: ListAlertActionsResponseBody,
1178
+ };
1179
+ }
1180
+
1181
+ constructor(map?: { [key: string]: any }) {
1182
+ super(map);
1183
+ }
1184
+ }
1185
+
1186
+ export class AlertRuleAlertMetricFilterDefSupportedOpts extends $tea.Model {
1187
+ displayNameCn?: string;
1188
+ displayNameEn?: string;
1189
+ value?: string;
1190
+ static names(): { [key: string]: string } {
1191
+ return {
1192
+ displayNameCn: 'displayNameCn',
1193
+ displayNameEn: 'displayNameEn',
1194
+ value: 'value',
1195
+ };
1196
+ }
1197
+
1198
+ static types(): { [key: string]: any } {
1199
+ return {
1200
+ displayNameCn: 'string',
1201
+ displayNameEn: 'string',
1202
+ value: 'string',
1203
+ };
1204
+ }
1205
+
1206
+ constructor(map?: { [key: string]: any }) {
1207
+ super(map);
1208
+ }
1209
+ }
1210
+
1211
+ export class AlertRuleAlertMetricParamDefValues extends $tea.Model {
1212
+ labelCn?: string;
1213
+ labelEn?: string;
1214
+ value?: string;
1215
+ static names(): { [key: string]: string } {
1216
+ return {
1217
+ labelCn: 'labelCn',
1218
+ labelEn: 'labelEn',
1219
+ value: 'value',
1220
+ };
1221
+ }
1222
+
1223
+ static types(): { [key: string]: any } {
1224
+ return {
1225
+ labelCn: 'string',
1226
+ labelEn: 'string',
1227
+ value: 'string',
1228
+ };
1229
+ }
1230
+
1231
+ constructor(map?: { [key: string]: any }) {
1232
+ super(map);
1233
+ }
1234
+ }
1235
+
1236
+ export class AlertRuleConditionCaseList extends $tea.Model {
1237
+ condition?: string;
1238
+ countCondition?: string;
1239
+ level?: string;
1240
+ type?: string;
1241
+ static names(): { [key: string]: string } {
1242
+ return {
1243
+ condition: 'condition',
1244
+ countCondition: 'countCondition',
1245
+ level: 'level',
1246
+ type: 'type',
1247
+ };
1248
+ }
1249
+
1250
+ static types(): { [key: string]: any } {
1251
+ return {
1252
+ condition: 'string',
1253
+ countCondition: 'string',
1254
+ level: 'string',
1255
+ type: 'string',
1256
+ };
1257
+ }
1258
+
1259
+ constructor(map?: { [key: string]: any }) {
1260
+ super(map);
1261
+ }
1262
+ }
1263
+
1264
+ export class AlertRuleConditionCompareListValueLevelList extends $tea.Model {
1265
+ level?: string;
1266
+ value?: number;
1267
+ static names(): { [key: string]: string } {
1268
+ return {
1269
+ level: 'level',
1270
+ value: 'value',
1271
+ };
1272
+ }
1273
+
1274
+ static types(): { [key: string]: any } {
1275
+ return {
1276
+ level: 'string',
1277
+ value: 'number',
1278
+ };
1279
+ }
1280
+
1281
+ constructor(map?: { [key: string]: any }) {
1282
+ super(map);
1283
+ }
1284
+ }
1285
+
1286
+ export class AlertRuleConditionCompareList extends $tea.Model {
1287
+ aggregate?: string;
1288
+ oper?: string;
1289
+ value?: number;
1290
+ valueLevelList?: AlertRuleConditionCompareListValueLevelList[];
1291
+ yoyTimeUnit?: string;
1292
+ yoyTimeValue?: number;
1293
+ static names(): { [key: string]: string } {
1294
+ return {
1295
+ aggregate: 'aggregate',
1296
+ oper: 'oper',
1297
+ value: 'value',
1298
+ valueLevelList: 'valueLevelList',
1299
+ yoyTimeUnit: 'yoyTimeUnit',
1300
+ yoyTimeValue: 'yoyTimeValue',
1301
+ };
1302
+ }
1303
+
1304
+ static types(): { [key: string]: any } {
1305
+ return {
1306
+ aggregate: 'string',
1307
+ oper: 'string',
1308
+ value: 'number',
1309
+ valueLevelList: { 'type': 'array', 'itemType': AlertRuleConditionCompareListValueLevelList },
1310
+ yoyTimeUnit: 'string',
1311
+ yoyTimeValue: 'number',
1312
+ };
1313
+ }
1314
+
1315
+ constructor(map?: { [key: string]: any }) {
1316
+ super(map);
1317
+ }
1318
+ }
1319
+
1320
+ export class AlertRuleDataSourceDsList extends $tea.Model {
1321
+ project?: string;
1322
+ regionId?: string;
1323
+ store?: string;
1324
+ type?: string;
1325
+ static names(): { [key: string]: string } {
1326
+ return {
1327
+ project: 'project',
1328
+ regionId: 'regionId',
1329
+ store: 'store',
1330
+ type: 'type',
1331
+ };
1332
+ }
1333
+
1334
+ static types(): { [key: string]: any } {
1335
+ return {
1336
+ project: 'string',
1337
+ regionId: 'string',
1338
+ store: 'string',
1339
+ type: 'string',
1340
+ };
1341
+ }
1342
+
1343
+ constructor(map?: { [key: string]: any }) {
1344
+ super(map);
1345
+ }
1346
+ }
1347
+
1348
+ export class AlertRuleQueryQueries extends $tea.Model {
1349
+ duration?: number;
1350
+ /**
1351
+ * @remarks
1352
+ * 时间偏移结束时间(相对),如果指定了start、end,则不指定window。
1353
+ */
1354
+ end?: number;
1355
+ /**
1356
+ * @remarks
1357
+ * 查询表达式
1358
+ *
1359
+ * This parameter is required.
1360
+ */
1361
+ expr?: string;
1362
+ /**
1363
+ * @remarks
1364
+ * sls查询的时间偏移开始时间(相对),如果指定了start、end,则不指定window。 例如:start=15, timeUnit=minute,表示15分钟前
1365
+ */
1366
+ start?: number;
1367
+ /**
1368
+ * @remarks
1369
+ * start和end、window的时间单位: day/hour/minute/second
1370
+ */
1371
+ timeUnit?: string;
1372
+ /**
1373
+ * @remarks
1374
+ * 整点时间查询区间。 如果指定了window则不指定start、end
1375
+ */
1376
+ window?: string;
1377
+ static names(): { [key: string]: string } {
1378
+ return {
1379
+ duration: 'duration',
1380
+ end: 'end',
1381
+ expr: 'expr',
1382
+ start: 'start',
1383
+ timeUnit: 'timeUnit',
1384
+ window: 'window',
1385
+ };
1386
+ }
1387
+
1388
+ static types(): { [key: string]: any } {
1389
+ return {
1390
+ duration: 'number',
1391
+ end: 'number',
1392
+ expr: 'string',
1393
+ start: 'number',
1394
+ timeUnit: 'string',
1395
+ window: 'string',
1396
+ };
1397
+ }
1398
+
1399
+ constructor(map?: { [key: string]: any }) {
1400
+ super(map);
1401
+ }
1402
+ }
1403
+
1404
+ export class AlertRuleSlsQueryJoinConditions extends $tea.Model {
1405
+ /**
1406
+ * @remarks
1407
+ * 条件的左操作参数,格式为$<query_idx>.<结果集字段名>
1408
+ */
1409
+ firstField?: string;
1410
+ /**
1411
+ * @remarks
1412
+ * <, >, ==, !=, <=, >=
1413
+ */
1414
+ oper?: string;
1415
+ /**
1416
+ * @remarks
1417
+ * 条件的右操作参数,格式为$<query_idx>.<结果集字段名>
1418
+ */
1419
+ secondField?: string;
1420
+ static names(): { [key: string]: string } {
1421
+ return {
1422
+ firstField: 'firstField',
1423
+ oper: 'oper',
1424
+ secondField: 'secondField',
1425
+ };
1426
+ }
1427
+
1428
+ static types(): { [key: string]: any } {
1429
+ return {
1430
+ firstField: 'string',
1431
+ oper: 'string',
1432
+ secondField: 'string',
1433
+ };
1434
+ }
1435
+
1436
+ constructor(map?: { [key: string]: any }) {
1437
+ super(map);
1438
+ }
1439
+ }
1440
+
1441
+ export class FilterSettingConditions extends $tea.Model {
1442
+ field?: string;
1443
+ op?: string;
1444
+ value?: string;
1445
+ static names(): { [key: string]: string } {
1446
+ return {
1447
+ field: 'field',
1448
+ op: 'op',
1449
+ value: 'value',
1450
+ };
1451
+ }
1452
+
1453
+ static types(): { [key: string]: any } {
1454
+ return {
1455
+ field: 'string',
1456
+ op: 'string',
1457
+ value: 'string',
1458
+ };
1459
+ }
1460
+
1461
+ constructor(map?: { [key: string]: any }) {
1462
+ super(map);
1463
+ }
1464
+ }
1465
+
1466
+ export class NotifyStrategyForModifyCustomTemplateEntries extends $tea.Model {
1467
+ /**
1468
+ * @remarks
1469
+ * This parameter is required.
1470
+ */
1471
+ targetType?: string;
1472
+ /**
1473
+ * @remarks
1474
+ * This parameter is required.
1475
+ */
1476
+ templateUuid?: string;
1477
+ static names(): { [key: string]: string } {
1478
+ return {
1479
+ targetType: 'targetType',
1480
+ templateUuid: 'templateUuid',
1481
+ };
1482
+ }
1483
+
1484
+ static types(): { [key: string]: any } {
1485
+ return {
1486
+ targetType: 'string',
1487
+ templateUuid: 'string',
1488
+ };
1489
+ }
1490
+
1491
+ constructor(map?: { [key: string]: any }) {
1492
+ super(map);
1493
+ }
1494
+ }
1495
+
1496
+ export class NotifyStrategyForModifyGroupingSetting extends $tea.Model {
1497
+ groupingKeys?: string[];
1498
+ periodMin?: number;
1499
+ silenceSec?: number;
1500
+ times?: number;
1501
+ static names(): { [key: string]: string } {
1502
+ return {
1503
+ groupingKeys: 'groupingKeys',
1504
+ periodMin: 'periodMin',
1505
+ silenceSec: 'silenceSec',
1506
+ times: 'times',
1507
+ };
1508
+ }
1509
+
1510
+ static types(): { [key: string]: any } {
1511
+ return {
1512
+ groupingKeys: { 'type': 'array', 'itemType': 'string' },
1513
+ periodMin: 'number',
1514
+ silenceSec: 'number',
1515
+ times: 'number',
1516
+ };
1517
+ }
1518
+
1519
+ constructor(map?: { [key: string]: any }) {
1520
+ super(map);
1521
+ }
1522
+ }
1523
+
1524
+ export class NotifyStrategyForModifyRoutesChannels extends $tea.Model {
1525
+ /**
1526
+ * @remarks
1527
+ * This parameter is required.
1528
+ */
1529
+ channelType?: string;
1530
+ enabledSubChannels?: string[];
1531
+ /**
1532
+ * @remarks
1533
+ * This parameter is required.
1534
+ */
1535
+ receivers?: string[];
1536
+ static names(): { [key: string]: string } {
1537
+ return {
1538
+ channelType: 'channelType',
1539
+ enabledSubChannels: 'enabledSubChannels',
1540
+ receivers: 'receivers',
1541
+ };
1542
+ }
1543
+
1544
+ static types(): { [key: string]: any } {
1545
+ return {
1546
+ channelType: 'string',
1547
+ enabledSubChannels: { 'type': 'array', 'itemType': 'string' },
1548
+ receivers: { 'type': 'array', 'itemType': 'string' },
1549
+ };
1550
+ }
1551
+
1552
+ constructor(map?: { [key: string]: any }) {
1553
+ super(map);
1554
+ }
1555
+ }
1556
+
1557
+ export class NotifyStrategyForModifyRoutesEffectTimeRange extends $tea.Model {
1558
+ dayInWeek?: number[];
1559
+ endTimeInMinute?: number;
1560
+ startTimeInMinute?: number;
1561
+ timeZone?: string;
1562
+ static names(): { [key: string]: string } {
1563
+ return {
1564
+ dayInWeek: 'dayInWeek',
1565
+ endTimeInMinute: 'endTimeInMinute',
1566
+ startTimeInMinute: 'startTimeInMinute',
1567
+ timeZone: 'timeZone',
1568
+ };
1569
+ }
1570
+
1571
+ static types(): { [key: string]: any } {
1572
+ return {
1573
+ dayInWeek: { 'type': 'array', 'itemType': 'number' },
1574
+ endTimeInMinute: 'number',
1575
+ startTimeInMinute: 'number',
1576
+ timeZone: 'string',
1577
+ };
1578
+ }
1579
+
1580
+ constructor(map?: { [key: string]: any }) {
1581
+ super(map);
1582
+ }
1583
+ }
1584
+
1585
+ export class NotifyStrategyForModifyRoutes extends $tea.Model {
1586
+ channels?: NotifyStrategyForModifyRoutesChannels[];
1587
+ effectTimeRange?: NotifyStrategyForModifyRoutesEffectTimeRange;
1588
+ filterSetting?: FilterSetting;
1589
+ severities?: string[];
1590
+ static names(): { [key: string]: string } {
1591
+ return {
1592
+ channels: 'channels',
1593
+ effectTimeRange: 'effectTimeRange',
1594
+ filterSetting: 'filterSetting',
1595
+ severities: 'severities',
1596
+ };
1597
+ }
1598
+
1599
+ static types(): { [key: string]: any } {
1600
+ return {
1601
+ channels: { 'type': 'array', 'itemType': NotifyStrategyForModifyRoutesChannels },
1602
+ effectTimeRange: NotifyStrategyForModifyRoutesEffectTimeRange,
1603
+ filterSetting: FilterSetting,
1604
+ severities: { 'type': 'array', 'itemType': 'string' },
1605
+ };
1606
+ }
1607
+
1608
+ constructor(map?: { [key: string]: any }) {
1609
+ super(map);
1610
+ }
1611
+ }
1612
+
1613
+ export class NotifyStrategyForViewCustomTemplateEntries extends $tea.Model {
1614
+ /**
1615
+ * @remarks
1616
+ * This parameter is required.
1617
+ */
1618
+ targetType?: string;
1619
+ /**
1620
+ * @remarks
1621
+ * This parameter is required.
1622
+ */
1623
+ templateUuid?: string;
1624
+ static names(): { [key: string]: string } {
1625
+ return {
1626
+ targetType: 'targetType',
1627
+ templateUuid: 'templateUuid',
1628
+ };
1629
+ }
1630
+
1631
+ static types(): { [key: string]: any } {
1632
+ return {
1633
+ targetType: 'string',
1634
+ templateUuid: 'string',
1635
+ };
1636
+ }
1637
+
1638
+ constructor(map?: { [key: string]: any }) {
1639
+ super(map);
1640
+ }
1641
+ }
1642
+
1643
+ export class NotifyStrategyForViewGroupingSetting extends $tea.Model {
1644
+ groupingKeys?: string[];
1645
+ periodMin?: number;
1646
+ silenceSec?: number;
1647
+ times?: number;
1648
+ static names(): { [key: string]: string } {
1649
+ return {
1650
+ groupingKeys: 'groupingKeys',
1651
+ periodMin: 'periodMin',
1652
+ silenceSec: 'silenceSec',
1653
+ times: 'times',
1654
+ };
1655
+ }
1656
+
1657
+ static types(): { [key: string]: any } {
1658
+ return {
1659
+ groupingKeys: { 'type': 'array', 'itemType': 'string' },
1660
+ periodMin: 'number',
1661
+ silenceSec: 'number',
1662
+ times: 'number',
1663
+ };
1664
+ }
1665
+
1666
+ constructor(map?: { [key: string]: any }) {
1667
+ super(map);
1668
+ }
1669
+ }
1670
+
1671
+ export class NotifyStrategyForViewRoutesChannels extends $tea.Model {
1672
+ /**
1673
+ * @remarks
1674
+ * This parameter is required.
1675
+ */
1676
+ channelType?: string;
1677
+ enabledSubChannels?: string[];
1678
+ /**
1679
+ * @remarks
1680
+ * This parameter is required.
1681
+ */
1682
+ receivers?: string[];
1683
+ static names(): { [key: string]: string } {
1684
+ return {
1685
+ channelType: 'channelType',
1686
+ enabledSubChannels: 'enabledSubChannels',
1687
+ receivers: 'receivers',
1688
+ };
1689
+ }
1690
+
1691
+ static types(): { [key: string]: any } {
1692
+ return {
1693
+ channelType: 'string',
1694
+ enabledSubChannels: { 'type': 'array', 'itemType': 'string' },
1695
+ receivers: { 'type': 'array', 'itemType': 'string' },
1696
+ };
1697
+ }
1698
+
1699
+ constructor(map?: { [key: string]: any }) {
1700
+ super(map);
1701
+ }
1702
+ }
1703
+
1704
+ export class NotifyStrategyForViewRoutesEffectTimeRange extends $tea.Model {
1705
+ dayInWeek?: number[];
1706
+ endTimeInMinute?: number;
1707
+ startTimeInMinute?: number;
1708
+ timeZone?: string;
1709
+ static names(): { [key: string]: string } {
1710
+ return {
1711
+ dayInWeek: 'dayInWeek',
1712
+ endTimeInMinute: 'endTimeInMinute',
1713
+ startTimeInMinute: 'startTimeInMinute',
1714
+ timeZone: 'timeZone',
1715
+ };
1716
+ }
1717
+
1718
+ static types(): { [key: string]: any } {
1719
+ return {
1720
+ dayInWeek: { 'type': 'array', 'itemType': 'number' },
1721
+ endTimeInMinute: 'number',
1722
+ startTimeInMinute: 'number',
1723
+ timeZone: 'string',
1724
+ };
1725
+ }
1726
+
1727
+ constructor(map?: { [key: string]: any }) {
1728
+ super(map);
1729
+ }
1730
+ }
1731
+
1732
+ export class NotifyStrategyForViewRoutes extends $tea.Model {
1733
+ channels?: NotifyStrategyForViewRoutesChannels[];
1734
+ effectTimeRange?: NotifyStrategyForViewRoutesEffectTimeRange;
1735
+ filterSetting?: FilterSetting;
1736
+ severities?: string[];
1737
+ static names(): { [key: string]: string } {
1738
+ return {
1739
+ channels: 'channels',
1740
+ effectTimeRange: 'effectTimeRange',
1741
+ filterSetting: 'filterSetting',
1742
+ severities: 'severities',
1743
+ };
1744
+ }
1745
+
1746
+ static types(): { [key: string]: any } {
1747
+ return {
1748
+ channels: { 'type': 'array', 'itemType': NotifyStrategyForViewRoutesChannels },
1749
+ effectTimeRange: NotifyStrategyForViewRoutesEffectTimeRange,
1750
+ filterSetting: FilterSetting,
1751
+ severities: { 'type': 'array', 'itemType': 'string' },
1752
+ };
1753
+ }
1754
+
1755
+ constructor(map?: { [key: string]: any }) {
1756
+ super(map);
1757
+ }
1758
+ }
1759
+
1760
+ export class SubscriptionForModifyPushingSetting extends $tea.Model {
1761
+ alertActionIds?: string[];
1762
+ responsePlanId?: string;
1763
+ restoreActionIds?: string[];
1764
+ templateUuid?: string;
1765
+ static names(): { [key: string]: string } {
1766
+ return {
1767
+ alertActionIds: 'alertActionIds',
1768
+ responsePlanId: 'responsePlanId',
1769
+ restoreActionIds: 'restoreActionIds',
1770
+ templateUuid: 'templateUuid',
1771
+ };
1772
+ }
1773
+
1774
+ static types(): { [key: string]: any } {
1775
+ return {
1776
+ alertActionIds: { 'type': 'array', 'itemType': 'string' },
1777
+ responsePlanId: 'string',
1778
+ restoreActionIds: { 'type': 'array', 'itemType': 'string' },
1779
+ templateUuid: 'string',
1780
+ };
1781
+ }
1782
+
1783
+ constructor(map?: { [key: string]: any }) {
1784
+ super(map);
1785
+ }
1786
+ }
1787
+
1788
+ export class SubscriptionForViewPushingSetting extends $tea.Model {
1789
+ alertActionIds?: string[];
1790
+ responsePlanId?: string;
1791
+ restoreActionIds?: string[];
1792
+ templateUuid?: string;
1793
+ static names(): { [key: string]: string } {
1794
+ return {
1795
+ alertActionIds: 'alertActionIds',
1796
+ responsePlanId: 'responsePlanId',
1797
+ restoreActionIds: 'restoreActionIds',
1798
+ templateUuid: 'templateUuid',
1799
+ };
1800
+ }
1801
+
1802
+ static types(): { [key: string]: any } {
1803
+ return {
1804
+ alertActionIds: { 'type': 'array', 'itemType': 'string' },
1805
+ responsePlanId: 'string',
1806
+ restoreActionIds: { 'type': 'array', 'itemType': 'string' },
1807
+ templateUuid: 'string',
1808
+ };
1809
+ }
1810
+
1811
+ constructor(map?: { [key: string]: any }) {
1812
+ super(map);
1813
+ }
1814
+ }
1815
+
1816
+ export class ListAlertActionsResponseBodyAlertActionsEssParam extends $tea.Model {
1817
+ essGroupId?: string;
1818
+ essRuleId?: string;
1819
+ regionId?: string;
1820
+ static names(): { [key: string]: string } {
1821
+ return {
1822
+ essGroupId: 'essGroupId',
1823
+ essRuleId: 'essRuleId',
1824
+ regionId: 'regionId',
1825
+ };
1826
+ }
1827
+
1828
+ static types(): { [key: string]: any } {
1829
+ return {
1830
+ essGroupId: 'string',
1831
+ essRuleId: 'string',
1832
+ regionId: 'string',
1833
+ };
1834
+ }
1835
+
1836
+ constructor(map?: { [key: string]: any }) {
1837
+ super(map);
1838
+ }
1839
+ }
1840
+
1841
+ export class ListAlertActionsResponseBodyAlertActionsFcParam extends $tea.Model {
1842
+ function?: string;
1843
+ regionId?: string;
1844
+ service?: string;
1845
+ static names(): { [key: string]: string } {
1846
+ return {
1847
+ function: 'function',
1848
+ regionId: 'regionId',
1849
+ service: 'service',
1850
+ };
1851
+ }
1852
+
1853
+ static types(): { [key: string]: any } {
1854
+ return {
1855
+ function: 'string',
1856
+ regionId: 'string',
1857
+ service: 'string',
1858
+ };
1859
+ }
1860
+
1861
+ constructor(map?: { [key: string]: any }) {
1862
+ super(map);
1863
+ }
1864
+ }
1865
+
1866
+ export class ListAlertActionsResponseBodyAlertActionsMnsParam extends $tea.Model {
1867
+ mnsType?: string;
1868
+ name?: string;
1869
+ regionId?: string;
1870
+ static names(): { [key: string]: string } {
1871
+ return {
1872
+ mnsType: 'mnsType',
1873
+ name: 'name',
1874
+ regionId: 'regionId',
1875
+ };
1876
+ }
1877
+
1878
+ static types(): { [key: string]: any } {
1879
+ return {
1880
+ mnsType: 'string',
1881
+ name: 'string',
1882
+ regionId: 'string',
1883
+ };
1884
+ }
1885
+
1886
+ constructor(map?: { [key: string]: any }) {
1887
+ super(map);
1888
+ }
1889
+ }
1890
+
1891
+ export class ListAlertActionsResponseBodyAlertActionsPagerDutyParam extends $tea.Model {
1892
+ key?: string;
1893
+ url?: string;
1894
+ static names(): { [key: string]: string } {
1895
+ return {
1896
+ key: 'key',
1897
+ url: 'url',
1898
+ };
1899
+ }
1900
+
1901
+ static types(): { [key: string]: any } {
1902
+ return {
1903
+ key: 'string',
1904
+ url: 'string',
1905
+ };
1906
+ }
1907
+
1908
+ constructor(map?: { [key: string]: any }) {
1909
+ super(map);
1910
+ }
1911
+ }
1912
+
1913
+ export class ListAlertActionsResponseBodyAlertActionsSlsParam extends $tea.Model {
1914
+ logstore?: string;
1915
+ project?: string;
1916
+ regionId?: string;
1917
+ static names(): { [key: string]: string } {
1918
+ return {
1919
+ logstore: 'logstore',
1920
+ project: 'project',
1921
+ regionId: 'regionId',
1922
+ };
1923
+ }
1924
+
1925
+ static types(): { [key: string]: any } {
1926
+ return {
1927
+ logstore: 'string',
1928
+ project: 'string',
1929
+ regionId: 'string',
1930
+ };
1931
+ }
1932
+
1933
+ constructor(map?: { [key: string]: any }) {
1934
+ super(map);
1935
+ }
1936
+ }
1937
+
1938
+ export class ListAlertActionsResponseBodyAlertActionsWebhookParam extends $tea.Model {
1939
+ contentType?: string;
1940
+ headers?: { [key: string]: string };
1941
+ method?: string;
1942
+ url?: string;
1943
+ static names(): { [key: string]: string } {
1944
+ return {
1945
+ contentType: 'contentType',
1946
+ headers: 'headers',
1947
+ method: 'method',
1948
+ url: 'url',
1949
+ };
1950
+ }
1951
+
1952
+ static types(): { [key: string]: any } {
1953
+ return {
1954
+ contentType: 'string',
1955
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1956
+ method: 'string',
1957
+ url: 'string',
1958
+ };
1959
+ }
1960
+
1961
+ constructor(map?: { [key: string]: any }) {
1962
+ super(map);
1963
+ }
1964
+ }
1965
+
1966
+ export class ListAlertActionsResponseBodyAlertActions extends $tea.Model {
1967
+ alertActionId?: string;
1968
+ alertActionName?: string;
1969
+ essParam?: ListAlertActionsResponseBodyAlertActionsEssParam;
1970
+ fcParam?: ListAlertActionsResponseBodyAlertActionsFcParam;
1971
+ mnsParam?: ListAlertActionsResponseBodyAlertActionsMnsParam;
1972
+ pagerDutyParam?: ListAlertActionsResponseBodyAlertActionsPagerDutyParam;
1973
+ slsParam?: ListAlertActionsResponseBodyAlertActionsSlsParam;
1974
+ type?: string;
1975
+ webhookParam?: ListAlertActionsResponseBodyAlertActionsWebhookParam;
1976
+ static names(): { [key: string]: string } {
1977
+ return {
1978
+ alertActionId: 'alertActionId',
1979
+ alertActionName: 'alertActionName',
1980
+ essParam: 'essParam',
1981
+ fcParam: 'fcParam',
1982
+ mnsParam: 'mnsParam',
1983
+ pagerDutyParam: 'pagerDutyParam',
1984
+ slsParam: 'slsParam',
1985
+ type: 'type',
1986
+ webhookParam: 'webhookParam',
1987
+ };
1988
+ }
1989
+
1990
+ static types(): { [key: string]: any } {
1991
+ return {
1992
+ alertActionId: 'string',
1993
+ alertActionName: 'string',
1994
+ essParam: ListAlertActionsResponseBodyAlertActionsEssParam,
1995
+ fcParam: ListAlertActionsResponseBodyAlertActionsFcParam,
1996
+ mnsParam: ListAlertActionsResponseBodyAlertActionsMnsParam,
1997
+ pagerDutyParam: ListAlertActionsResponseBodyAlertActionsPagerDutyParam,
1998
+ slsParam: ListAlertActionsResponseBodyAlertActionsSlsParam,
1999
+ type: 'string',
2000
+ webhookParam: ListAlertActionsResponseBodyAlertActionsWebhookParam,
2001
+ };
2002
+ }
2003
+
2004
+ constructor(map?: { [key: string]: any }) {
2005
+ super(map);
2006
+ }
2007
+ }
2008
+
2009
+
2010
+ export default class Client extends OpenApi {
2011
+
2012
+ constructor(config: $OpenApi.Config) {
2013
+ super(config);
2014
+ this._endpointRule = "";
2015
+ this.checkConfig(config);
2016
+ this._endpoint = this.getEndpoint("cms", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
2017
+ }
2018
+
2019
+
2020
+ getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
2021
+ if (!Util.empty(endpoint)) {
2022
+ return endpoint;
2023
+ }
2024
+
2025
+ if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
2026
+ return endpointMap[regionId];
2027
+ }
2028
+
2029
+ return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
2030
+ }
2031
+
2032
+ /**
2033
+ * 查询告警动作
2034
+ *
2035
+ * @param tmpReq - ListAlertActionsRequest
2036
+ * @param headers - map
2037
+ * @param runtime - runtime options for this request RuntimeOptions
2038
+ * @returns ListAlertActionsResponse
2039
+ */
2040
+ async listAlertActionsWithOptions(tmpReq: ListAlertActionsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListAlertActionsResponse> {
2041
+ Util.validateModel(tmpReq);
2042
+ let request = new ListAlertActionsShrinkRequest({ });
2043
+ OpenApiUtil.convert(tmpReq, request);
2044
+ if (!Util.isUnset(tmpReq.alertActionIds)) {
2045
+ request.alertActionIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.alertActionIds, "alertActionIds", "json");
2046
+ }
2047
+
2048
+ let query : {[key: string ]: any} = { };
2049
+ if (!Util.isUnset(request.alertActionIdsShrink)) {
2050
+ query["alertActionIds"] = request.alertActionIdsShrink;
2051
+ }
2052
+
2053
+ if (!Util.isUnset(request.alertActionName)) {
2054
+ query["alertActionName"] = request.alertActionName;
2055
+ }
2056
+
2057
+ if (!Util.isUnset(request.pageNumber)) {
2058
+ query["pageNumber"] = request.pageNumber;
2059
+ }
2060
+
2061
+ if (!Util.isUnset(request.pageSize)) {
2062
+ query["pageSize"] = request.pageSize;
2063
+ }
2064
+
2065
+ if (!Util.isUnset(request.type)) {
2066
+ query["type"] = request.type;
2067
+ }
2068
+
2069
+ let req = new $OpenApi.OpenApiRequest({
2070
+ headers: headers,
2071
+ query: OpenApiUtil.query(query),
2072
+ });
2073
+ let params = new $OpenApi.Params({
2074
+ action: "ListAlertActions",
2075
+ version: "2024-03-30",
2076
+ protocol: "HTTPS",
2077
+ pathname: `/alertActions`,
2078
+ method: "GET",
2079
+ authType: "AK",
2080
+ style: "ROA",
2081
+ reqBodyType: "json",
2082
+ bodyType: "json",
2083
+ });
2084
+ return $tea.cast<ListAlertActionsResponse>(await this.callApi(params, req, runtime), new ListAlertActionsResponse({}));
2085
+ }
2086
+
2087
+ /**
2088
+ * 查询告警动作
2089
+ *
2090
+ * @param request - ListAlertActionsRequest
2091
+ * @returns ListAlertActionsResponse
2092
+ */
2093
+ async listAlertActions(request: ListAlertActionsRequest): Promise<ListAlertActionsResponse> {
2094
+ let runtime = new $Util.RuntimeOptions({ });
2095
+ let headers : {[key: string ]: string} = { };
2096
+ return await this.listAlertActionsWithOptions(request, headers, runtime);
2097
+ }
2098
+
2099
+ }