@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,48 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetCmsServiceResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* false
|
|
9
|
+
*/
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* PROM_NOT_OPEN
|
|
14
|
+
*/
|
|
15
|
+
errorCode?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* Id of the request
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* 8FDE2569-626B-5176-9844-28877A*****
|
|
22
|
+
*/
|
|
23
|
+
requestId?: string;
|
|
24
|
+
static names(): { [key: string]: string } {
|
|
25
|
+
return {
|
|
26
|
+
enabled: 'enabled',
|
|
27
|
+
errorCode: 'errorCode',
|
|
28
|
+
requestId: 'requestId',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static types(): { [key: string]: any } {
|
|
33
|
+
return {
|
|
34
|
+
enabled: 'boolean',
|
|
35
|
+
errorCode: 'string',
|
|
36
|
+
requestId: 'string',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetPrometheusUserSettingRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* zh
|
|
9
|
+
*/
|
|
10
|
+
aliyunLang?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
aliyunLang: 'aliyunLang',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
aliyunLang: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GetPrometheusUserSettingResponseBody } from "./GetPrometheusUserSettingResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetPrometheusUserSettingResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GetPrometheusUserSettingResponseBody;
|
|
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: GetPrometheusUserSettingResponseBody,
|
|
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,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetPrometheusUserSettingResponseBody extends $dara.Model {
|
|
6
|
+
prometheusUserSetting?: { [key: string]: string };
|
|
7
|
+
/**
|
|
8
|
+
* @remarks
|
|
9
|
+
* Id of the request
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* 058550FA-DDBE-519E-9C6D-93521B9A5E90
|
|
13
|
+
*/
|
|
14
|
+
requestId?: string;
|
|
15
|
+
static names(): { [key: string]: string } {
|
|
16
|
+
return {
|
|
17
|
+
prometheusUserSetting: 'prometheusUserSetting',
|
|
18
|
+
requestId: 'requestId',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static types(): { [key: string]: any } {
|
|
23
|
+
return {
|
|
24
|
+
prometheusUserSetting: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
25
|
+
requestId: 'string',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
validate() {
|
|
30
|
+
if(this.prometheusUserSetting) {
|
|
31
|
+
$dara.Model.validateMap(this.prometheusUserSetting);
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { IncidentEscalationStageForView } from "./IncidentEscalationStageForView";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class IncidentEscalationPolicyForModify extends $dara.Model {
|
|
7
|
+
description?: string;
|
|
8
|
+
enable?: boolean;
|
|
9
|
+
escalationStageList?: IncidentEscalationStageForView[];
|
|
10
|
+
/**
|
|
11
|
+
* @remarks
|
|
12
|
+
* This parameter is required.
|
|
13
|
+
*/
|
|
14
|
+
name?: string;
|
|
15
|
+
static names(): { [key: string]: string } {
|
|
16
|
+
return {
|
|
17
|
+
description: 'description',
|
|
18
|
+
enable: 'enable',
|
|
19
|
+
escalationStageList: 'escalationStageList',
|
|
20
|
+
name: 'name',
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
static types(): { [key: string]: any } {
|
|
25
|
+
return {
|
|
26
|
+
description: 'string',
|
|
27
|
+
enable: 'boolean',
|
|
28
|
+
escalationStageList: { 'type': 'array', 'itemType': IncidentEscalationStageForView },
|
|
29
|
+
name: 'string',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
validate() {
|
|
34
|
+
if(Array.isArray(this.escalationStageList)) {
|
|
35
|
+
$dara.Model.validateArray(this.escalationStageList);
|
|
36
|
+
}
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { IncidentEscalationStageForView } from "./IncidentEscalationStageForView";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class IncidentEscalationPolicyForView extends $dara.Model {
|
|
7
|
+
createTime?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
enable?: boolean;
|
|
10
|
+
escalationStageList?: IncidentEscalationStageForView[];
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* This parameter is required.
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
ownerType?: string;
|
|
17
|
+
regionId?: string;
|
|
18
|
+
source?: string;
|
|
19
|
+
syncFromType?: string;
|
|
20
|
+
updateTime?: string;
|
|
21
|
+
userId?: string;
|
|
22
|
+
uuid?: string;
|
|
23
|
+
workspace?: string;
|
|
24
|
+
static names(): { [key: string]: string } {
|
|
25
|
+
return {
|
|
26
|
+
createTime: 'createTime',
|
|
27
|
+
description: 'description',
|
|
28
|
+
enable: 'enable',
|
|
29
|
+
escalationStageList: 'escalationStageList',
|
|
30
|
+
name: 'name',
|
|
31
|
+
ownerType: 'ownerType',
|
|
32
|
+
regionId: 'regionId',
|
|
33
|
+
source: 'source',
|
|
34
|
+
syncFromType: 'syncFromType',
|
|
35
|
+
updateTime: 'updateTime',
|
|
36
|
+
userId: 'userId',
|
|
37
|
+
uuid: 'uuid',
|
|
38
|
+
workspace: 'workspace',
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
static types(): { [key: string]: any } {
|
|
43
|
+
return {
|
|
44
|
+
createTime: 'string',
|
|
45
|
+
description: 'string',
|
|
46
|
+
enable: 'boolean',
|
|
47
|
+
escalationStageList: { 'type': 'array', 'itemType': IncidentEscalationStageForView },
|
|
48
|
+
name: 'string',
|
|
49
|
+
ownerType: 'string',
|
|
50
|
+
regionId: 'string',
|
|
51
|
+
source: 'string',
|
|
52
|
+
syncFromType: 'string',
|
|
53
|
+
updateTime: 'string',
|
|
54
|
+
userId: 'string',
|
|
55
|
+
uuid: 'string',
|
|
56
|
+
workspace: 'string',
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
validate() {
|
|
61
|
+
if(Array.isArray(this.escalationStageList)) {
|
|
62
|
+
$dara.Model.validateArray(this.escalationStageList);
|
|
63
|
+
}
|
|
64
|
+
super.validate();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
constructor(map?: { [key: string]: any }) {
|
|
68
|
+
super(map);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { EffectTimeRange } from "./EffectTimeRange";
|
|
4
|
+
import { NotifyChannel } from "./NotifyChannel";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class IncidentEscalationStageForView extends $dara.Model {
|
|
8
|
+
cycleNotifyCount?: number;
|
|
9
|
+
cycleNotifyInterval?: number;
|
|
10
|
+
effectTimeRange?: EffectTimeRange;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* This parameter is required.
|
|
14
|
+
*/
|
|
15
|
+
index?: number;
|
|
16
|
+
notifyChannels?: NotifyChannel[];
|
|
17
|
+
targetIncidentState?: string;
|
|
18
|
+
triggerDelay?: number;
|
|
19
|
+
static names(): { [key: string]: string } {
|
|
20
|
+
return {
|
|
21
|
+
cycleNotifyCount: 'cycleNotifyCount',
|
|
22
|
+
cycleNotifyInterval: 'cycleNotifyInterval',
|
|
23
|
+
effectTimeRange: 'effectTimeRange',
|
|
24
|
+
index: 'index',
|
|
25
|
+
notifyChannels: 'notifyChannels',
|
|
26
|
+
targetIncidentState: 'targetIncidentState',
|
|
27
|
+
triggerDelay: 'triggerDelay',
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static types(): { [key: string]: any } {
|
|
32
|
+
return {
|
|
33
|
+
cycleNotifyCount: 'number',
|
|
34
|
+
cycleNotifyInterval: 'number',
|
|
35
|
+
effectTimeRange: EffectTimeRange,
|
|
36
|
+
index: 'number',
|
|
37
|
+
notifyChannels: { 'type': 'array', 'itemType': NotifyChannel },
|
|
38
|
+
targetIncidentState: 'string',
|
|
39
|
+
triggerDelay: 'number',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
validate() {
|
|
44
|
+
if(this.effectTimeRange && typeof (this.effectTimeRange as any).validate === 'function') {
|
|
45
|
+
(this.effectTimeRange as any).validate();
|
|
46
|
+
}
|
|
47
|
+
if(Array.isArray(this.notifyChannels)) {
|
|
48
|
+
$dara.Model.validateArray(this.notifyChannels);
|
|
49
|
+
}
|
|
50
|
+
super.validate();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
constructor(map?: { [key: string]: any }) {
|
|
54
|
+
super(map);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CmsEventForView } from "./CmsEventForView";
|
|
4
|
+
import { EventResourceForIncidentView } from "./EventResourceForIncidentView";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class IncidentEventForView extends $dara.Model {
|
|
8
|
+
autoRecoverTime?: number;
|
|
9
|
+
content?: CmsEventForView;
|
|
10
|
+
count?: number;
|
|
11
|
+
dimension?: { [key: string]: any };
|
|
12
|
+
eventResource?: EventResourceForIncidentView;
|
|
13
|
+
groupBy?: { [key: string]: any };
|
|
14
|
+
incidentEventUuid?: string;
|
|
15
|
+
incidentUuid?: string;
|
|
16
|
+
labels?: { [key: string]: any };
|
|
17
|
+
lastTime?: number;
|
|
18
|
+
recoverTime?: number;
|
|
19
|
+
searchIndex?: string[];
|
|
20
|
+
severity?: string;
|
|
21
|
+
severityCountMap?: { [key: string]: any };
|
|
22
|
+
state?: number;
|
|
23
|
+
textIndex?: string;
|
|
24
|
+
time?: number;
|
|
25
|
+
title?: string;
|
|
26
|
+
userId?: string;
|
|
27
|
+
workspace?: string;
|
|
28
|
+
static names(): { [key: string]: string } {
|
|
29
|
+
return {
|
|
30
|
+
autoRecoverTime: 'autoRecoverTime',
|
|
31
|
+
content: 'content',
|
|
32
|
+
count: 'count',
|
|
33
|
+
dimension: 'dimension',
|
|
34
|
+
eventResource: 'eventResource',
|
|
35
|
+
groupBy: 'groupBy',
|
|
36
|
+
incidentEventUuid: 'incidentEventUuid',
|
|
37
|
+
incidentUuid: 'incidentUuid',
|
|
38
|
+
labels: 'labels',
|
|
39
|
+
lastTime: 'lastTime',
|
|
40
|
+
recoverTime: 'recoverTime',
|
|
41
|
+
searchIndex: 'searchIndex',
|
|
42
|
+
severity: 'severity',
|
|
43
|
+
severityCountMap: 'severityCountMap',
|
|
44
|
+
state: 'state',
|
|
45
|
+
textIndex: 'textIndex',
|
|
46
|
+
time: 'time',
|
|
47
|
+
title: 'title',
|
|
48
|
+
userId: 'userId',
|
|
49
|
+
workspace: 'workspace',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static types(): { [key: string]: any } {
|
|
54
|
+
return {
|
|
55
|
+
autoRecoverTime: 'number',
|
|
56
|
+
content: CmsEventForView,
|
|
57
|
+
count: 'number',
|
|
58
|
+
dimension: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
59
|
+
eventResource: EventResourceForIncidentView,
|
|
60
|
+
groupBy: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
61
|
+
incidentEventUuid: 'string',
|
|
62
|
+
incidentUuid: 'string',
|
|
63
|
+
labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
64
|
+
lastTime: 'number',
|
|
65
|
+
recoverTime: 'number',
|
|
66
|
+
searchIndex: { 'type': 'array', 'itemType': 'string' },
|
|
67
|
+
severity: 'string',
|
|
68
|
+
severityCountMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
69
|
+
state: 'number',
|
|
70
|
+
textIndex: 'string',
|
|
71
|
+
time: 'number',
|
|
72
|
+
title: 'string',
|
|
73
|
+
userId: 'string',
|
|
74
|
+
workspace: 'string',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
validate() {
|
|
79
|
+
if(this.content && typeof (this.content as any).validate === 'function') {
|
|
80
|
+
(this.content as any).validate();
|
|
81
|
+
}
|
|
82
|
+
if(this.dimension) {
|
|
83
|
+
$dara.Model.validateMap(this.dimension);
|
|
84
|
+
}
|
|
85
|
+
if(this.eventResource && typeof (this.eventResource as any).validate === 'function') {
|
|
86
|
+
(this.eventResource as any).validate();
|
|
87
|
+
}
|
|
88
|
+
if(this.groupBy) {
|
|
89
|
+
$dara.Model.validateMap(this.groupBy);
|
|
90
|
+
}
|
|
91
|
+
if(this.labels) {
|
|
92
|
+
$dara.Model.validateMap(this.labels);
|
|
93
|
+
}
|
|
94
|
+
if(Array.isArray(this.searchIndex)) {
|
|
95
|
+
$dara.Model.validateArray(this.searchIndex);
|
|
96
|
+
}
|
|
97
|
+
if(this.severityCountMap) {
|
|
98
|
+
$dara.Model.validateMap(this.severityCountMap);
|
|
99
|
+
}
|
|
100
|
+
super.validate();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
constructor(map?: { [key: string]: any }) {
|
|
104
|
+
super(map);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { IncidentEscalationPolicyForView } from "./IncidentEscalationPolicyForView";
|
|
4
|
+
import { ContactForIncidentView } from "./ContactForIncidentView";
|
|
5
|
+
import { IncidentResponsePlanForView } from "./IncidentResponsePlanForView";
|
|
6
|
+
import { EventResourceForIncidentView } from "./EventResourceForIncidentView";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export class IncidentForView extends $dara.Model {
|
|
10
|
+
content?: string;
|
|
11
|
+
escalations?: IncidentEscalationPolicyForView[];
|
|
12
|
+
groupUuid?: string;
|
|
13
|
+
groupingKeys?: { [key: string]: string };
|
|
14
|
+
incidentId?: string;
|
|
15
|
+
notifyStrategyName?: string;
|
|
16
|
+
notifyStrategyUuid?: string;
|
|
17
|
+
operator?: ContactForIncidentView;
|
|
18
|
+
owners?: ContactForIncidentView[];
|
|
19
|
+
participants?: ContactForIncidentView[];
|
|
20
|
+
plan?: IncidentResponsePlanForView;
|
|
21
|
+
relatedResources?: EventResourceForIncidentView[];
|
|
22
|
+
rootCauseCategory?: string;
|
|
23
|
+
severity?: string;
|
|
24
|
+
solution?: string;
|
|
25
|
+
state?: string;
|
|
26
|
+
subscriptionName?: string;
|
|
27
|
+
subscriptionUuid?: string;
|
|
28
|
+
time?: number;
|
|
29
|
+
title?: string;
|
|
30
|
+
userId?: string;
|
|
31
|
+
workspace?: string;
|
|
32
|
+
static names(): { [key: string]: string } {
|
|
33
|
+
return {
|
|
34
|
+
content: 'content',
|
|
35
|
+
escalations: 'escalations',
|
|
36
|
+
groupUuid: 'groupUuid',
|
|
37
|
+
groupingKeys: 'groupingKeys',
|
|
38
|
+
incidentId: 'incidentId',
|
|
39
|
+
notifyStrategyName: 'notifyStrategyName',
|
|
40
|
+
notifyStrategyUuid: 'notifyStrategyUuid',
|
|
41
|
+
operator: 'operator',
|
|
42
|
+
owners: 'owners',
|
|
43
|
+
participants: 'participants',
|
|
44
|
+
plan: 'plan',
|
|
45
|
+
relatedResources: 'relatedResources',
|
|
46
|
+
rootCauseCategory: 'rootCauseCategory',
|
|
47
|
+
severity: 'severity',
|
|
48
|
+
solution: 'solution',
|
|
49
|
+
state: 'state',
|
|
50
|
+
subscriptionName: 'subscriptionName',
|
|
51
|
+
subscriptionUuid: 'subscriptionUuid',
|
|
52
|
+
time: 'time',
|
|
53
|
+
title: 'title',
|
|
54
|
+
userId: 'userId',
|
|
55
|
+
workspace: 'workspace',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static types(): { [key: string]: any } {
|
|
60
|
+
return {
|
|
61
|
+
content: 'string',
|
|
62
|
+
escalations: { 'type': 'array', 'itemType': IncidentEscalationPolicyForView },
|
|
63
|
+
groupUuid: 'string',
|
|
64
|
+
groupingKeys: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
65
|
+
incidentId: 'string',
|
|
66
|
+
notifyStrategyName: 'string',
|
|
67
|
+
notifyStrategyUuid: 'string',
|
|
68
|
+
operator: ContactForIncidentView,
|
|
69
|
+
owners: { 'type': 'array', 'itemType': ContactForIncidentView },
|
|
70
|
+
participants: { 'type': 'array', 'itemType': ContactForIncidentView },
|
|
71
|
+
plan: IncidentResponsePlanForView,
|
|
72
|
+
relatedResources: { 'type': 'array', 'itemType': EventResourceForIncidentView },
|
|
73
|
+
rootCauseCategory: 'string',
|
|
74
|
+
severity: 'string',
|
|
75
|
+
solution: 'string',
|
|
76
|
+
state: 'string',
|
|
77
|
+
subscriptionName: 'string',
|
|
78
|
+
subscriptionUuid: 'string',
|
|
79
|
+
time: 'number',
|
|
80
|
+
title: 'string',
|
|
81
|
+
userId: 'string',
|
|
82
|
+
workspace: 'string',
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
validate() {
|
|
87
|
+
if(Array.isArray(this.escalations)) {
|
|
88
|
+
$dara.Model.validateArray(this.escalations);
|
|
89
|
+
}
|
|
90
|
+
if(this.groupingKeys) {
|
|
91
|
+
$dara.Model.validateMap(this.groupingKeys);
|
|
92
|
+
}
|
|
93
|
+
if(this.operator && typeof (this.operator as any).validate === 'function') {
|
|
94
|
+
(this.operator as any).validate();
|
|
95
|
+
}
|
|
96
|
+
if(Array.isArray(this.owners)) {
|
|
97
|
+
$dara.Model.validateArray(this.owners);
|
|
98
|
+
}
|
|
99
|
+
if(Array.isArray(this.participants)) {
|
|
100
|
+
$dara.Model.validateArray(this.participants);
|
|
101
|
+
}
|
|
102
|
+
if(this.plan && typeof (this.plan as any).validate === 'function') {
|
|
103
|
+
(this.plan as any).validate();
|
|
104
|
+
}
|
|
105
|
+
if(Array.isArray(this.relatedResources)) {
|
|
106
|
+
$dara.Model.validateArray(this.relatedResources);
|
|
107
|
+
}
|
|
108
|
+
super.validate();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
constructor(map?: { [key: string]: any }) {
|
|
112
|
+
super(map);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { PushingSetting } from "./PushingSetting";
|
|
4
|
+
import { RepeatNotifySetting } from "./RepeatNotifySetting";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class IncidentResponsePlanForView extends $dara.Model {
|
|
8
|
+
autoRecoverSeconds?: number;
|
|
9
|
+
createTime?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
escalationId?: string[];
|
|
13
|
+
mode?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
pushingSetting?: PushingSetting;
|
|
16
|
+
repeatNotifySetting?: RepeatNotifySetting;
|
|
17
|
+
source?: string;
|
|
18
|
+
syncFromType?: string;
|
|
19
|
+
type?: string;
|
|
20
|
+
updateTime?: string;
|
|
21
|
+
uuid?: string;
|
|
22
|
+
workspace?: string;
|
|
23
|
+
static names(): { [key: string]: string } {
|
|
24
|
+
return {
|
|
25
|
+
autoRecoverSeconds: 'autoRecoverSeconds',
|
|
26
|
+
createTime: 'createTime',
|
|
27
|
+
description: 'description',
|
|
28
|
+
enabled: 'enabled',
|
|
29
|
+
escalationId: 'escalationId',
|
|
30
|
+
mode: 'mode',
|
|
31
|
+
name: 'name',
|
|
32
|
+
pushingSetting: 'pushingSetting',
|
|
33
|
+
repeatNotifySetting: 'repeatNotifySetting',
|
|
34
|
+
source: 'source',
|
|
35
|
+
syncFromType: 'syncFromType',
|
|
36
|
+
type: 'type',
|
|
37
|
+
updateTime: 'updateTime',
|
|
38
|
+
uuid: 'uuid',
|
|
39
|
+
workspace: 'workspace',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static types(): { [key: string]: any } {
|
|
44
|
+
return {
|
|
45
|
+
autoRecoverSeconds: 'number',
|
|
46
|
+
createTime: 'string',
|
|
47
|
+
description: 'string',
|
|
48
|
+
enabled: 'boolean',
|
|
49
|
+
escalationId: { 'type': 'array', 'itemType': 'string' },
|
|
50
|
+
mode: 'string',
|
|
51
|
+
name: 'string',
|
|
52
|
+
pushingSetting: PushingSetting,
|
|
53
|
+
repeatNotifySetting: RepeatNotifySetting,
|
|
54
|
+
source: 'string',
|
|
55
|
+
syncFromType: 'string',
|
|
56
|
+
type: 'string',
|
|
57
|
+
updateTime: 'string',
|
|
58
|
+
uuid: 'string',
|
|
59
|
+
workspace: 'string',
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
validate() {
|
|
64
|
+
if(Array.isArray(this.escalationId)) {
|
|
65
|
+
$dara.Model.validateArray(this.escalationId);
|
|
66
|
+
}
|
|
67
|
+
if(this.pushingSetting && typeof (this.pushingSetting as any).validate === 'function') {
|
|
68
|
+
(this.pushingSetting as any).validate();
|
|
69
|
+
}
|
|
70
|
+
if(this.repeatNotifySetting && typeof (this.repeatNotifySetting as any).validate === 'function') {
|
|
71
|
+
(this.repeatNotifySetting as any).validate();
|
|
72
|
+
}
|
|
73
|
+
super.validate();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
constructor(map?: { [key: string]: any }) {
|
|
77
|
+
super(map);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ContactForIncidentView } from "./ContactForIncidentView";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class IncidentTimelineForView extends $dara.Model {
|
|
7
|
+
changeType?: string;
|
|
8
|
+
content?: any;
|
|
9
|
+
incidentUuid?: string;
|
|
10
|
+
operator?: ContactForIncidentView;
|
|
11
|
+
time?: number;
|
|
12
|
+
timelineUuid?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
type?: string;
|
|
15
|
+
userId?: string;
|
|
16
|
+
workspace?: string;
|
|
17
|
+
static names(): { [key: string]: string } {
|
|
18
|
+
return {
|
|
19
|
+
changeType: 'changeType',
|
|
20
|
+
content: 'content',
|
|
21
|
+
incidentUuid: 'incidentUuid',
|
|
22
|
+
operator: 'operator',
|
|
23
|
+
time: 'time',
|
|
24
|
+
timelineUuid: 'timelineUuid',
|
|
25
|
+
title: 'title',
|
|
26
|
+
type: 'type',
|
|
27
|
+
userId: 'userId',
|
|
28
|
+
workspace: 'workspace',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static types(): { [key: string]: any } {
|
|
33
|
+
return {
|
|
34
|
+
changeType: 'string',
|
|
35
|
+
content: 'any',
|
|
36
|
+
incidentUuid: 'string',
|
|
37
|
+
operator: ContactForIncidentView,
|
|
38
|
+
time: 'number',
|
|
39
|
+
timelineUuid: 'string',
|
|
40
|
+
title: 'string',
|
|
41
|
+
type: 'string',
|
|
42
|
+
userId: 'string',
|
|
43
|
+
workspace: 'string',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
validate() {
|
|
48
|
+
if(this.operator && typeof (this.operator as any).validate === 'function') {
|
|
49
|
+
(this.operator as any).validate();
|
|
50
|
+
}
|
|
51
|
+
super.validate();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
constructor(map?: { [key: string]: any }) {
|
|
55
|
+
super(map);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|