@alicloud/cms20240330 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +155 -2
- package/dist/client.js +368 -2
- package/dist/client.js.map +1 -1
- package/dist/models/AlertRuleSend.d.ts +1 -0
- package/dist/models/AlertRuleSend.js +5 -0
- package/dist/models/AlertRuleSend.js.map +1 -1
- package/dist/models/CmsEventForView.d.ts +42 -0
- package/dist/models/CmsEventForView.js +113 -0
- package/dist/models/CmsEventForView.js.map +1 -0
- package/dist/models/ContactForIncidentView.d.ts +15 -0
- package/dist/models/ContactForIncidentView.js +60 -0
- package/dist/models/ContactForIncidentView.js.map +1 -0
- package/dist/models/CreateCloudResourceResponse.d.ts +19 -0
- package/dist/models/CreateCloudResourceResponse.js +69 -0
- package/dist/models/CreateCloudResourceResponse.js.map +1 -0
- package/dist/models/CreateCloudResourceResponseBody.d.ts +18 -0
- package/dist/models/CreateCloudResourceResponseBody.js +58 -0
- package/dist/models/CreateCloudResourceResponseBody.js.map +1 -0
- package/dist/models/DeleteCloudResourceResponse.d.ts +19 -0
- package/dist/models/DeleteCloudResourceResponse.js +69 -0
- package/dist/models/DeleteCloudResourceResponse.js.map +1 -0
- package/dist/models/DeleteCloudResourceResponseBody.d.ts +18 -0
- package/dist/models/DeleteCloudResourceResponseBody.js +58 -0
- package/dist/models/DeleteCloudResourceResponseBody.js.map +1 -0
- package/dist/models/DescribeRegionsRequest.d.ts +18 -0
- package/dist/models/DescribeRegionsRequest.js +58 -0
- package/dist/models/DescribeRegionsRequest.js.map +1 -0
- package/dist/models/DescribeRegionsResponse.d.ts +19 -0
- package/dist/models/DescribeRegionsResponse.js +69 -0
- package/dist/models/DescribeRegionsResponse.js.map +1 -0
- package/dist/models/DescribeRegionsResponseBody.d.ts +44 -0
- package/dist/models/DescribeRegionsResponseBody.js +84 -0
- package/dist/models/DescribeRegionsResponseBody.js.map +1 -0
- package/dist/models/EffectTimeRange.d.ts +17 -0
- package/dist/models/EffectTimeRange.js +67 -0
- package/dist/models/EffectTimeRange.js.map +1 -0
- package/dist/models/EventResourceForEventView.d.ts +35 -0
- package/dist/models/EventResourceForEventView.js +94 -0
- package/dist/models/EventResourceForEventView.js.map +1 -0
- package/dist/models/EventResourceForIncidentView.d.ts +18 -0
- package/dist/models/EventResourceForIncidentView.js +66 -0
- package/dist/models/EventResourceForIncidentView.js.map +1 -0
- package/dist/models/GetCloudResourceDataRequest.d.ts +37 -0
- package/dist/models/GetCloudResourceDataRequest.js +62 -0
- package/dist/models/GetCloudResourceDataRequest.js.map +1 -0
- package/dist/models/GetCloudResourceDataResponse.d.ts +19 -0
- package/dist/models/GetCloudResourceDataResponse.js +69 -0
- package/dist/models/GetCloudResourceDataResponse.js.map +1 -0
- package/dist/models/GetCloudResourceDataResponseBody.d.ts +20 -0
- package/dist/models/GetCloudResourceDataResponseBody.js +68 -0
- package/dist/models/GetCloudResourceDataResponseBody.js.map +1 -0
- package/dist/models/GetCloudResourceResponse.d.ts +19 -0
- package/dist/models/GetCloudResourceResponse.js +69 -0
- package/dist/models/GetCloudResourceResponse.js.map +1 -0
- package/dist/models/GetCloudResourceResponseBody.d.ts +23 -0
- package/dist/models/GetCloudResourceResponseBody.js +60 -0
- package/dist/models/GetCloudResourceResponseBody.js.map +1 -0
- package/dist/models/GetCmsServiceRequest.d.ts +29 -0
- package/dist/models/GetCmsServiceRequest.js +60 -0
- package/dist/models/GetCmsServiceRequest.js.map +1 -0
- package/dist/models/GetCmsServiceResponse.d.ts +19 -0
- package/dist/models/GetCmsServiceResponse.js +69 -0
- package/dist/models/GetCmsServiceResponse.js.map +1 -0
- package/dist/models/GetCmsServiceResponseBody.d.ts +31 -0
- package/dist/models/GetCmsServiceResponseBody.js +62 -0
- package/dist/models/GetCmsServiceResponseBody.js.map +1 -0
- package/dist/models/GetPrometheusUserSettingRequest.d.ts +18 -0
- package/dist/models/GetPrometheusUserSettingRequest.js +58 -0
- package/dist/models/GetPrometheusUserSettingRequest.js.map +1 -0
- package/dist/models/GetPrometheusUserSettingResponse.d.ts +19 -0
- package/dist/models/GetPrometheusUserSettingResponse.js +69 -0
- package/dist/models/GetPrometheusUserSettingResponse.js.map +1 -0
- package/dist/models/GetPrometheusUserSettingResponseBody.d.ts +24 -0
- package/dist/models/GetPrometheusUserSettingResponseBody.js +63 -0
- package/dist/models/GetPrometheusUserSettingResponseBody.js.map +1 -0
- package/dist/models/IncidentEscalationPolicyForModify.d.ts +22 -0
- package/dist/models/IncidentEscalationPolicyForModify.js +68 -0
- package/dist/models/IncidentEscalationPolicyForModify.js.map +1 -0
- package/dist/models/IncidentEscalationPolicyForView.d.ts +31 -0
- package/dist/models/IncidentEscalationPolicyForView.js +86 -0
- package/dist/models/IncidentEscalationPolicyForView.js.map +1 -0
- package/dist/models/IncidentEscalationStageForView.d.ts +26 -0
- package/dist/models/IncidentEscalationStageForView.js +78 -0
- package/dist/models/IncidentEscalationStageForView.js.map +1 -0
- package/dist/models/IncidentEventForView.d.ts +43 -0
- package/dist/models/IncidentEventForView.js +119 -0
- package/dist/models/IncidentEventForView.js.map +1 -0
- package/dist/models/IncidentForView.d.ts +41 -0
- package/dist/models/IncidentForView.js +125 -0
- package/dist/models/IncidentForView.js.map +1 -0
- package/dist/models/IncidentResponsePlanForView.d.ts +30 -0
- package/dist/models/IncidentResponsePlanForView.js +97 -0
- package/dist/models/IncidentResponsePlanForView.js.map +1 -0
- package/dist/models/IncidentTimelineForView.d.ts +24 -0
- package/dist/models/IncidentTimelineForView.js +80 -0
- package/dist/models/IncidentTimelineForView.js.map +1 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsRequest.d.ts +28 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsRequest.js +62 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsRequest.js.map +1 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsResponse.d.ts +19 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsResponse.js +69 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsResponse.js.map +1 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsResponseBody.d.ts +124 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsResponseBody.js +134 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsResponseBody.js.map +1 -0
- package/dist/models/NotifyChannel.d.ts +16 -0
- package/dist/models/NotifyChannel.js +68 -0
- package/dist/models/NotifyChannel.js.map +1 -0
- package/dist/models/NotifyStrategyForModify.d.ts +37 -0
- package/dist/models/NotifyStrategyForModify.js +81 -1
- package/dist/models/NotifyStrategyForModify.js.map +1 -1
- package/dist/models/NotifyStrategyForView.d.ts +38 -0
- package/dist/models/NotifyStrategyForView.js +86 -1
- package/dist/models/NotifyStrategyForView.js.map +1 -1
- package/dist/models/PushingSetting.d.ts +16 -0
- package/dist/models/PushingSetting.js +68 -0
- package/dist/models/PushingSetting.js.map +1 -0
- package/dist/models/RepeatNotifySetting.d.ts +15 -0
- package/dist/models/RepeatNotifySetting.js +60 -0
- package/dist/models/RepeatNotifySetting.js.map +1 -0
- package/dist/models/SubscriptionForView.d.ts +1 -0
- package/dist/models/SubscriptionForView.js +2 -0
- package/dist/models/SubscriptionForView.js.map +1 -1
- package/dist/models/Tag.d.ts +15 -0
- package/dist/models/Tag.js +60 -0
- package/dist/models/Tag.js.map +1 -0
- package/dist/models/UpdatePrometheusUserSettingRequest.d.ts +21 -0
- package/dist/models/UpdatePrometheusUserSettingRequest.js +58 -0
- package/dist/models/UpdatePrometheusUserSettingRequest.js.map +1 -0
- package/dist/models/UpdatePrometheusUserSettingResponse.d.ts +19 -0
- package/dist/models/UpdatePrometheusUserSettingResponse.js +69 -0
- package/dist/models/UpdatePrometheusUserSettingResponse.js.map +1 -0
- package/dist/models/UpdatePrometheusUserSettingResponseBody.d.ts +21 -0
- package/dist/models/UpdatePrometheusUserSettingResponseBody.js +58 -0
- package/dist/models/UpdatePrometheusUserSettingResponseBody.js.map +1 -0
- package/dist/models/WorkspaceFilterSetting.d.ts +16 -0
- package/dist/models/WorkspaceFilterSetting.js +67 -0
- package/dist/models/WorkspaceFilterSetting.js.map +1 -0
- package/dist/models/model.d.ts +49 -0
- package/dist/models/model.js +117 -18
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +397 -2
- package/src/models/AlertRuleSend.ts +6 -0
- package/src/models/CmsEventForView.ts +103 -0
- package/src/models/ContactForIncidentView.ts +30 -0
- package/src/models/CreateCloudResourceResponse.ts +40 -0
- package/src/models/CreateCloudResourceResponseBody.ts +31 -0
- package/src/models/DeleteCloudResourceResponse.ts +40 -0
- package/src/models/DeleteCloudResourceResponseBody.ts +31 -0
- package/src/models/DescribeRegionsRequest.ts +31 -0
- package/src/models/DescribeRegionsResponse.ts +40 -0
- package/src/models/DescribeRegionsResponseBody.ts +74 -0
- package/src/models/EffectTimeRange.ts +39 -0
- package/src/models/EventResourceForEventView.ts +71 -0
- package/src/models/EventResourceForIncidentView.ts +39 -0
- package/src/models/GetCloudResourceDataRequest.ts +54 -0
- package/src/models/GetCloudResourceDataResponse.ts +40 -0
- package/src/models/GetCloudResourceDataResponseBody.ts +43 -0
- package/src/models/GetCloudResourceResponse.ts +40 -0
- package/src/models/GetCloudResourceResponseBody.ts +38 -0
- package/src/models/GetCmsServiceRequest.ts +44 -0
- package/src/models/GetCmsServiceResponse.ts +40 -0
- package/src/models/GetCmsServiceResponseBody.ts +48 -0
- package/src/models/GetPrometheusUserSettingRequest.ts +31 -0
- package/src/models/GetPrometheusUserSettingResponse.ts +40 -0
- package/src/models/GetPrometheusUserSettingResponseBody.ts +40 -0
- package/src/models/IncidentEscalationPolicyForModify.ts +44 -0
- package/src/models/IncidentEscalationPolicyForView.ts +71 -0
- package/src/models/IncidentEscalationStageForView.ts +57 -0
- package/src/models/IncidentEventForView.ts +107 -0
- package/src/models/IncidentForView.ts +115 -0
- package/src/models/IncidentResponsePlanForView.ts +80 -0
- package/src/models/IncidentTimelineForView.ts +58 -0
- package/src/models/ListIntegrationPolicyServiceMonitorsRequest.ts +45 -0
- package/src/models/ListIntegrationPolicyServiceMonitorsResponse.ts +40 -0
- package/src/models/ListIntegrationPolicyServiceMonitorsResponseBody.ts +195 -0
- package/src/models/NotifyChannel.ts +39 -0
- package/src/models/NotifyStrategyForModify.ts +98 -0
- package/src/models/NotifyStrategyForView.ts +104 -0
- package/src/models/PushingSetting.ts +39 -0
- package/src/models/RepeatNotifySetting.ts +30 -0
- package/src/models/SubscriptionForView.ts +3 -0
- package/src/models/Tag.ts +30 -0
- package/src/models/UpdatePrometheusUserSettingRequest.ts +34 -0
- package/src/models/UpdatePrometheusUserSettingResponse.ts +40 -0
- package/src/models/UpdatePrometheusUserSettingResponseBody.ts +34 -0
- package/src/models/WorkspaceFilterSetting.ts +37 -0
- package/src/models/model.ts +49 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListIntegrationPolicyServiceMonitorsRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* release-12345678
|
|
9
|
+
*/
|
|
10
|
+
addonReleaseName?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* true
|
|
14
|
+
*/
|
|
15
|
+
encryptYaml?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* arms-prom
|
|
19
|
+
*/
|
|
20
|
+
namespace?: string;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
addonReleaseName: 'addonReleaseName',
|
|
24
|
+
encryptYaml: 'encryptYaml',
|
|
25
|
+
namespace: 'namespace',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
addonReleaseName: 'string',
|
|
32
|
+
encryptYaml: 'boolean',
|
|
33
|
+
namespace: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListIntegrationPolicyServiceMonitorsResponseBody } from "./ListIntegrationPolicyServiceMonitorsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListIntegrationPolicyServiceMonitorsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListIntegrationPolicyServiceMonitorsResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: ListIntegrationPolicyServiceMonitorsResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListIntegrationPolicyServiceMonitorsResponseBodyServiceMonitorsEndpoints extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 30s
|
|
9
|
+
*/
|
|
10
|
+
interval?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 65
|
|
14
|
+
*/
|
|
15
|
+
matchedTargetCount?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* /metrics
|
|
19
|
+
*/
|
|
20
|
+
path?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* 9100
|
|
24
|
+
*/
|
|
25
|
+
port?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* http
|
|
29
|
+
*/
|
|
30
|
+
targetPort?: string;
|
|
31
|
+
static names(): { [key: string]: string } {
|
|
32
|
+
return {
|
|
33
|
+
interval: 'interval',
|
|
34
|
+
matchedTargetCount: 'matchedTargetCount',
|
|
35
|
+
path: 'path',
|
|
36
|
+
port: 'port',
|
|
37
|
+
targetPort: 'targetPort',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static types(): { [key: string]: any } {
|
|
42
|
+
return {
|
|
43
|
+
interval: 'string',
|
|
44
|
+
matchedTargetCount: 'number',
|
|
45
|
+
path: 'string',
|
|
46
|
+
port: 'string',
|
|
47
|
+
targetPort: 'string',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
validate() {
|
|
52
|
+
super.validate();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
constructor(map?: { [key: string]: any }) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export class ListIntegrationPolicyServiceMonitorsResponseBodyServiceMonitors extends $dara.Model {
|
|
61
|
+
/**
|
|
62
|
+
* @example
|
|
63
|
+
* cloud-acs-ecs
|
|
64
|
+
*/
|
|
65
|
+
addonName?: string;
|
|
66
|
+
/**
|
|
67
|
+
* @example
|
|
68
|
+
* release-1234567
|
|
69
|
+
*/
|
|
70
|
+
addonReleaseName?: string;
|
|
71
|
+
/**
|
|
72
|
+
* @example
|
|
73
|
+
* 0.0.1
|
|
74
|
+
*/
|
|
75
|
+
addonVersion?: string;
|
|
76
|
+
/**
|
|
77
|
+
* @example
|
|
78
|
+
* apiVersion: xxxxx
|
|
79
|
+
*/
|
|
80
|
+
configYaml?: string;
|
|
81
|
+
/**
|
|
82
|
+
* @example
|
|
83
|
+
* run
|
|
84
|
+
*/
|
|
85
|
+
enableStatus?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @example
|
|
88
|
+
* YXBpVmVyc2lvbjogeHh4eHgK
|
|
89
|
+
*/
|
|
90
|
+
encryptYaml?: boolean;
|
|
91
|
+
endpoints?: ListIntegrationPolicyServiceMonitorsResponseBodyServiceMonitorsEndpoints[];
|
|
92
|
+
/**
|
|
93
|
+
* @example
|
|
94
|
+
* 50
|
|
95
|
+
*/
|
|
96
|
+
matchedServiceCount?: number;
|
|
97
|
+
/**
|
|
98
|
+
* @example
|
|
99
|
+
* 62a526c5-f6ca-4cfb-b5a4-b76974cffe51
|
|
100
|
+
*/
|
|
101
|
+
name?: string;
|
|
102
|
+
/**
|
|
103
|
+
* @example
|
|
104
|
+
* arms-prom
|
|
105
|
+
*/
|
|
106
|
+
namespace?: string;
|
|
107
|
+
static names(): { [key: string]: string } {
|
|
108
|
+
return {
|
|
109
|
+
addonName: 'addonName',
|
|
110
|
+
addonReleaseName: 'addonReleaseName',
|
|
111
|
+
addonVersion: 'addonVersion',
|
|
112
|
+
configYaml: 'configYaml',
|
|
113
|
+
enableStatus: 'enableStatus',
|
|
114
|
+
encryptYaml: 'encryptYaml',
|
|
115
|
+
endpoints: 'endpoints',
|
|
116
|
+
matchedServiceCount: 'matchedServiceCount',
|
|
117
|
+
name: 'name',
|
|
118
|
+
namespace: 'namespace',
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
static types(): { [key: string]: any } {
|
|
123
|
+
return {
|
|
124
|
+
addonName: 'string',
|
|
125
|
+
addonReleaseName: 'string',
|
|
126
|
+
addonVersion: 'string',
|
|
127
|
+
configYaml: 'string',
|
|
128
|
+
enableStatus: 'string',
|
|
129
|
+
encryptYaml: 'boolean',
|
|
130
|
+
endpoints: { 'type': 'array', 'itemType': ListIntegrationPolicyServiceMonitorsResponseBodyServiceMonitorsEndpoints },
|
|
131
|
+
matchedServiceCount: 'number',
|
|
132
|
+
name: 'string',
|
|
133
|
+
namespace: 'string',
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
validate() {
|
|
138
|
+
if(Array.isArray(this.endpoints)) {
|
|
139
|
+
$dara.Model.validateArray(this.endpoints);
|
|
140
|
+
}
|
|
141
|
+
super.validate();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
constructor(map?: { [key: string]: any }) {
|
|
145
|
+
super(map);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export class ListIntegrationPolicyServiceMonitorsResponseBody extends $dara.Model {
|
|
150
|
+
/**
|
|
151
|
+
* @example
|
|
152
|
+
* ea119prod-ea119blinkcptssd1
|
|
153
|
+
*/
|
|
154
|
+
clusterId?: string;
|
|
155
|
+
/**
|
|
156
|
+
* @example
|
|
157
|
+
* policy-ac38a7cb02d14ff48bc9f97d0a75063e
|
|
158
|
+
*/
|
|
159
|
+
policyId?: string;
|
|
160
|
+
/**
|
|
161
|
+
* @example
|
|
162
|
+
* CD8BA7D6-995D-578D-9941-78B0FECD14B5
|
|
163
|
+
*/
|
|
164
|
+
requestId?: string;
|
|
165
|
+
serviceMonitors?: ListIntegrationPolicyServiceMonitorsResponseBodyServiceMonitors[];
|
|
166
|
+
static names(): { [key: string]: string } {
|
|
167
|
+
return {
|
|
168
|
+
clusterId: 'clusterId',
|
|
169
|
+
policyId: 'policyId',
|
|
170
|
+
requestId: 'requestId',
|
|
171
|
+
serviceMonitors: 'serviceMonitors',
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
static types(): { [key: string]: any } {
|
|
176
|
+
return {
|
|
177
|
+
clusterId: 'string',
|
|
178
|
+
policyId: 'string',
|
|
179
|
+
requestId: 'string',
|
|
180
|
+
serviceMonitors: { 'type': 'array', 'itemType': ListIntegrationPolicyServiceMonitorsResponseBodyServiceMonitors },
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
validate() {
|
|
185
|
+
if(Array.isArray(this.serviceMonitors)) {
|
|
186
|
+
$dara.Model.validateArray(this.serviceMonitors);
|
|
187
|
+
}
|
|
188
|
+
super.validate();
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
constructor(map?: { [key: string]: any }) {
|
|
192
|
+
super(map);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class NotifyChannel extends $dara.Model {
|
|
6
|
+
channelType?: string;
|
|
7
|
+
enabledSubChannels?: string[];
|
|
8
|
+
receivers?: string[];
|
|
9
|
+
static names(): { [key: string]: string } {
|
|
10
|
+
return {
|
|
11
|
+
channelType: 'channelType',
|
|
12
|
+
enabledSubChannels: 'enabledSubChannels',
|
|
13
|
+
receivers: 'receivers',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
channelType: 'string',
|
|
20
|
+
enabledSubChannels: { 'type': 'array', 'itemType': 'string' },
|
|
21
|
+
receivers: { 'type': 'array', 'itemType': 'string' },
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
validate() {
|
|
26
|
+
if(Array.isArray(this.enabledSubChannels)) {
|
|
27
|
+
$dara.Model.validateArray(this.enabledSubChannels);
|
|
28
|
+
}
|
|
29
|
+
if(Array.isArray(this.receivers)) {
|
|
30
|
+
$dara.Model.validateArray(this.receivers);
|
|
31
|
+
}
|
|
32
|
+
super.validate();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
constructor(map?: { [key: string]: any }) {
|
|
36
|
+
super(map);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated, don't edit it
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
import { FilterSetting } from "./FilterSetting";
|
|
4
|
+
import { WorkspaceFilterSetting } from "./WorkspaceFilterSetting";
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
export class NotifyStrategyForModifyCustomTemplateEntries extends $dara.Model {
|
|
@@ -72,6 +73,67 @@ export class NotifyStrategyForModifyGroupingSetting extends $dara.Model {
|
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
|
|
76
|
+
export class NotifyStrategyForModifyPushingSetting extends $dara.Model {
|
|
77
|
+
alertActionIds?: string[];
|
|
78
|
+
restoreActionIds?: string[];
|
|
79
|
+
templateUuid?: string;
|
|
80
|
+
static names(): { [key: string]: string } {
|
|
81
|
+
return {
|
|
82
|
+
alertActionIds: 'alertActionIds',
|
|
83
|
+
restoreActionIds: 'restoreActionIds',
|
|
84
|
+
templateUuid: 'templateUuid',
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
static types(): { [key: string]: any } {
|
|
89
|
+
return {
|
|
90
|
+
alertActionIds: { 'type': 'array', 'itemType': 'string' },
|
|
91
|
+
restoreActionIds: { 'type': 'array', 'itemType': 'string' },
|
|
92
|
+
templateUuid: 'string',
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
validate() {
|
|
97
|
+
if(Array.isArray(this.alertActionIds)) {
|
|
98
|
+
$dara.Model.validateArray(this.alertActionIds);
|
|
99
|
+
}
|
|
100
|
+
if(Array.isArray(this.restoreActionIds)) {
|
|
101
|
+
$dara.Model.validateArray(this.restoreActionIds);
|
|
102
|
+
}
|
|
103
|
+
super.validate();
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
constructor(map?: { [key: string]: any }) {
|
|
107
|
+
super(map);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export class NotifyStrategyForModifyRepeatNotifySetting extends $dara.Model {
|
|
112
|
+
endIncidentState?: string;
|
|
113
|
+
repeatInterval?: number;
|
|
114
|
+
static names(): { [key: string]: string } {
|
|
115
|
+
return {
|
|
116
|
+
endIncidentState: 'endIncidentState',
|
|
117
|
+
repeatInterval: 'repeatInterval',
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
static types(): { [key: string]: any } {
|
|
122
|
+
return {
|
|
123
|
+
endIncidentState: 'string',
|
|
124
|
+
repeatInterval: 'number',
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
validate() {
|
|
129
|
+
super.validate();
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
constructor(map?: { [key: string]: any }) {
|
|
133
|
+
super(map);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
75
137
|
export class NotifyStrategyForModifyRoutesChannels extends $dara.Model {
|
|
76
138
|
/**
|
|
77
139
|
* @remarks
|
|
@@ -195,8 +257,12 @@ export class NotifyStrategyForModifyRoutes extends $dara.Model {
|
|
|
195
257
|
}
|
|
196
258
|
|
|
197
259
|
export class NotifyStrategyForModify extends $dara.Model {
|
|
260
|
+
autoRecoverSeconds?: number;
|
|
198
261
|
customTemplateEntries?: NotifyStrategyForModifyCustomTemplateEntries[];
|
|
199
262
|
description?: string;
|
|
263
|
+
enableIncidentManagement?: boolean;
|
|
264
|
+
escalationId?: string[];
|
|
265
|
+
filterSetting?: FilterSetting;
|
|
200
266
|
/**
|
|
201
267
|
* @remarks
|
|
202
268
|
* This parameter is required.
|
|
@@ -208,30 +274,47 @@ export class NotifyStrategyForModify extends $dara.Model {
|
|
|
208
274
|
* This parameter is required.
|
|
209
275
|
*/
|
|
210
276
|
notifyStrategyName?: string;
|
|
277
|
+
pushingSetting?: NotifyStrategyForModifyPushingSetting;
|
|
278
|
+
repeatNotifySetting?: NotifyStrategyForModifyRepeatNotifySetting;
|
|
211
279
|
/**
|
|
212
280
|
* @remarks
|
|
213
281
|
* This parameter is required.
|
|
214
282
|
*/
|
|
215
283
|
routes?: NotifyStrategyForModifyRoutes[];
|
|
284
|
+
workspaceFilterSetting?: WorkspaceFilterSetting;
|
|
216
285
|
static names(): { [key: string]: string } {
|
|
217
286
|
return {
|
|
287
|
+
autoRecoverSeconds: 'autoRecoverSeconds',
|
|
218
288
|
customTemplateEntries: 'customTemplateEntries',
|
|
219
289
|
description: 'description',
|
|
290
|
+
enableIncidentManagement: 'enableIncidentManagement',
|
|
291
|
+
escalationId: 'escalationId',
|
|
292
|
+
filterSetting: 'filterSetting',
|
|
220
293
|
groupingSetting: 'groupingSetting',
|
|
221
294
|
ignoreRestoredNotification: 'ignoreRestoredNotification',
|
|
222
295
|
notifyStrategyName: 'notifyStrategyName',
|
|
296
|
+
pushingSetting: 'pushingSetting',
|
|
297
|
+
repeatNotifySetting: 'repeatNotifySetting',
|
|
223
298
|
routes: 'routes',
|
|
299
|
+
workspaceFilterSetting: 'workspaceFilterSetting',
|
|
224
300
|
};
|
|
225
301
|
}
|
|
226
302
|
|
|
227
303
|
static types(): { [key: string]: any } {
|
|
228
304
|
return {
|
|
305
|
+
autoRecoverSeconds: 'number',
|
|
229
306
|
customTemplateEntries: { 'type': 'array', 'itemType': NotifyStrategyForModifyCustomTemplateEntries },
|
|
230
307
|
description: 'string',
|
|
308
|
+
enableIncidentManagement: 'boolean',
|
|
309
|
+
escalationId: { 'type': 'array', 'itemType': 'string' },
|
|
310
|
+
filterSetting: FilterSetting,
|
|
231
311
|
groupingSetting: NotifyStrategyForModifyGroupingSetting,
|
|
232
312
|
ignoreRestoredNotification: 'boolean',
|
|
233
313
|
notifyStrategyName: 'string',
|
|
314
|
+
pushingSetting: NotifyStrategyForModifyPushingSetting,
|
|
315
|
+
repeatNotifySetting: NotifyStrategyForModifyRepeatNotifySetting,
|
|
234
316
|
routes: { 'type': 'array', 'itemType': NotifyStrategyForModifyRoutes },
|
|
317
|
+
workspaceFilterSetting: WorkspaceFilterSetting,
|
|
235
318
|
};
|
|
236
319
|
}
|
|
237
320
|
|
|
@@ -239,12 +322,27 @@ export class NotifyStrategyForModify extends $dara.Model {
|
|
|
239
322
|
if(Array.isArray(this.customTemplateEntries)) {
|
|
240
323
|
$dara.Model.validateArray(this.customTemplateEntries);
|
|
241
324
|
}
|
|
325
|
+
if(Array.isArray(this.escalationId)) {
|
|
326
|
+
$dara.Model.validateArray(this.escalationId);
|
|
327
|
+
}
|
|
328
|
+
if(this.filterSetting && typeof (this.filterSetting as any).validate === 'function') {
|
|
329
|
+
(this.filterSetting as any).validate();
|
|
330
|
+
}
|
|
242
331
|
if(this.groupingSetting && typeof (this.groupingSetting as any).validate === 'function') {
|
|
243
332
|
(this.groupingSetting as any).validate();
|
|
244
333
|
}
|
|
334
|
+
if(this.pushingSetting && typeof (this.pushingSetting as any).validate === 'function') {
|
|
335
|
+
(this.pushingSetting as any).validate();
|
|
336
|
+
}
|
|
337
|
+
if(this.repeatNotifySetting && typeof (this.repeatNotifySetting as any).validate === 'function') {
|
|
338
|
+
(this.repeatNotifySetting as any).validate();
|
|
339
|
+
}
|
|
245
340
|
if(Array.isArray(this.routes)) {
|
|
246
341
|
$dara.Model.validateArray(this.routes);
|
|
247
342
|
}
|
|
343
|
+
if(this.workspaceFilterSetting && typeof (this.workspaceFilterSetting as any).validate === 'function') {
|
|
344
|
+
(this.workspaceFilterSetting as any).validate();
|
|
345
|
+
}
|
|
248
346
|
super.validate();
|
|
249
347
|
}
|
|
250
348
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated, don't edit it
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
import { FilterSetting } from "./FilterSetting";
|
|
4
|
+
import { WorkspaceFilterSetting } from "./WorkspaceFilterSetting";
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
export class NotifyStrategyForViewCustomTemplateEntries extends $dara.Model {
|
|
@@ -72,6 +73,67 @@ export class NotifyStrategyForViewGroupingSetting extends $dara.Model {
|
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
|
|
76
|
+
export class NotifyStrategyForViewPushingSetting extends $dara.Model {
|
|
77
|
+
alertActionIds?: string[];
|
|
78
|
+
restoreActionIds?: string[];
|
|
79
|
+
templateUuid?: string;
|
|
80
|
+
static names(): { [key: string]: string } {
|
|
81
|
+
return {
|
|
82
|
+
alertActionIds: 'alertActionIds',
|
|
83
|
+
restoreActionIds: 'restoreActionIds',
|
|
84
|
+
templateUuid: 'templateUuid',
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
static types(): { [key: string]: any } {
|
|
89
|
+
return {
|
|
90
|
+
alertActionIds: { 'type': 'array', 'itemType': 'string' },
|
|
91
|
+
restoreActionIds: { 'type': 'array', 'itemType': 'string' },
|
|
92
|
+
templateUuid: 'string',
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
validate() {
|
|
97
|
+
if(Array.isArray(this.alertActionIds)) {
|
|
98
|
+
$dara.Model.validateArray(this.alertActionIds);
|
|
99
|
+
}
|
|
100
|
+
if(Array.isArray(this.restoreActionIds)) {
|
|
101
|
+
$dara.Model.validateArray(this.restoreActionIds);
|
|
102
|
+
}
|
|
103
|
+
super.validate();
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
constructor(map?: { [key: string]: any }) {
|
|
107
|
+
super(map);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export class NotifyStrategyForViewRepeatNotifySetting extends $dara.Model {
|
|
112
|
+
endIncidentState?: string;
|
|
113
|
+
repeatInterval?: number;
|
|
114
|
+
static names(): { [key: string]: string } {
|
|
115
|
+
return {
|
|
116
|
+
endIncidentState: 'endIncidentState',
|
|
117
|
+
repeatInterval: 'repeatInterval',
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
static types(): { [key: string]: any } {
|
|
122
|
+
return {
|
|
123
|
+
endIncidentState: 'string',
|
|
124
|
+
repeatInterval: 'number',
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
validate() {
|
|
129
|
+
super.validate();
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
constructor(map?: { [key: string]: any }) {
|
|
133
|
+
super(map);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
75
137
|
export class NotifyStrategyForViewRoutesChannels extends $dara.Model {
|
|
76
138
|
/**
|
|
77
139
|
* @remarks
|
|
@@ -195,61 +257,85 @@ export class NotifyStrategyForViewRoutes extends $dara.Model {
|
|
|
195
257
|
}
|
|
196
258
|
|
|
197
259
|
export class NotifyStrategyForView extends $dara.Model {
|
|
260
|
+
autoRecoverSeconds?: number;
|
|
198
261
|
createTime?: string;
|
|
199
262
|
customTemplateEntries?: NotifyStrategyForViewCustomTemplateEntries[];
|
|
200
263
|
description?: string;
|
|
201
264
|
enable?: boolean;
|
|
265
|
+
filterSetting?: FilterSetting;
|
|
202
266
|
/**
|
|
203
267
|
* @remarks
|
|
204
268
|
* This parameter is required.
|
|
205
269
|
*/
|
|
206
270
|
groupingSetting?: NotifyStrategyForViewGroupingSetting;
|
|
207
271
|
ignoreRestoredNotification?: boolean;
|
|
272
|
+
incidentEscalationPolicies?: any[];
|
|
208
273
|
notifyStrategyId?: string;
|
|
209
274
|
/**
|
|
210
275
|
* @remarks
|
|
211
276
|
* This parameter is required.
|
|
212
277
|
*/
|
|
213
278
|
notifyStrategyName?: string;
|
|
279
|
+
pushingSetting?: NotifyStrategyForViewPushingSetting;
|
|
280
|
+
receiverNames?: string[];
|
|
281
|
+
repeatNotifySetting?: NotifyStrategyForViewRepeatNotifySetting;
|
|
214
282
|
/**
|
|
215
283
|
* @remarks
|
|
216
284
|
* This parameter is required.
|
|
217
285
|
*/
|
|
218
286
|
routes?: NotifyStrategyForViewRoutes[];
|
|
287
|
+
syncFromType?: string;
|
|
219
288
|
updateTime?: string;
|
|
220
289
|
userId?: string;
|
|
221
290
|
workspace?: string;
|
|
291
|
+
workspaceFilterSetting?: WorkspaceFilterSetting;
|
|
222
292
|
static names(): { [key: string]: string } {
|
|
223
293
|
return {
|
|
294
|
+
autoRecoverSeconds: 'autoRecoverSeconds',
|
|
224
295
|
createTime: 'createTime',
|
|
225
296
|
customTemplateEntries: 'customTemplateEntries',
|
|
226
297
|
description: 'description',
|
|
227
298
|
enable: 'enable',
|
|
299
|
+
filterSetting: 'filterSetting',
|
|
228
300
|
groupingSetting: 'groupingSetting',
|
|
229
301
|
ignoreRestoredNotification: 'ignoreRestoredNotification',
|
|
302
|
+
incidentEscalationPolicies: 'incidentEscalationPolicies',
|
|
230
303
|
notifyStrategyId: 'notifyStrategyId',
|
|
231
304
|
notifyStrategyName: 'notifyStrategyName',
|
|
305
|
+
pushingSetting: 'pushingSetting',
|
|
306
|
+
receiverNames: 'receiverNames',
|
|
307
|
+
repeatNotifySetting: 'repeatNotifySetting',
|
|
232
308
|
routes: 'routes',
|
|
309
|
+
syncFromType: 'syncFromType',
|
|
233
310
|
updateTime: 'updateTime',
|
|
234
311
|
userId: 'userId',
|
|
235
312
|
workspace: 'workspace',
|
|
313
|
+
workspaceFilterSetting: 'workspaceFilterSetting',
|
|
236
314
|
};
|
|
237
315
|
}
|
|
238
316
|
|
|
239
317
|
static types(): { [key: string]: any } {
|
|
240
318
|
return {
|
|
319
|
+
autoRecoverSeconds: 'number',
|
|
241
320
|
createTime: 'string',
|
|
242
321
|
customTemplateEntries: { 'type': 'array', 'itemType': NotifyStrategyForViewCustomTemplateEntries },
|
|
243
322
|
description: 'string',
|
|
244
323
|
enable: 'boolean',
|
|
324
|
+
filterSetting: FilterSetting,
|
|
245
325
|
groupingSetting: NotifyStrategyForViewGroupingSetting,
|
|
246
326
|
ignoreRestoredNotification: 'boolean',
|
|
327
|
+
incidentEscalationPolicies: { 'type': 'array', 'itemType': 'any' },
|
|
247
328
|
notifyStrategyId: 'string',
|
|
248
329
|
notifyStrategyName: 'string',
|
|
330
|
+
pushingSetting: NotifyStrategyForViewPushingSetting,
|
|
331
|
+
receiverNames: { 'type': 'array', 'itemType': 'string' },
|
|
332
|
+
repeatNotifySetting: NotifyStrategyForViewRepeatNotifySetting,
|
|
249
333
|
routes: { 'type': 'array', 'itemType': NotifyStrategyForViewRoutes },
|
|
334
|
+
syncFromType: 'string',
|
|
250
335
|
updateTime: 'string',
|
|
251
336
|
userId: 'string',
|
|
252
337
|
workspace: 'string',
|
|
338
|
+
workspaceFilterSetting: WorkspaceFilterSetting,
|
|
253
339
|
};
|
|
254
340
|
}
|
|
255
341
|
|
|
@@ -257,12 +343,30 @@ export class NotifyStrategyForView extends $dara.Model {
|
|
|
257
343
|
if(Array.isArray(this.customTemplateEntries)) {
|
|
258
344
|
$dara.Model.validateArray(this.customTemplateEntries);
|
|
259
345
|
}
|
|
346
|
+
if(this.filterSetting && typeof (this.filterSetting as any).validate === 'function') {
|
|
347
|
+
(this.filterSetting as any).validate();
|
|
348
|
+
}
|
|
260
349
|
if(this.groupingSetting && typeof (this.groupingSetting as any).validate === 'function') {
|
|
261
350
|
(this.groupingSetting as any).validate();
|
|
262
351
|
}
|
|
352
|
+
if(Array.isArray(this.incidentEscalationPolicies)) {
|
|
353
|
+
$dara.Model.validateArray(this.incidentEscalationPolicies);
|
|
354
|
+
}
|
|
355
|
+
if(this.pushingSetting && typeof (this.pushingSetting as any).validate === 'function') {
|
|
356
|
+
(this.pushingSetting as any).validate();
|
|
357
|
+
}
|
|
358
|
+
if(Array.isArray(this.receiverNames)) {
|
|
359
|
+
$dara.Model.validateArray(this.receiverNames);
|
|
360
|
+
}
|
|
361
|
+
if(this.repeatNotifySetting && typeof (this.repeatNotifySetting as any).validate === 'function') {
|
|
362
|
+
(this.repeatNotifySetting as any).validate();
|
|
363
|
+
}
|
|
263
364
|
if(Array.isArray(this.routes)) {
|
|
264
365
|
$dara.Model.validateArray(this.routes);
|
|
265
366
|
}
|
|
367
|
+
if(this.workspaceFilterSetting && typeof (this.workspaceFilterSetting as any).validate === 'function') {
|
|
368
|
+
(this.workspaceFilterSetting as any).validate();
|
|
369
|
+
}
|
|
266
370
|
super.validate();
|
|
267
371
|
}
|
|
268
372
|
|