@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.
Files changed (189) hide show
  1. package/dist/client.d.ts +155 -2
  2. package/dist/client.js +368 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AlertRuleSend.d.ts +1 -0
  5. package/dist/models/AlertRuleSend.js +5 -0
  6. package/dist/models/AlertRuleSend.js.map +1 -1
  7. package/dist/models/CmsEventForView.d.ts +42 -0
  8. package/dist/models/CmsEventForView.js +113 -0
  9. package/dist/models/CmsEventForView.js.map +1 -0
  10. package/dist/models/ContactForIncidentView.d.ts +15 -0
  11. package/dist/models/ContactForIncidentView.js +60 -0
  12. package/dist/models/ContactForIncidentView.js.map +1 -0
  13. package/dist/models/CreateCloudResourceResponse.d.ts +19 -0
  14. package/dist/models/CreateCloudResourceResponse.js +69 -0
  15. package/dist/models/CreateCloudResourceResponse.js.map +1 -0
  16. package/dist/models/CreateCloudResourceResponseBody.d.ts +18 -0
  17. package/dist/models/CreateCloudResourceResponseBody.js +58 -0
  18. package/dist/models/CreateCloudResourceResponseBody.js.map +1 -0
  19. package/dist/models/DeleteCloudResourceResponse.d.ts +19 -0
  20. package/dist/models/DeleteCloudResourceResponse.js +69 -0
  21. package/dist/models/DeleteCloudResourceResponse.js.map +1 -0
  22. package/dist/models/DeleteCloudResourceResponseBody.d.ts +18 -0
  23. package/dist/models/DeleteCloudResourceResponseBody.js +58 -0
  24. package/dist/models/DeleteCloudResourceResponseBody.js.map +1 -0
  25. package/dist/models/DescribeRegionsRequest.d.ts +18 -0
  26. package/dist/models/DescribeRegionsRequest.js +58 -0
  27. package/dist/models/DescribeRegionsRequest.js.map +1 -0
  28. package/dist/models/DescribeRegionsResponse.d.ts +19 -0
  29. package/dist/models/DescribeRegionsResponse.js +69 -0
  30. package/dist/models/DescribeRegionsResponse.js.map +1 -0
  31. package/dist/models/DescribeRegionsResponseBody.d.ts +44 -0
  32. package/dist/models/DescribeRegionsResponseBody.js +84 -0
  33. package/dist/models/DescribeRegionsResponseBody.js.map +1 -0
  34. package/dist/models/EffectTimeRange.d.ts +17 -0
  35. package/dist/models/EffectTimeRange.js +67 -0
  36. package/dist/models/EffectTimeRange.js.map +1 -0
  37. package/dist/models/EventResourceForEventView.d.ts +35 -0
  38. package/dist/models/EventResourceForEventView.js +94 -0
  39. package/dist/models/EventResourceForEventView.js.map +1 -0
  40. package/dist/models/EventResourceForIncidentView.d.ts +18 -0
  41. package/dist/models/EventResourceForIncidentView.js +66 -0
  42. package/dist/models/EventResourceForIncidentView.js.map +1 -0
  43. package/dist/models/GetCloudResourceDataRequest.d.ts +37 -0
  44. package/dist/models/GetCloudResourceDataRequest.js +62 -0
  45. package/dist/models/GetCloudResourceDataRequest.js.map +1 -0
  46. package/dist/models/GetCloudResourceDataResponse.d.ts +19 -0
  47. package/dist/models/GetCloudResourceDataResponse.js +69 -0
  48. package/dist/models/GetCloudResourceDataResponse.js.map +1 -0
  49. package/dist/models/GetCloudResourceDataResponseBody.d.ts +20 -0
  50. package/dist/models/GetCloudResourceDataResponseBody.js +68 -0
  51. package/dist/models/GetCloudResourceDataResponseBody.js.map +1 -0
  52. package/dist/models/GetCloudResourceResponse.d.ts +19 -0
  53. package/dist/models/GetCloudResourceResponse.js +69 -0
  54. package/dist/models/GetCloudResourceResponse.js.map +1 -0
  55. package/dist/models/GetCloudResourceResponseBody.d.ts +23 -0
  56. package/dist/models/GetCloudResourceResponseBody.js +60 -0
  57. package/dist/models/GetCloudResourceResponseBody.js.map +1 -0
  58. package/dist/models/GetCmsServiceRequest.d.ts +29 -0
  59. package/dist/models/GetCmsServiceRequest.js +60 -0
  60. package/dist/models/GetCmsServiceRequest.js.map +1 -0
  61. package/dist/models/GetCmsServiceResponse.d.ts +19 -0
  62. package/dist/models/GetCmsServiceResponse.js +69 -0
  63. package/dist/models/GetCmsServiceResponse.js.map +1 -0
  64. package/dist/models/GetCmsServiceResponseBody.d.ts +31 -0
  65. package/dist/models/GetCmsServiceResponseBody.js +62 -0
  66. package/dist/models/GetCmsServiceResponseBody.js.map +1 -0
  67. package/dist/models/GetPrometheusUserSettingRequest.d.ts +18 -0
  68. package/dist/models/GetPrometheusUserSettingRequest.js +58 -0
  69. package/dist/models/GetPrometheusUserSettingRequest.js.map +1 -0
  70. package/dist/models/GetPrometheusUserSettingResponse.d.ts +19 -0
  71. package/dist/models/GetPrometheusUserSettingResponse.js +69 -0
  72. package/dist/models/GetPrometheusUserSettingResponse.js.map +1 -0
  73. package/dist/models/GetPrometheusUserSettingResponseBody.d.ts +24 -0
  74. package/dist/models/GetPrometheusUserSettingResponseBody.js +63 -0
  75. package/dist/models/GetPrometheusUserSettingResponseBody.js.map +1 -0
  76. package/dist/models/IncidentEscalationPolicyForModify.d.ts +22 -0
  77. package/dist/models/IncidentEscalationPolicyForModify.js +68 -0
  78. package/dist/models/IncidentEscalationPolicyForModify.js.map +1 -0
  79. package/dist/models/IncidentEscalationPolicyForView.d.ts +31 -0
  80. package/dist/models/IncidentEscalationPolicyForView.js +86 -0
  81. package/dist/models/IncidentEscalationPolicyForView.js.map +1 -0
  82. package/dist/models/IncidentEscalationStageForView.d.ts +26 -0
  83. package/dist/models/IncidentEscalationStageForView.js +78 -0
  84. package/dist/models/IncidentEscalationStageForView.js.map +1 -0
  85. package/dist/models/IncidentEventForView.d.ts +43 -0
  86. package/dist/models/IncidentEventForView.js +119 -0
  87. package/dist/models/IncidentEventForView.js.map +1 -0
  88. package/dist/models/IncidentForView.d.ts +41 -0
  89. package/dist/models/IncidentForView.js +125 -0
  90. package/dist/models/IncidentForView.js.map +1 -0
  91. package/dist/models/IncidentResponsePlanForView.d.ts +30 -0
  92. package/dist/models/IncidentResponsePlanForView.js +97 -0
  93. package/dist/models/IncidentResponsePlanForView.js.map +1 -0
  94. package/dist/models/IncidentTimelineForView.d.ts +24 -0
  95. package/dist/models/IncidentTimelineForView.js +80 -0
  96. package/dist/models/IncidentTimelineForView.js.map +1 -0
  97. package/dist/models/ListIntegrationPolicyServiceMonitorsRequest.d.ts +28 -0
  98. package/dist/models/ListIntegrationPolicyServiceMonitorsRequest.js +62 -0
  99. package/dist/models/ListIntegrationPolicyServiceMonitorsRequest.js.map +1 -0
  100. package/dist/models/ListIntegrationPolicyServiceMonitorsResponse.d.ts +19 -0
  101. package/dist/models/ListIntegrationPolicyServiceMonitorsResponse.js +69 -0
  102. package/dist/models/ListIntegrationPolicyServiceMonitorsResponse.js.map +1 -0
  103. package/dist/models/ListIntegrationPolicyServiceMonitorsResponseBody.d.ts +124 -0
  104. package/dist/models/ListIntegrationPolicyServiceMonitorsResponseBody.js +134 -0
  105. package/dist/models/ListIntegrationPolicyServiceMonitorsResponseBody.js.map +1 -0
  106. package/dist/models/NotifyChannel.d.ts +16 -0
  107. package/dist/models/NotifyChannel.js +68 -0
  108. package/dist/models/NotifyChannel.js.map +1 -0
  109. package/dist/models/NotifyStrategyForModify.d.ts +37 -0
  110. package/dist/models/NotifyStrategyForModify.js +81 -1
  111. package/dist/models/NotifyStrategyForModify.js.map +1 -1
  112. package/dist/models/NotifyStrategyForView.d.ts +38 -0
  113. package/dist/models/NotifyStrategyForView.js +86 -1
  114. package/dist/models/NotifyStrategyForView.js.map +1 -1
  115. package/dist/models/PushingSetting.d.ts +16 -0
  116. package/dist/models/PushingSetting.js +68 -0
  117. package/dist/models/PushingSetting.js.map +1 -0
  118. package/dist/models/RepeatNotifySetting.d.ts +15 -0
  119. package/dist/models/RepeatNotifySetting.js +60 -0
  120. package/dist/models/RepeatNotifySetting.js.map +1 -0
  121. package/dist/models/SubscriptionForView.d.ts +1 -0
  122. package/dist/models/SubscriptionForView.js +2 -0
  123. package/dist/models/SubscriptionForView.js.map +1 -1
  124. package/dist/models/Tag.d.ts +15 -0
  125. package/dist/models/Tag.js +60 -0
  126. package/dist/models/Tag.js.map +1 -0
  127. package/dist/models/UpdatePrometheusUserSettingRequest.d.ts +21 -0
  128. package/dist/models/UpdatePrometheusUserSettingRequest.js +58 -0
  129. package/dist/models/UpdatePrometheusUserSettingRequest.js.map +1 -0
  130. package/dist/models/UpdatePrometheusUserSettingResponse.d.ts +19 -0
  131. package/dist/models/UpdatePrometheusUserSettingResponse.js +69 -0
  132. package/dist/models/UpdatePrometheusUserSettingResponse.js.map +1 -0
  133. package/dist/models/UpdatePrometheusUserSettingResponseBody.d.ts +21 -0
  134. package/dist/models/UpdatePrometheusUserSettingResponseBody.js +58 -0
  135. package/dist/models/UpdatePrometheusUserSettingResponseBody.js.map +1 -0
  136. package/dist/models/WorkspaceFilterSetting.d.ts +16 -0
  137. package/dist/models/WorkspaceFilterSetting.js +67 -0
  138. package/dist/models/WorkspaceFilterSetting.js.map +1 -0
  139. package/dist/models/model.d.ts +49 -0
  140. package/dist/models/model.js +117 -18
  141. package/dist/models/model.js.map +1 -1
  142. package/package.json +1 -1
  143. package/src/client.ts +397 -2
  144. package/src/models/AlertRuleSend.ts +6 -0
  145. package/src/models/CmsEventForView.ts +103 -0
  146. package/src/models/ContactForIncidentView.ts +30 -0
  147. package/src/models/CreateCloudResourceResponse.ts +40 -0
  148. package/src/models/CreateCloudResourceResponseBody.ts +31 -0
  149. package/src/models/DeleteCloudResourceResponse.ts +40 -0
  150. package/src/models/DeleteCloudResourceResponseBody.ts +31 -0
  151. package/src/models/DescribeRegionsRequest.ts +31 -0
  152. package/src/models/DescribeRegionsResponse.ts +40 -0
  153. package/src/models/DescribeRegionsResponseBody.ts +74 -0
  154. package/src/models/EffectTimeRange.ts +39 -0
  155. package/src/models/EventResourceForEventView.ts +71 -0
  156. package/src/models/EventResourceForIncidentView.ts +39 -0
  157. package/src/models/GetCloudResourceDataRequest.ts +54 -0
  158. package/src/models/GetCloudResourceDataResponse.ts +40 -0
  159. package/src/models/GetCloudResourceDataResponseBody.ts +43 -0
  160. package/src/models/GetCloudResourceResponse.ts +40 -0
  161. package/src/models/GetCloudResourceResponseBody.ts +38 -0
  162. package/src/models/GetCmsServiceRequest.ts +44 -0
  163. package/src/models/GetCmsServiceResponse.ts +40 -0
  164. package/src/models/GetCmsServiceResponseBody.ts +48 -0
  165. package/src/models/GetPrometheusUserSettingRequest.ts +31 -0
  166. package/src/models/GetPrometheusUserSettingResponse.ts +40 -0
  167. package/src/models/GetPrometheusUserSettingResponseBody.ts +40 -0
  168. package/src/models/IncidentEscalationPolicyForModify.ts +44 -0
  169. package/src/models/IncidentEscalationPolicyForView.ts +71 -0
  170. package/src/models/IncidentEscalationStageForView.ts +57 -0
  171. package/src/models/IncidentEventForView.ts +107 -0
  172. package/src/models/IncidentForView.ts +115 -0
  173. package/src/models/IncidentResponsePlanForView.ts +80 -0
  174. package/src/models/IncidentTimelineForView.ts +58 -0
  175. package/src/models/ListIntegrationPolicyServiceMonitorsRequest.ts +45 -0
  176. package/src/models/ListIntegrationPolicyServiceMonitorsResponse.ts +40 -0
  177. package/src/models/ListIntegrationPolicyServiceMonitorsResponseBody.ts +195 -0
  178. package/src/models/NotifyChannel.ts +39 -0
  179. package/src/models/NotifyStrategyForModify.ts +98 -0
  180. package/src/models/NotifyStrategyForView.ts +104 -0
  181. package/src/models/PushingSetting.ts +39 -0
  182. package/src/models/RepeatNotifySetting.ts +30 -0
  183. package/src/models/SubscriptionForView.ts +3 -0
  184. package/src/models/Tag.ts +30 -0
  185. package/src/models/UpdatePrometheusUserSettingRequest.ts +34 -0
  186. package/src/models/UpdatePrometheusUserSettingResponse.ts +40 -0
  187. package/src/models/UpdatePrometheusUserSettingResponseBody.ts +34 -0
  188. package/src/models/WorkspaceFilterSetting.ts +37 -0
  189. 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
+