@alicloud/cms20240330 2.0.0 → 2.0.1
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/models/AlertRuleCondition.d.ts +10 -2
- package/dist/models/AlertRuleCondition.js +24 -2
- package/dist/models/AlertRuleCondition.js.map +1 -1
- package/dist/models/AlertRuleConditionCompositeEscalation.d.ts +18 -0
- package/dist/models/AlertRuleConditionCompositeEscalation.js +68 -0
- package/dist/models/AlertRuleConditionCompositeEscalation.js.map +1 -0
- package/dist/models/AlertRuleConditionCompositeEscalationEscalations.d.ts +18 -0
- package/dist/models/AlertRuleConditionCompositeEscalationEscalations.js +66 -0
- package/dist/models/AlertRuleConditionCompositeEscalationEscalations.js.map +1 -0
- package/dist/models/AlertRuleConditionExpressEscalation.d.ts +16 -0
- package/dist/models/AlertRuleConditionExpressEscalation.js +62 -0
- package/dist/models/AlertRuleConditionExpressEscalation.js.map +1 -0
- package/dist/models/AlertRuleConditionSimpleEscalation.d.ts +17 -0
- package/dist/models/AlertRuleConditionSimpleEscalation.js +66 -0
- package/dist/models/AlertRuleConditionSimpleEscalation.js.map +1 -0
- package/dist/models/AlertRuleConditionSimpleEscalationEscalations.d.ts +18 -0
- package/dist/models/AlertRuleConditionSimpleEscalationEscalations.js +66 -0
- package/dist/models/AlertRuleConditionSimpleEscalationEscalations.js.map +1 -0
- package/dist/models/AlertRuleQuery.d.ts +6 -0
- package/dist/models/AlertRuleQuery.js +11 -0
- package/dist/models/AlertRuleQuery.js.map +1 -1
- package/dist/models/AlertRuleSend.d.ts +1 -0
- package/dist/models/AlertRuleSend.js +2 -0
- package/dist/models/AlertRuleSend.js.map +1 -1
- package/dist/models/ListAlertActionsResponseBodyAlertActions.d.ts +4 -0
- package/dist/models/ListAlertActionsResponseBodyAlertActions.js +12 -0
- package/dist/models/ListAlertActionsResponseBodyAlertActions.js.map +1 -1
- package/dist/models/ListAlertActionsResponseBodyAlertActionsEbParam.d.ts +17 -0
- package/dist/models/ListAlertActionsResponseBodyAlertActionsEbParam.js +64 -0
- package/dist/models/ListAlertActionsResponseBodyAlertActionsEbParam.js.map +1 -0
- package/dist/models/ListAlertActionsResponseBodyAlertActionsFc3param.d.ts +16 -0
- package/dist/models/ListAlertActionsResponseBodyAlertActionsFc3param.js +62 -0
- package/dist/models/ListAlertActionsResponseBodyAlertActionsFc3param.js.map +1 -0
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +17 -3
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/models/AlertRuleCondition.ts +31 -4
- package/src/models/AlertRuleConditionCompositeEscalation.ts +40 -0
- package/src/models/AlertRuleConditionCompositeEscalationEscalations.ts +39 -0
- package/src/models/AlertRuleConditionExpressEscalation.ts +33 -0
- package/src/models/AlertRuleConditionSimpleEscalation.ts +37 -0
- package/src/models/AlertRuleConditionSimpleEscalationEscalations.ts +39 -0
- package/src/models/AlertRuleQuery.ts +15 -0
- package/src/models/AlertRuleSend.ts +3 -0
- package/src/models/ListAlertActionsResponseBodyAlertActions.ts +14 -0
- package/src/models/ListAlertActionsResponseBodyAlertActionsEbParam.ts +36 -0
- package/src/models/ListAlertActionsResponseBodyAlertActionsFc3param.ts +33 -0
- package/src/models/model.ts +7 -0
|
@@ -6,12 +6,16 @@ import { AlertRuleQueryQueries } from "./AlertRuleQueryQueries";
|
|
|
6
6
|
|
|
7
7
|
export class AlertRuleQuery extends $dara.Model {
|
|
8
8
|
checkAfterDataComplete?: boolean;
|
|
9
|
+
dimensions?: { [key: string]: string }[];
|
|
9
10
|
duration?: number;
|
|
10
11
|
expr?: string;
|
|
11
12
|
firstJoin?: AlertRuleSlsQueryJoin;
|
|
12
13
|
groupFieldList?: string[];
|
|
14
|
+
groupId?: string;
|
|
13
15
|
groupType?: string;
|
|
16
|
+
namespace?: string;
|
|
14
17
|
queries?: AlertRuleQueryQueries[];
|
|
18
|
+
relationType?: string;
|
|
15
19
|
secondJoin?: AlertRuleSlsQueryJoin;
|
|
16
20
|
/**
|
|
17
21
|
* @remarks
|
|
@@ -23,12 +27,16 @@ export class AlertRuleQuery extends $dara.Model {
|
|
|
23
27
|
static names(): { [key: string]: string } {
|
|
24
28
|
return {
|
|
25
29
|
checkAfterDataComplete: 'checkAfterDataComplete',
|
|
30
|
+
dimensions: 'dimensions',
|
|
26
31
|
duration: 'duration',
|
|
27
32
|
expr: 'expr',
|
|
28
33
|
firstJoin: 'firstJoin',
|
|
29
34
|
groupFieldList: 'groupFieldList',
|
|
35
|
+
groupId: 'groupId',
|
|
30
36
|
groupType: 'groupType',
|
|
37
|
+
namespace: 'namespace',
|
|
31
38
|
queries: 'queries',
|
|
39
|
+
relationType: 'relationType',
|
|
32
40
|
secondJoin: 'secondJoin',
|
|
33
41
|
type: 'type',
|
|
34
42
|
};
|
|
@@ -37,18 +45,25 @@ export class AlertRuleQuery extends $dara.Model {
|
|
|
37
45
|
static types(): { [key: string]: any } {
|
|
38
46
|
return {
|
|
39
47
|
checkAfterDataComplete: 'boolean',
|
|
48
|
+
dimensions: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'string' } },
|
|
40
49
|
duration: 'number',
|
|
41
50
|
expr: 'string',
|
|
42
51
|
firstJoin: AlertRuleSlsQueryJoin,
|
|
43
52
|
groupFieldList: { 'type': 'array', 'itemType': 'string' },
|
|
53
|
+
groupId: 'string',
|
|
44
54
|
groupType: 'string',
|
|
55
|
+
namespace: 'string',
|
|
45
56
|
queries: { 'type': 'array', 'itemType': AlertRuleQueryQueries },
|
|
57
|
+
relationType: 'string',
|
|
46
58
|
secondJoin: AlertRuleSlsQueryJoin,
|
|
47
59
|
type: 'string',
|
|
48
60
|
};
|
|
49
61
|
}
|
|
50
62
|
|
|
51
63
|
validate() {
|
|
64
|
+
if(Array.isArray(this.dimensions)) {
|
|
65
|
+
$dara.Model.validateArray(this.dimensions);
|
|
66
|
+
}
|
|
52
67
|
if(this.firstJoin && typeof (this.firstJoin as any).validate === 'function') {
|
|
53
68
|
(this.firstJoin as any).validate();
|
|
54
69
|
}
|
|
@@ -7,10 +7,12 @@ import { AlertRuleNotification } from "./AlertRuleNotification";
|
|
|
7
7
|
export class AlertRuleSend extends $dara.Model {
|
|
8
8
|
action?: AlertRuleAction;
|
|
9
9
|
notification?: AlertRuleNotification;
|
|
10
|
+
sendToArms?: boolean;
|
|
10
11
|
static names(): { [key: string]: string } {
|
|
11
12
|
return {
|
|
12
13
|
action: 'action',
|
|
13
14
|
notification: 'notification',
|
|
15
|
+
sendToArms: 'sendToArms',
|
|
14
16
|
};
|
|
15
17
|
}
|
|
16
18
|
|
|
@@ -18,6 +20,7 @@ export class AlertRuleSend extends $dara.Model {
|
|
|
18
20
|
return {
|
|
19
21
|
action: AlertRuleAction,
|
|
20
22
|
notification: AlertRuleNotification,
|
|
23
|
+
sendToArms: 'boolean',
|
|
21
24
|
};
|
|
22
25
|
}
|
|
23
26
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated, don't edit it
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListAlertActionsResponseBodyAlertActionsEbParam } from "./ListAlertActionsResponseBodyAlertActionsEbParam";
|
|
3
4
|
import { ListAlertActionsResponseBodyAlertActionsEssParam } from "./ListAlertActionsResponseBodyAlertActionsEssParam";
|
|
5
|
+
import { ListAlertActionsResponseBodyAlertActionsFc3Param } from "./ListAlertActionsResponseBodyAlertActionsFc3param";
|
|
4
6
|
import { ListAlertActionsResponseBodyAlertActionsFcParam } from "./ListAlertActionsResponseBodyAlertActionsFcParam";
|
|
5
7
|
import { ListAlertActionsResponseBodyAlertActionsMnsParam } from "./ListAlertActionsResponseBodyAlertActionsMnsParam";
|
|
6
8
|
import { ListAlertActionsResponseBodyAlertActionsPagerDutyParam } from "./ListAlertActionsResponseBodyAlertActionsPagerDutyParam";
|
|
@@ -11,7 +13,9 @@ import { ListAlertActionsResponseBodyAlertActionsWebhookParam } from "./ListAler
|
|
|
11
13
|
export class ListAlertActionsResponseBodyAlertActions extends $dara.Model {
|
|
12
14
|
alertActionId?: string;
|
|
13
15
|
alertActionName?: string;
|
|
16
|
+
ebParam?: ListAlertActionsResponseBodyAlertActionsEbParam;
|
|
14
17
|
essParam?: ListAlertActionsResponseBodyAlertActionsEssParam;
|
|
18
|
+
fc3Param?: ListAlertActionsResponseBodyAlertActionsFc3Param;
|
|
15
19
|
fcParam?: ListAlertActionsResponseBodyAlertActionsFcParam;
|
|
16
20
|
mnsParam?: ListAlertActionsResponseBodyAlertActionsMnsParam;
|
|
17
21
|
pagerDutyParam?: ListAlertActionsResponseBodyAlertActionsPagerDutyParam;
|
|
@@ -22,7 +26,9 @@ export class ListAlertActionsResponseBodyAlertActions extends $dara.Model {
|
|
|
22
26
|
return {
|
|
23
27
|
alertActionId: 'alertActionId',
|
|
24
28
|
alertActionName: 'alertActionName',
|
|
29
|
+
ebParam: 'ebParam',
|
|
25
30
|
essParam: 'essParam',
|
|
31
|
+
fc3Param: 'fc3Param',
|
|
26
32
|
fcParam: 'fcParam',
|
|
27
33
|
mnsParam: 'mnsParam',
|
|
28
34
|
pagerDutyParam: 'pagerDutyParam',
|
|
@@ -36,7 +42,9 @@ export class ListAlertActionsResponseBodyAlertActions extends $dara.Model {
|
|
|
36
42
|
return {
|
|
37
43
|
alertActionId: 'string',
|
|
38
44
|
alertActionName: 'string',
|
|
45
|
+
ebParam: ListAlertActionsResponseBodyAlertActionsEbParam,
|
|
39
46
|
essParam: ListAlertActionsResponseBodyAlertActionsEssParam,
|
|
47
|
+
fc3Param: ListAlertActionsResponseBodyAlertActionsFc3Param,
|
|
40
48
|
fcParam: ListAlertActionsResponseBodyAlertActionsFcParam,
|
|
41
49
|
mnsParam: ListAlertActionsResponseBodyAlertActionsMnsParam,
|
|
42
50
|
pagerDutyParam: ListAlertActionsResponseBodyAlertActionsPagerDutyParam,
|
|
@@ -47,9 +55,15 @@ export class ListAlertActionsResponseBodyAlertActions extends $dara.Model {
|
|
|
47
55
|
}
|
|
48
56
|
|
|
49
57
|
validate() {
|
|
58
|
+
if(this.ebParam && typeof (this.ebParam as any).validate === 'function') {
|
|
59
|
+
(this.ebParam as any).validate();
|
|
60
|
+
}
|
|
50
61
|
if(this.essParam && typeof (this.essParam as any).validate === 'function') {
|
|
51
62
|
(this.essParam as any).validate();
|
|
52
63
|
}
|
|
64
|
+
if(this.fc3Param && typeof (this.fc3Param as any).validate === 'function') {
|
|
65
|
+
(this.fc3Param as any).validate();
|
|
66
|
+
}
|
|
53
67
|
if(this.fcParam && typeof (this.fcParam as any).validate === 'function') {
|
|
54
68
|
(this.fcParam as any).validate();
|
|
55
69
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListAlertActionsResponseBodyAlertActionsEbParam extends $dara.Model {
|
|
6
|
+
ebSource?: string;
|
|
7
|
+
eventBusName?: string;
|
|
8
|
+
regionId?: string;
|
|
9
|
+
subject?: string;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
ebSource: 'ebSource',
|
|
13
|
+
eventBusName: 'eventBusName',
|
|
14
|
+
regionId: 'regionId',
|
|
15
|
+
subject: 'subject',
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static types(): { [key: string]: any } {
|
|
20
|
+
return {
|
|
21
|
+
ebSource: 'string',
|
|
22
|
+
eventBusName: 'string',
|
|
23
|
+
regionId: 'string',
|
|
24
|
+
subject: 'string',
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
validate() {
|
|
29
|
+
super.validate();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
constructor(map?: { [key: string]: any }) {
|
|
33
|
+
super(map);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListAlertActionsResponseBodyAlertActionsFc3Param extends $dara.Model {
|
|
6
|
+
function?: string;
|
|
7
|
+
qualifier?: string;
|
|
8
|
+
regionId?: string;
|
|
9
|
+
static names(): { [key: string]: string } {
|
|
10
|
+
return {
|
|
11
|
+
function: 'function',
|
|
12
|
+
qualifier: 'qualifier',
|
|
13
|
+
regionId: 'regionId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
function: 'string',
|
|
20
|
+
qualifier: 'string',
|
|
21
|
+
regionId: 'string',
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
validate() {
|
|
26
|
+
super.validate();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
constructor(map?: { [key: string]: any }) {
|
|
30
|
+
super(map);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -10,6 +10,11 @@ export { AlertRuleAlertMetricParamDefValues } from './AlertRuleAlertMetricParamD
|
|
|
10
10
|
export { AlertRuleConditionCaseList } from './AlertRuleConditionCaseList';
|
|
11
11
|
export { AlertRuleConditionCompareListValueLevelList } from './AlertRuleConditionCompareListValueLevelList';
|
|
12
12
|
export { AlertRuleConditionCompareList } from './AlertRuleConditionCompareList';
|
|
13
|
+
export { AlertRuleConditionCompositeEscalationEscalations } from './AlertRuleConditionCompositeEscalationEscalations';
|
|
14
|
+
export { AlertRuleConditionCompositeEscalation } from './AlertRuleConditionCompositeEscalation';
|
|
15
|
+
export { AlertRuleConditionExpressEscalation } from './AlertRuleConditionExpressEscalation';
|
|
16
|
+
export { AlertRuleConditionSimpleEscalationEscalations } from './AlertRuleConditionSimpleEscalationEscalations';
|
|
17
|
+
export { AlertRuleConditionSimpleEscalation } from './AlertRuleConditionSimpleEscalation';
|
|
13
18
|
export { AlertRuleDataSourceDsList } from './AlertRuleDataSourceDsList';
|
|
14
19
|
export { AlertRuleQueryQueriesApmFilters } from './AlertRuleQueryQueriesApmFilters';
|
|
15
20
|
export { AlertRuleQueryQueries } from './AlertRuleQueryQueries';
|
|
@@ -38,7 +43,9 @@ export { CreatePrometheusInstanceRequestTags } from './CreatePrometheusInstanceR
|
|
|
38
43
|
export { CreateUmodelRequestCommonSchemaRef } from './CreateUmodelRequestCommonSchemaRef';
|
|
39
44
|
export { GetUmodelResponseBodyCommonSchemaRef } from './GetUmodelResponseBodyCommonSchemaRef';
|
|
40
45
|
export { GetUmodelDataResponseBodyErrors } from './GetUmodelDataResponseBodyErrors';
|
|
46
|
+
export { ListAlertActionsResponseBodyAlertActionsEbParam } from './ListAlertActionsResponseBodyAlertActionsEbParam';
|
|
41
47
|
export { ListAlertActionsResponseBodyAlertActionsEssParam } from './ListAlertActionsResponseBodyAlertActionsEssParam';
|
|
48
|
+
export { ListAlertActionsResponseBodyAlertActionsFc3Param } from './ListAlertActionsResponseBodyAlertActionsFc3param';
|
|
42
49
|
export { ListAlertActionsResponseBodyAlertActionsFcParam } from './ListAlertActionsResponseBodyAlertActionsFcParam';
|
|
43
50
|
export { ListAlertActionsResponseBodyAlertActionsMnsParam } from './ListAlertActionsResponseBodyAlertActionsMnsParam';
|
|
44
51
|
export { ListAlertActionsResponseBodyAlertActionsPagerDutyParam } from './ListAlertActionsResponseBodyAlertActionsPagerDutyParam';
|