@oneuptime/common 14.0.109 → 14.0.110

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 (285) hide show
  1. package/Models/AnalyticsModels/SecurityEvent.js +1 -1
  2. package/Models/DatabaseModels/AIInsight.js +2 -2
  3. package/Models/DatabaseModels/Alert.js +2 -2
  4. package/Models/DatabaseModels/AlertEpisode.js +2 -2
  5. package/Models/DatabaseModels/AlertEpisodeOnCallRule.js +3 -3
  6. package/Models/DatabaseModels/AlertGroupingRule.d.mts +1 -0
  7. package/Models/DatabaseModels/AlertGroupingRule.d.ts +1 -0
  8. package/Models/DatabaseModels/AlertGroupingRule.js +48 -2
  9. package/Models/DatabaseModels/AlertOnCallRule.js +3 -3
  10. package/Models/DatabaseModels/AlertSeverity.js +13 -4
  11. package/Models/DatabaseModels/AlertState.js +1 -1
  12. package/Models/DatabaseModels/CallLog.js +12 -12
  13. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -0
  14. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -0
  15. package/Models/DatabaseModels/EmailLog.js +12 -12
  16. package/Models/DatabaseModels/FormSubmission.js +2 -2
  17. package/Models/DatabaseModels/GlobalConfig.d.mts +1 -0
  18. package/Models/DatabaseModels/GlobalConfig.d.ts +1 -0
  19. package/Models/DatabaseModels/GlobalConfig.js +28 -0
  20. package/Models/DatabaseModels/Incident.js +2 -2
  21. package/Models/DatabaseModels/IncidentEpisode.js +2 -2
  22. package/Models/DatabaseModels/IncidentEpisodeOnCallRule.js +3 -3
  23. package/Models/DatabaseModels/IncidentGroupingRule.d.mts +1 -0
  24. package/Models/DatabaseModels/IncidentGroupingRule.d.ts +1 -0
  25. package/Models/DatabaseModels/IncidentGroupingRule.js +48 -2
  26. package/Models/DatabaseModels/IncidentOnCallRule.js +3 -3
  27. package/Models/DatabaseModels/IncidentSeverity.js +13 -4
  28. package/Models/DatabaseModels/IncidentState.js +1 -1
  29. package/Models/DatabaseModels/IncidentTemplate.js +2 -2
  30. package/Models/DatabaseModels/Monitor.js +3 -3
  31. package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
  32. package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
  33. package/Models/DatabaseModels/NetworkDevice.js +41 -0
  34. package/Models/DatabaseModels/OnCallDutyPolicy.js +4 -2
  35. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
  36. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js +8 -5
  37. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js +5 -2
  38. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js +5 -2
  39. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +9 -6
  40. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +10 -7
  41. package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +14 -11
  42. package/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.js +7 -4
  43. package/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.js +7 -4
  44. package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +6 -3
  45. package/Models/DatabaseModels/OnCallDutyPolicyScheduleCalendarFeed.js +4 -4
  46. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +3 -3
  47. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +6 -6
  48. package/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js +9 -6
  49. package/Models/DatabaseModels/Project.d.mts +2 -0
  50. package/Models/DatabaseModels/Project.d.ts +2 -0
  51. package/Models/DatabaseModels/Project.js +96 -2
  52. package/Models/DatabaseModels/ProxmoxCluster.d.mts +1 -0
  53. package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
  54. package/Models/DatabaseModels/ProxmoxCluster.js +52 -3
  55. package/Models/DatabaseModels/PushNotificationLog.js +12 -12
  56. package/Models/DatabaseModels/Reseller.js +8 -2
  57. package/Models/DatabaseModels/ResellerPlan.js +8 -2
  58. package/Models/DatabaseModels/ScheduledMaintenance.js +6 -3
  59. package/Models/DatabaseModels/ScheduledMaintenanceInternalNote.js +7 -4
  60. package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +2 -2
  61. package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +7 -4
  62. package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +1 -1
  63. package/Models/DatabaseModels/Service.js +1 -1
  64. package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +4 -4
  65. package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +4 -4
  66. package/Models/DatabaseModels/SmsLog.js +12 -12
  67. package/Models/DatabaseModels/StatusPage.js +5 -5
  68. package/Models/DatabaseModels/StatusPageSubscriber.js +2 -2
  69. package/Models/DatabaseModels/TelegramLog.js +12 -12
  70. package/Models/DatabaseModels/TelemetryIngestionKey.js +8 -5
  71. package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +7 -4
  72. package/Models/DatabaseModels/User.d.mts +4 -0
  73. package/Models/DatabaseModels/User.d.ts +4 -0
  74. package/Models/DatabaseModels/User.js +100 -0
  75. package/Models/DatabaseModels/UserOnCallLog.js +6 -6
  76. package/Models/DatabaseModels/UserOnCallLogTimeline.js +3 -3
  77. package/Models/DatabaseModels/UserOnCallShiftReminderLog.js +2 -2
  78. package/Models/DatabaseModels/WebhookLog.js +12 -12
  79. package/Models/DatabaseModels/WhatsAppLog.js +12 -12
  80. package/Models/DatabaseModels/WorkspaceNotificationLog.js +12 -12
  81. package/Types/AI/AIChatTypes.d.mts +2 -1
  82. package/Types/AI/AIChatTypes.d.ts +2 -1
  83. package/Types/AI/AIChatTypes.js +5 -0
  84. package/Types/Analytics/ProductEvent.d.mts +6 -1
  85. package/Types/Analytics/ProductEvent.d.ts +6 -1
  86. package/Types/Analytics/ProductEvent.js +41 -0
  87. package/Types/AuditLog/AuditLogCoverage.d.mts +1 -0
  88. package/Types/AuditLog/AuditLogCoverage.d.ts +1 -0
  89. package/Types/AuditLog/AuditLogCoverage.js +4 -2
  90. package/Types/Cloud/CloudResourceCatalog.d.mts +2 -0
  91. package/Types/Cloud/CloudResourceCatalog.d.ts +2 -0
  92. package/Types/Cloud/CloudResourceCatalog.js +33 -3
  93. package/Types/Cloud/CloudResourceCatalog.mjs +1 -0
  94. package/Types/DataObservability/DataCheckSuggestions.d.mts +25 -0
  95. package/Types/DataObservability/DataCheckSuggestions.d.ts +25 -0
  96. package/Types/DataObservability/DataCheckSuggestions.js +102 -65
  97. package/Types/DataObservability/DataCheckSuggestions.mjs +1 -0
  98. package/Types/Database/TableMetadata.d.mts +2 -0
  99. package/Types/Database/TableMetadata.d.ts +2 -0
  100. package/Types/Database/TableMetadata.js +6 -0
  101. package/Types/Date.d.mts +20 -1
  102. package/Types/Date.d.ts +20 -1
  103. package/Types/Date.js +42 -2
  104. package/Types/DateLanguage.d.mts +2 -0
  105. package/Types/DateLanguage.d.ts +2 -0
  106. package/Types/DateLanguage.js +44 -2
  107. package/Types/DateLanguage.mjs +2 -0
  108. package/Types/DirectionArrow.d.mts +7 -0
  109. package/Types/DirectionArrow.d.ts +7 -0
  110. package/Types/DirectionArrow.js +88 -0
  111. package/Types/DirectionArrow.mjs +7 -0
  112. package/Types/Docs/GlossaryTerm.d.mts +1 -0
  113. package/Types/Docs/GlossaryTerm.d.ts +1 -0
  114. package/Types/Docs/GlossaryTerm.js +2 -0
  115. package/Types/Docs/RetiredNames.d.mts +11 -0
  116. package/Types/Docs/RetiredNames.d.ts +11 -0
  117. package/Types/Docs/RetiredNames.js +139 -0
  118. package/Types/Docs/RetiredNames.mjs +3 -0
  119. package/Types/Exception/RefusalWithValues.d.mts +7 -0
  120. package/Types/Exception/RefusalWithValues.d.ts +7 -0
  121. package/Types/Exception/RefusalWithValues.js +76 -0
  122. package/Types/Exception/RefusalWithValues.mjs +3 -0
  123. package/Types/Exception/UnexplainedError.d.mts +13 -0
  124. package/Types/Exception/UnexplainedError.d.ts +13 -0
  125. package/Types/Exception/UnexplainedError.js +53 -1
  126. package/Types/Exception/UnexplainedError.mjs +1 -0
  127. package/Types/File/FileSize.d.mts +4 -1
  128. package/Types/File/FileSize.d.ts +4 -1
  129. package/Types/File/FileSize.js +18 -17
  130. package/Types/HostCollector/HostCollector.d.mts +1 -0
  131. package/Types/HostCollector/HostCollector.d.ts +1 -0
  132. package/Types/HostCollector/HostCollector.js +26 -10
  133. package/Types/HostCollector/HostCollector.mjs +1 -0
  134. package/Types/Monitor/MonitorCriteria.js +2 -2
  135. package/Types/Monitor/MonitorStep.js +1 -1
  136. package/Types/Monitor/MonitorTemplateSyncField.d.mts +6 -0
  137. package/Types/Monitor/MonitorTemplateSyncField.d.ts +6 -0
  138. package/Types/Monitor/MonitorTemplateSyncField.js +106 -64
  139. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.mts +1 -0
  140. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.ts +1 -0
  141. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.js +11 -3
  142. package/Types/Monitor/WhoIsTold.d.mts +3 -1
  143. package/Types/Monitor/WhoIsTold.d.ts +3 -1
  144. package/Types/Monitor/WhoIsTold.js +2 -1
  145. package/Types/NotificationRule/PagingLadder.d.mts +137 -0
  146. package/Types/NotificationRule/PagingLadder.d.ts +137 -0
  147. package/Types/NotificationRule/PagingLadder.js +682 -0
  148. package/Types/NotificationRule/PagingLadder.mjs +28 -0
  149. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +1 -1
  150. package/Types/OnCallDutyPolicy/OnCallPageLine.d.mts +26 -0
  151. package/Types/OnCallDutyPolicy/OnCallPageLine.d.ts +26 -0
  152. package/Types/OnCallDutyPolicy/OnCallPageLine.js +136 -0
  153. package/Types/OnCallDutyPolicy/OnCallPageLine.mjs +18 -0
  154. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +44 -0
  155. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +44 -0
  156. package/Types/OnCallDutyPolicy/OnCallTestPage.js +96 -5
  157. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
  158. package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.mts +19 -0
  159. package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.ts +19 -0
  160. package/Types/OnCallDutyPolicy/OnCallTestPageLine.js +222 -0
  161. package/Types/OnCallDutyPolicy/OnCallTestPageLine.mjs +6 -0
  162. package/Types/OnCallDutyPolicy/ScheduleLayerDefaults.js +5 -2
  163. package/Types/OnCallDutyPolicy/UserOverrideCoverRequest.js +9 -1
  164. package/Types/Permission.d.mts +2 -2
  165. package/Types/Permission.d.ts +2 -2
  166. package/Types/Permission.js +194 -193
  167. package/Types/Product/ProductCatalog.d.mts +10 -0
  168. package/Types/Product/ProductCatalog.d.ts +10 -0
  169. package/Types/Product/ProductCatalog.js +208 -0
  170. package/Types/Product/ProductCatalog.mjs +6 -0
  171. package/Types/Product/ProductOfTable.d.mts +3 -0
  172. package/Types/Product/ProductOfTable.d.ts +3 -0
  173. package/Types/Product/ProductOfTable.js +68 -0
  174. package/Types/Product/ProductOfTable.mjs +3 -0
  175. package/Types/Product/ProjectProductsAnswer.d.mts +3 -0
  176. package/Types/Product/ProjectProductsAnswer.d.ts +3 -0
  177. package/Types/Product/ProjectProductsAnswer.js +35 -2
  178. package/Types/Product/ProjectProductsAnswer.mjs +1 -0
  179. package/Types/Product/ServerProducts.d.mts +65 -0
  180. package/Types/Product/ServerProducts.d.ts +65 -0
  181. package/Types/Product/ServerProducts.js +383 -0
  182. package/Types/Product/ServerProducts.mjs +26 -0
  183. package/Types/Product/ServerProductsAnswer.d.mts +21 -0
  184. package/Types/Product/ServerProductsAnswer.d.ts +21 -0
  185. package/Types/Product/ServerProductsAnswer.js +78 -0
  186. package/Types/Product/ServerProductsAnswer.mjs +5 -0
  187. package/Types/ProductFeedback/ProductFeedback.d.mts +3 -1
  188. package/Types/ProductFeedback/ProductFeedback.d.ts +3 -1
  189. package/Types/ProductFeedback/ProductFeedback.js +8 -0
  190. package/Types/Rum/SessionReplayCustomEvents.d.mts +1 -0
  191. package/Types/Rum/SessionReplayCustomEvents.d.ts +1 -0
  192. package/Types/SampleProject/SampleProject.d.mts +54 -0
  193. package/Types/SampleProject/SampleProject.d.ts +54 -0
  194. package/Types/SampleProject/SampleProject.js +177 -0
  195. package/Types/SampleProject/SampleProject.mjs +22 -0
  196. package/Types/SampleProject/SampleProjectContent.d.mts +127 -0
  197. package/Types/SampleProject/SampleProjectContent.d.ts +127 -0
  198. package/Types/SampleProject/SampleProjectContent.js +397 -0
  199. package/Types/SampleProject/SampleProjectContent.mjs +18 -0
  200. package/Types/Telemetry/TelemetryIngestSurface.js +6 -5
  201. package/Types/Translator.d.mts +1 -0
  202. package/Types/Translator.d.ts +1 -0
  203. package/Types/Translator.js +40 -2
  204. package/Types/Translator.mjs +1 -0
  205. package/Types/UsedBy/UsedBy.d.mts +103 -0
  206. package/Types/UsedBy/UsedBy.d.ts +103 -0
  207. package/Types/UsedBy/UsedBy.js +389 -0
  208. package/Types/UsedBy/UsedBy.mjs +20 -0
  209. package/Types/UsedBy/UsedByServerProducts.d.mts +4 -0
  210. package/Types/UsedBy/UsedByServerProducts.d.ts +4 -0
  211. package/Types/UsedBy/UsedByServerProducts.js +48 -0
  212. package/Types/UsedBy/UsedByServerProducts.mjs +3 -0
  213. package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +6 -0
  214. package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +6 -0
  215. package/Types/WelcomeChecklist/WelcomeChecklist.js +54 -2
  216. package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
  217. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +1 -0
  218. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +1 -0
  219. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +3 -0
  220. package/Types/Workflow/PassedOnFields.js +2 -1
  221. package/Types/Workflow/Templates.js +1 -1
  222. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +2 -0
  223. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +2 -0
  224. package/Utils/AI/MeaningMatch.d.mts +36 -0
  225. package/Utils/AI/MeaningMatch.d.ts +36 -0
  226. package/Utils/AI/MeaningMatch.js +535 -0
  227. package/Utils/AI/MeaningMatch.mjs +7 -0
  228. package/Utils/ArchivableValues.js +1 -1
  229. package/Utils/AuditLog/AuditLogValues.js +2 -2
  230. package/Utils/Dashboard/ClockWidgetFormat.d.mts +14 -2
  231. package/Utils/Dashboard/ClockWidgetFormat.d.ts +14 -2
  232. package/Utils/Dashboard/ClockWidgetFormat.js +105 -2
  233. package/Utils/Dashboard/DashboardViewConfigSignature.d.mts +3 -0
  234. package/Utils/Dashboard/DashboardViewConfigSignature.d.ts +3 -0
  235. package/Utils/Dashboard/DashboardViewConfigSignature.js +45 -0
  236. package/Utils/Dashboard/DashboardViewConfigSignature.mjs +3 -0
  237. package/Utils/DataSecurity/TextScanner.js +2 -2
  238. package/Utils/DeveloperDocs/AiAssistantExamples.js +4 -4
  239. package/Utils/DeveloperDocs/CliCommands.d.mts +1 -0
  240. package/Utils/DeveloperDocs/CliCommands.d.ts +1 -0
  241. package/Utils/DeveloperDocs/CliCommands.js +2 -1
  242. package/Utils/DeveloperDocs/CliResources.js +2 -1
  243. package/Utils/DeveloperDocs/TerraformSchema.js +3 -1
  244. package/Utils/Markdown/LinkReferenceDefinitions.d.mts +8 -0
  245. package/Utils/Markdown/LinkReferenceDefinitions.d.ts +8 -0
  246. package/Utils/Markdown/LinkReferenceDefinitions.js +1493 -131
  247. package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
  248. package/Utils/Markdown/MarkdownTableCell.js +2 -1
  249. package/Utils/Markdown/OverLongText.js +523 -5
  250. package/Utils/Markdown/SlowMarkdown.d.mts +14 -0
  251. package/Utils/Markdown/SlowMarkdown.d.ts +14 -0
  252. package/Utils/Markdown/SlowMarkdown.js +595 -11
  253. package/Utils/Markdown/SlowMarkdown.mjs +6 -0
  254. package/Utils/ModelApiName.d.mts +11 -0
  255. package/Utils/ModelApiName.d.ts +11 -0
  256. package/Utils/ModelApiName.js +72 -0
  257. package/Utils/ModelApiName.mjs +5 -0
  258. package/Utils/Monitor/DeviceMacLearningUtil.d.mts +2 -1
  259. package/Utils/Monitor/DeviceMacLearningUtil.d.ts +2 -1
  260. package/Utils/Monitor/DeviceMacLearningUtil.js +26 -0
  261. package/Utils/Monitor/EndpointAttachmentUtil.js +8 -3
  262. package/Utils/Monitor/ExternalStatusPageReading.d.mts +3 -0
  263. package/Utils/Monitor/ExternalStatusPageReading.d.ts +3 -0
  264. package/Utils/Monitor/ExternalStatusPageReading.js +35 -1
  265. package/Utils/Monitor/ExternalStatusPageReading.mjs +2 -0
  266. package/Utils/Monitor/MonitorTemplateLinkRefusal.d.mts +9 -0
  267. package/Utils/Monitor/MonitorTemplateLinkRefusal.d.ts +9 -0
  268. package/Utils/Monitor/MonitorTemplateLinkRefusal.js +45 -0
  269. package/Utils/Monitor/MonitorTemplateLinkRefusal.mjs +6 -0
  270. package/Utils/OpenStack/OpenStackCheckName.js +2 -1
  271. package/Utils/OpenStack/OpenStackLogScrub.js +1 -1
  272. package/Utils/OpenStack/OpenStackLogs.js +3 -2
  273. package/Utils/OpenStack/OpenStackTraces.js +2 -1
  274. package/Utils/Project/NotificationChannels.js +5 -5
  275. package/Utils/Project/ProjectBalance.js +2 -2
  276. package/Utils/Project/TwilioAccount.js +2 -2
  277. package/Utils/ScheduledMaintenanceStart.d.mts +3 -0
  278. package/Utils/ScheduledMaintenanceStart.d.ts +3 -0
  279. package/Utils/ScheduledMaintenanceStart.js +9 -0
  280. package/Utils/Schema/ModelSchema.js +10 -1
  281. package/Utils/Uptime/UptimeMaintenanceUtil.js +2 -1
  282. package/Utils/ValueFormatter.d.mts +8 -6
  283. package/Utils/ValueFormatter.d.ts +8 -6
  284. package/Utils/ValueFormatter.js +145 -0
  285. package/package.json +1 -1
@@ -197,7 +197,7 @@ let SecurityEvent = class SecurityEvent extends AnalyticsBaseModel_1.default {
197
197
  const primaryEntityIdColumn = new TableColumn_1.default({
198
198
  key: "primaryEntityId",
199
199
  title: "Source ID",
200
- description: "ID of the resource the security event is attributed to (a Telemetry Service representing the security source, e.g. 'Google SecOps')",
200
+ description: "ID of the resource the security event is attributed to (a service representing the security source, e.g. 'Google SecOps')",
201
201
  required: true,
202
202
  type: TableColumnType_1.default.ObjectID,
203
203
  accessControl: defaultColumnAccessControl,
@@ -375,8 +375,8 @@ __decorate([
375
375
  type: TableColumnType_1.default.ObjectID,
376
376
  required: false,
377
377
  canReadOnRelationQuery: true,
378
- title: "Telemetry Service ID",
379
- description: "ID of the telemetry service this insight is about.",
378
+ title: "Service ID",
379
+ description: "ID of the service this insight is about.",
380
380
  }),
381
381
  (0, typeorm_1.Column)({
382
382
  type: ColumnType_1.default.ObjectID,
@@ -673,8 +673,8 @@ __decorate([
673
673
  required: false,
674
674
  type: TableColumnType_1.default.EntityArray,
675
675
  modelType: OnCallDutyPolicy_1.default,
676
- title: "On-Call Duty Policies",
677
- description: "List of on-call duty policies affected by this alert.",
676
+ title: "On-Call Policies",
677
+ description: "List of on-call policies affected by this alert.",
678
678
  }),
679
679
  (0, typeorm_1.ManyToMany)(() => {
680
680
  return OnCallDutyPolicy_1.default;
@@ -979,8 +979,8 @@ __decorate([
979
979
  required: false,
980
980
  type: TableColumnType_1.default.EntityArray,
981
981
  modelType: OnCallDutyPolicy_1.default,
982
- title: "On-Call Duty Policies",
983
- description: "List of on-call duty policies to execute for this episode.",
982
+ title: "On-Call Policies",
983
+ description: "List of on-call policies to execute for this episode.",
984
984
  }),
985
985
  (0, typeorm_1.ManyToMany)(() => {
986
986
  return OnCallDutyPolicy_1.default;
@@ -428,8 +428,8 @@ __decorate([
428
428
  required: false,
429
429
  type: TableColumnType_1.default.EntityArray,
430
430
  modelType: OnCallDutyPolicy_1.default,
431
- title: "On-Call Duty Policies",
432
- description: "On-call duty policies to execute when an alert episode matches this rule.",
431
+ title: "On-Call Policies",
432
+ description: "On-call policies to execute when an alert episode matches this rule.",
433
433
  }),
434
434
  (0, typeorm_1.ManyToMany)(() => {
435
435
  return OnCallDutyPolicy_1.default;
@@ -603,7 +603,7 @@ AlertEpisodeOnCallRule = __decorate([
603
603
  singularName: "Alert Episode On-Call Rule",
604
604
  pluralName: "Alert Episode On-Call Rules",
605
605
  icon: IconProp_1.default.Call,
606
- tableDescription: "Configure rules for automatically executing on-call duty policies when matching alert episodes are created",
606
+ tableDescription: "Configure rules for automatically executing on-call policies when matching alert episodes are created",
607
607
  })
608
608
  ], AlertEpisodeOnCallRule);
609
609
  exports.default = AlertEpisodeOnCallRule;
@@ -44,6 +44,7 @@ export default class AlertGroupingRule extends RuleBaseModel {
44
44
  groupByAlertTitle?: boolean;
45
45
  groupByAlertLabels?: boolean;
46
46
  groupByMonitorLabels?: boolean;
47
+ groupByConnectedServices?: boolean;
47
48
  enableTimeWindow?: boolean;
48
49
  timeWindowMinutes?: number;
49
50
  enableMinimumAlertCount?: boolean;
@@ -44,6 +44,7 @@ export default class AlertGroupingRule extends RuleBaseModel {
44
44
  groupByAlertTitle?: boolean;
45
45
  groupByAlertLabels?: boolean;
46
46
  groupByMonitorLabels?: boolean;
47
+ groupByConnectedServices?: boolean;
47
48
  enableTimeWindow?: boolean;
48
49
  timeWindowMinutes?: number;
49
50
  enableMinimumAlertCount?: boolean;
@@ -62,6 +62,14 @@ let AlertGroupingRule = class AlertGroupingRule extends RuleBaseModel_1.default
62
62
  this.groupByAlertTitle = undefined;
63
63
  this.groupByAlertLabels = undefined;
64
64
  this.groupByMonitorLabels = undefined;
65
+ /*
66
+ * Topology-aware grouping (issue #6798): an alert joins an open episode of
67
+ * the rule when one of its services - its own or its monitor's - is, calls
68
+ * or is called by a service of an alert already in it, on the Service Map
69
+ * (Common/Server/Utils/Topology/ConnectedServices). An alert on no service
70
+ * is grouped by its monitor instead.
71
+ */
72
+ this.groupByConnectedServices = undefined;
65
73
  this.enableTimeWindow = undefined;
66
74
  this.timeWindowMinutes = undefined;
67
75
  /*
@@ -872,6 +880,44 @@ __decorate([
872
880
  }),
873
881
  __metadata("design:type", Boolean)
874
882
  ], AlertGroupingRule.prototype, "groupByMonitorLabels", void 0);
883
+ __decorate([
884
+ (0, ColumnAccessControl_1.default)({
885
+ create: [
886
+ Permission_1.default.ProjectOwner,
887
+ Permission_1.default.ProjectAdmin,
888
+ Permission_1.default.CreateAlertGroupingRule,
889
+ ],
890
+ read: [
891
+ Permission_1.default.ProjectOwner,
892
+ Permission_1.default.ProjectAdmin,
893
+ Permission_1.default.ProjectMember,
894
+ Permission_1.default.Viewer,
895
+ Permission_1.default.AlertAdmin,
896
+ Permission_1.default.AlertMember,
897
+ Permission_1.default.AlertViewer,
898
+ Permission_1.default.ReadAlertGroupingRule,
899
+ ],
900
+ update: [
901
+ Permission_1.default.ProjectOwner,
902
+ Permission_1.default.ProjectAdmin,
903
+ Permission_1.default.EditAlertGroupingRule,
904
+ ],
905
+ }),
906
+ (0, TableColumn_1.default)({
907
+ required: false,
908
+ type: TableColumnType_1.default.Boolean,
909
+ title: "Group By Connected Services",
910
+ description: "When enabled, alerts on services that call each other on the Service Map are grouped into the same episode, and alerts on unconnected services into separate ones. Alerts on no service are grouped by monitor.",
911
+ defaultValue: false,
912
+ isDefaultValueColumn: true,
913
+ }),
914
+ (0, typeorm_1.Column)({
915
+ type: ColumnType_1.default.Boolean,
916
+ nullable: false,
917
+ default: false,
918
+ }),
919
+ __metadata("design:type", Boolean)
920
+ ], AlertGroupingRule.prototype, "groupByConnectedServices", void 0);
875
921
  __decorate([
876
922
  (0, ColumnAccessControl_1.default)({
877
923
  create: [
@@ -1384,8 +1430,8 @@ __decorate([
1384
1430
  required: false,
1385
1431
  type: TableColumnType_1.default.EntityArray,
1386
1432
  modelType: OnCallDutyPolicy_1.default,
1387
- title: "On-Call Duty Policies",
1388
- description: "List of on-call duty policies to execute for episodes created by this rule.",
1433
+ title: "On-Call Policies",
1434
+ description: "List of on-call policies to execute for episodes created by this rule.",
1389
1435
  }),
1390
1436
  (0, typeorm_1.ManyToMany)(() => {
1391
1437
  return OnCallDutyPolicy_1.default;
@@ -599,8 +599,8 @@ __decorate([
599
599
  required: false,
600
600
  type: TableColumnType_1.default.EntityArray,
601
601
  modelType: OnCallDutyPolicy_1.default,
602
- title: "On-Call Duty Policies",
603
- description: "On-call duty policies to execute when an alert matches this rule.",
602
+ title: "On-Call Policies",
603
+ description: "On-call policies to execute when an alert matches this rule.",
604
604
  }),
605
605
  (0, typeorm_1.ManyToMany)(() => {
606
606
  return OnCallDutyPolicy_1.default;
@@ -774,7 +774,7 @@ AlertOnCallRule = __decorate([
774
774
  singularName: "Alert On-Call Rule",
775
775
  pluralName: "Alert On-Call Rules",
776
776
  icon: IconProp_1.default.Call,
777
- tableDescription: "Configure rules for automatically executing on-call duty policies when matching alerts are created",
777
+ tableDescription: "Configure rules for automatically executing on-call policies when matching alerts are created",
778
778
  })
779
779
  ], AlertOnCallRule);
780
780
  exports.default = AlertOnCallRule;
@@ -299,7 +299,10 @@ __decorate([
299
299
  (0, TableColumn_1.default)({
300
300
  manyToOneRelationColumn: "createdByUserId",
301
301
  type: TableColumnType_1.default.Entity,
302
- modelType: User_1.default,
302
+ // Lazy: User imports Project, which imports this model (see modelTypeThunk).
303
+ modelTypeThunk: () => {
304
+ return User_1.default;
305
+ },
303
306
  title: "Created by User",
304
307
  description: "Relation to User who created this object (if this object was created by a User)",
305
308
  }),
@@ -371,7 +374,10 @@ __decorate([
371
374
  manyToOneRelationColumn: "deletedByUserId",
372
375
  type: TableColumnType_1.default.Entity,
373
376
  title: "Deleted by User",
374
- modelType: User_1.default,
377
+ // Lazy: User imports Project, which imports this model (see modelTypeThunk).
378
+ modelTypeThunk: () => {
379
+ return User_1.default;
380
+ },
375
381
  description: "Relation to User who deleted this object (if this object was deleted by a User)",
376
382
  }),
377
383
  (0, typeorm_1.ManyToOne)(() => {
@@ -604,7 +610,10 @@ __decorate([
604
610
  (0, TableColumn_1.default)({
605
611
  manyToOneRelationColumn: "archivedByUserId",
606
612
  type: TableColumnType_1.default.Entity,
607
- modelType: User_1.default,
613
+ // Lazy: User imports Project, which imports this model (see modelTypeThunk).
614
+ modelTypeThunk: () => {
615
+ return User_1.default;
616
+ },
608
617
  title: "Archived by User",
609
618
  description: "Relation to User who archived this object (if this object was archived by a User)",
610
619
  }),
@@ -716,7 +725,7 @@ AlertSeverity = __decorate([
716
725
  singularName: "Alert Severity",
717
726
  pluralName: "Alert Severities",
718
727
  icon: IconProp_1.default.Alert,
719
- tableDescription: "Manage alert severity for your project (Created, Acknowledged for example). Add / edit or remove severities.",
728
+ tableDescription: "How much an alert matters. A new project starts with High and Low: rename them, recolor them or add your own.",
720
729
  }),
721
730
  (0, typeorm_1.Entity)({
722
731
  name: "AlertSeverity",
@@ -735,7 +735,7 @@ AlertState = __decorate([
735
735
  singularName: "Alert State",
736
736
  pluralName: "Alert States",
737
737
  icon: IconProp_1.default.ArrowCircleRight,
738
- tableDescription: "Manage alert states for your project (Created, Acknowledged for example). Add / edit or remove states.",
738
+ tableDescription: "Where an alert is in your response. A new project starts with Identified, Acknowledged and Resolved: rename them or add your own between them.",
739
739
  }),
740
740
  (0, typeorm_1.Entity)({
741
741
  name: "AlertState",
@@ -741,8 +741,8 @@ __decorate([
741
741
  manyToOneRelationColumn: "onCallDutyPolicyId",
742
742
  type: TableColumnType_1.default.Entity,
743
743
  modelType: OnCallDutyPolicy_1.default,
744
- title: "On-Call Duty Policy",
745
- description: "On-Call Duty Policy associated with this Call (if any)",
744
+ title: "On-Call Policy",
745
+ description: "On-Call Policy associated with this Call (if any)",
746
746
  example: "b8c9d0e1-cdef-67f1-89ab-89abcdef0123",
747
747
  }),
748
748
  (0, typeorm_1.ManyToOne)(() => {
@@ -773,8 +773,8 @@ __decorate([
773
773
  type: TableColumnType_1.default.ObjectID,
774
774
  required: false,
775
775
  canReadOnRelationQuery: true,
776
- title: "On-Call Duty Policy ID",
777
- description: "ID of On-Call Duty Policy associated with this Call (if any)",
776
+ title: "On-Call Policy ID",
777
+ description: "ID of On-Call Policy associated with this Call (if any)",
778
778
  example: "b8c9d0e1-cdef-67f1-89ab-89abcdef0123",
779
779
  }),
780
780
  (0, typeorm_1.Column)({
@@ -800,8 +800,8 @@ __decorate([
800
800
  manyToOneRelationColumn: "onCallDutyPolicyEscalationRuleId",
801
801
  type: TableColumnType_1.default.Entity,
802
802
  modelType: OnCallDutyPolicyEscalationRule_1.default,
803
- title: "On-Call Duty Policy Escalation Rule",
804
- description: "On-Call Duty Policy Escalation Rule associated with this Call (if any)",
803
+ title: "On-Call Policy Escalation Rule",
804
+ description: "On-Call Policy Escalation Rule associated with this Call (if any)",
805
805
  example: "c9d0e1f2-def0-78f2-9abc-9abcdef01234",
806
806
  }),
807
807
  (0, typeorm_1.ManyToOne)(() => {
@@ -832,8 +832,8 @@ __decorate([
832
832
  type: TableColumnType_1.default.ObjectID,
833
833
  required: false,
834
834
  canReadOnRelationQuery: true,
835
- title: "On-Call Duty Policy Escalation Rule ID",
836
- description: "ID of On-Call Duty Policy Escalation Rule associated with this Call (if any)",
835
+ title: "On-Call Policy Escalation Rule ID",
836
+ description: "ID of On-Call Policy Escalation Rule associated with this Call (if any)",
837
837
  example: "c9d0e1f2-def0-78f2-9abc-9abcdef01234",
838
838
  }),
839
839
  (0, typeorm_1.Column)({
@@ -859,8 +859,8 @@ __decorate([
859
859
  manyToOneRelationColumn: "onCallDutyPolicyScheduleId",
860
860
  type: TableColumnType_1.default.Entity,
861
861
  modelType: OnCallDutyPolicySchedule_1.default,
862
- title: "On-Call Duty Policy Schedule",
863
- description: "On-Call Duty Policy Schedule associated with this Call (if any)",
862
+ title: "On-Call Schedule",
863
+ description: "On-Call Schedule associated with this Call (if any)",
864
864
  example: "d0e1f2a3-ef01-89f3-abcd-abcdef012345",
865
865
  }),
866
866
  (0, typeorm_1.ManyToOne)(() => {
@@ -891,8 +891,8 @@ __decorate([
891
891
  type: TableColumnType_1.default.ObjectID,
892
892
  required: false,
893
893
  canReadOnRelationQuery: true,
894
- title: "On-Call Duty Policy Schedule ID",
895
- description: "ID of On-Call Duty Policy Schedule associated with this Call (if any)",
894
+ title: "On-Call Schedule ID",
895
+ description: "ID of On-Call Schedule associated with this Call (if any)",
896
896
  example: "d0e1f2a3-ef01-89f3-abcd-abcdef012345",
897
897
  }),
898
898
  (0, typeorm_1.Column)({
@@ -52,6 +52,8 @@ export default class DatabaseBaseModel extends BaseEntity {
52
52
  pluralName: string | null;
53
53
  displayNameColumn: string | null;
54
54
  formerSingularName: string | null;
55
+ apiSingularName: string | null;
56
+ apiPluralName: string | null;
55
57
  enableRealtimeEventsOn: EnableRealtimeEventsOn | null;
56
58
  isOperationalResource: boolean;
57
59
  ownedThrough: OwnedThroughMetadata | null;
@@ -52,6 +52,8 @@ export default class DatabaseBaseModel extends BaseEntity {
52
52
  pluralName: string | null;
53
53
  displayNameColumn: string | null;
54
54
  formerSingularName: string | null;
55
+ apiSingularName: string | null;
56
+ apiPluralName: string | null;
55
57
  enableRealtimeEventsOn: EnableRealtimeEventsOn | null;
56
58
  isOperationalResource: boolean;
57
59
  ownedThrough: OwnedThroughMetadata | null;
@@ -770,8 +770,8 @@ __decorate([
770
770
  manyToOneRelationColumn: "onCallDutyPolicyId",
771
771
  type: TableColumnType_1.default.Entity,
772
772
  modelType: OnCallDutyPolicy_1.default,
773
- title: "On-Call Duty Policy",
774
- description: "On-Call Duty Policy associated with this email (if any)",
773
+ title: "On-Call Policy",
774
+ description: "On-Call Policy associated with this email (if any)",
775
775
  example: "b8c9d0e1-cdef-67f1-89ab-89abcdef0123",
776
776
  }),
777
777
  (0, typeorm_1.ManyToOne)(() => {
@@ -802,8 +802,8 @@ __decorate([
802
802
  type: TableColumnType_1.default.ObjectID,
803
803
  required: false,
804
804
  canReadOnRelationQuery: true,
805
- title: "On-Call Duty Policy ID",
806
- description: "ID of On-Call Duty Policy associated with this email (if any)",
805
+ title: "On-Call Policy ID",
806
+ description: "ID of On-Call Policy associated with this email (if any)",
807
807
  example: "b8c9d0e1-cdef-67f1-89ab-89abcdef0123",
808
808
  }),
809
809
  (0, typeorm_1.Column)({
@@ -829,8 +829,8 @@ __decorate([
829
829
  manyToOneRelationColumn: "onCallDutyPolicyEscalationRuleId",
830
830
  type: TableColumnType_1.default.Entity,
831
831
  modelType: OnCallDutyPolicyEscalationRule_1.default,
832
- title: "On-Call Duty Policy Escalation Rule",
833
- description: "On-Call Duty Policy Escalation Rule associated with this email (if any)",
832
+ title: "On-Call Policy Escalation Rule",
833
+ description: "On-Call Policy Escalation Rule associated with this email (if any)",
834
834
  example: "c9d0e1f2-def0-78f2-9abc-9abcdef01234",
835
835
  }),
836
836
  (0, typeorm_1.ManyToOne)(() => {
@@ -861,8 +861,8 @@ __decorate([
861
861
  type: TableColumnType_1.default.ObjectID,
862
862
  required: false,
863
863
  canReadOnRelationQuery: true,
864
- title: "On-Call Duty Policy Escalation Rule ID",
865
- description: "ID of On-Call Duty Policy Escalation Rule associated with this email (if any)",
864
+ title: "On-Call Policy Escalation Rule ID",
865
+ description: "ID of On-Call Policy Escalation Rule associated with this email (if any)",
866
866
  example: "c9d0e1f2-def0-78f2-9abc-9abcdef01234",
867
867
  }),
868
868
  (0, typeorm_1.Column)({
@@ -888,8 +888,8 @@ __decorate([
888
888
  manyToOneRelationColumn: "onCallDutyPolicyScheduleId",
889
889
  type: TableColumnType_1.default.Entity,
890
890
  modelType: OnCallDutyPolicySchedule_1.default,
891
- title: "On-Call Duty Policy Schedule",
892
- description: "On-Call Duty Policy Schedule associated with this email (if any)",
891
+ title: "On-Call Schedule",
892
+ description: "On-Call Schedule associated with this email (if any)",
893
893
  example: "d0e1f2a3-ef01-89f3-abcd-abcdef012345",
894
894
  }),
895
895
  (0, typeorm_1.ManyToOne)(() => {
@@ -920,8 +920,8 @@ __decorate([
920
920
  type: TableColumnType_1.default.ObjectID,
921
921
  required: false,
922
922
  canReadOnRelationQuery: true,
923
- title: "On-Call Duty Policy Schedule ID",
924
- description: "ID of On-Call Duty Policy Schedule associated with this email (if any)",
923
+ title: "On-Call Schedule ID",
924
+ description: "ID of On-Call Schedule associated with this email (if any)",
925
925
  example: "d0e1f2a3-ef01-89f3-abcd-abcdef012345",
926
926
  }),
927
927
  (0, typeorm_1.Column)({
@@ -319,7 +319,7 @@ __decorate([
319
319
  manyToOneRelationColumn: "scheduledMaintenanceId",
320
320
  type: TableColumnType_1.default.Entity,
321
321
  modelType: ScheduledMaintenance_1.default,
322
- title: "Scheduled Maintenance Event",
322
+ title: "Maintenance Event",
323
323
  description: "The scheduled maintenance event this submission created. Empty for a form that creates incidents, and once that event is deleted.",
324
324
  }),
325
325
  (0, typeorm_1.ManyToOne)(() => {
@@ -344,7 +344,7 @@ __decorate([
344
344
  type: TableColumnType_1.default.ObjectID,
345
345
  required: false,
346
346
  canReadOnRelationQuery: true,
347
- title: "Scheduled Maintenance Event ID",
347
+ title: "Maintenance Event ID",
348
348
  description: "ID of the scheduled maintenance event this submission created. Empty for a form that creates incidents, and once that event is deleted.",
349
349
  example: "b8c9d0e1-f2a3-4b4c-9d5e-6f7a8b9c0d1e",
350
350
  }),
@@ -156,4 +156,5 @@ export default class GlobalConfig extends GlobalConfigModel {
156
156
  serverSendingHealth?: JSONObject;
157
157
  serverSetupChoices?: JSONObject;
158
158
  disableProductFeedback?: boolean;
159
+ serverProducts?: JSONObject;
159
160
  }
@@ -156,4 +156,5 @@ export default class GlobalConfig extends GlobalConfigModel {
156
156
  serverSendingHealth?: JSONObject;
157
157
  serverSetupChoices?: JSONObject;
158
158
  disableProductFeedback?: boolean;
159
+ serverProducts?: JSONObject;
159
160
  }
@@ -365,6 +365,17 @@ let GlobalConfig = class GlobalConfig extends GlobalConfig_1.default {
365
365
  * nothing is offered, and ProductFeedbackAPI takes no answer.
366
366
  */
367
367
  this.disableProductFeedback = undefined;
368
+ /*
369
+ * The products switched off for every project on this server (issue
370
+ * #6815, Types/Product/ServerProducts): { off: [product keys], changedAt,
371
+ * changedByUserId }. Null until a master admin saves Admin Dashboard >
372
+ * Settings > Products; until then SERVER_PRODUCTS (config.env, Helm
373
+ * products.onThisServer) gives the starting value, and unset every product
374
+ * is on. Written by OneUptime only (isRoot), through the page's own route,
375
+ * which records who changed it: GlobalConfigService refuses a write
376
+ * through the CRUD API.
377
+ */
378
+ this.serverProducts = undefined;
368
379
  }
369
380
  };
370
381
  __decorate([
@@ -2918,6 +2929,23 @@ __decorate([
2918
2929
  }),
2919
2930
  __metadata("design:type", Boolean)
2920
2931
  ], GlobalConfig.prototype, "disableProductFeedback", void 0);
2932
+ __decorate([
2933
+ (0, ColumnAccessControl_1.default)({
2934
+ create: [],
2935
+ read: [],
2936
+ update: [],
2937
+ }),
2938
+ (0, TableColumn_1.default)({
2939
+ type: TableColumnType_1.default.JSON,
2940
+ title: "Server Products",
2941
+ description: "The products switched off for every project on this server, and who switched them off and when. Empty until an admin saves Admin Dashboard > Settings > Products.",
2942
+ }),
2943
+ (0, typeorm_1.Column)({
2944
+ type: ColumnType_1.default.JSON,
2945
+ nullable: true,
2946
+ }),
2947
+ __metadata("design:type", Object)
2948
+ ], GlobalConfig.prototype, "serverProducts", void 0);
2921
2949
  GlobalConfig = __decorate([
2922
2950
  (0, TableMetadata_1.default)({
2923
2951
  tableName: "GlobalConfig",
@@ -1891,8 +1891,8 @@ __decorate([
1891
1891
  required: false,
1892
1892
  type: TableColumnType_1.default.EntityArray,
1893
1893
  modelType: OnCallDutyPolicy_1.default,
1894
- title: "On-Call Duty Policies",
1895
- description: "List of on-call duty policies affected by this incident.",
1894
+ title: "On-Call Policies",
1895
+ description: "List of on-call policies affected by this incident.",
1896
1896
  }),
1897
1897
  (0, typeorm_1.ManyToMany)(() => {
1898
1898
  return OnCallDutyPolicy_1.default;
@@ -907,8 +907,8 @@ __decorate([
907
907
  required: false,
908
908
  type: TableColumnType_1.default.EntityArray,
909
909
  modelType: OnCallDutyPolicy_1.default,
910
- title: "On-Call Duty Policies",
911
- description: "List of on-call duty policies to execute for this episode.",
910
+ title: "On-Call Policies",
911
+ description: "List of on-call policies to execute for this episode.",
912
912
  }),
913
913
  (0, typeorm_1.ManyToMany)(() => {
914
914
  return OnCallDutyPolicy_1.default;
@@ -429,8 +429,8 @@ __decorate([
429
429
  required: false,
430
430
  type: TableColumnType_1.default.EntityArray,
431
431
  modelType: OnCallDutyPolicy_1.default,
432
- title: "On-Call Duty Policies",
433
- description: "On-call duty policies to execute when an incident episode matches this rule.",
432
+ title: "On-Call Policies",
433
+ description: "On-call policies to execute when an incident episode matches this rule.",
434
434
  }),
435
435
  (0, typeorm_1.ManyToMany)(() => {
436
436
  return OnCallDutyPolicy_1.default;
@@ -604,7 +604,7 @@ IncidentEpisodeOnCallRule = __decorate([
604
604
  singularName: "Incident Episode On-Call Rule",
605
605
  pluralName: "Incident Episode On-Call Rules",
606
606
  icon: IconProp_1.default.Call,
607
- tableDescription: "Configure rules for automatically executing on-call duty policies when matching incident episodes are created",
607
+ tableDescription: "Configure rules for automatically executing on-call policies when matching incident episodes are created",
608
608
  })
609
609
  ], IncidentEpisodeOnCallRule);
610
610
  exports.default = IncidentEpisodeOnCallRule;
@@ -47,6 +47,7 @@ export default class IncidentGroupingRule extends RuleBaseModel {
47
47
  groupByIncidentTitle?: boolean;
48
48
  groupByIncidentLabels?: boolean;
49
49
  groupByMonitorLabels?: boolean;
50
+ groupByConnectedServices?: boolean;
50
51
  enableTimeWindow?: boolean;
51
52
  timeWindowMinutes?: number;
52
53
  enableMinimumIncidentCount?: boolean;
@@ -47,6 +47,7 @@ export default class IncidentGroupingRule extends RuleBaseModel {
47
47
  groupByIncidentTitle?: boolean;
48
48
  groupByIncidentLabels?: boolean;
49
49
  groupByMonitorLabels?: boolean;
50
+ groupByConnectedServices?: boolean;
50
51
  enableTimeWindow?: boolean;
51
52
  timeWindowMinutes?: number;
52
53
  enableMinimumIncidentCount?: boolean;
@@ -63,6 +63,14 @@ let IncidentGroupingRule = class IncidentGroupingRule extends RuleBaseModel_1.de
63
63
  this.groupByIncidentTitle = undefined;
64
64
  this.groupByIncidentLabels = undefined;
65
65
  this.groupByMonitorLabels = undefined;
66
+ /*
67
+ * Topology-aware grouping (issue #6798): an incident joins an open episode
68
+ * of the rule when one of its services - its own or its monitors' - is,
69
+ * calls or is called by a service of an incident already in it, on the
70
+ * Service Map (Common/Server/Utils/Topology/ConnectedServices). An
71
+ * incident on no service is grouped by its first monitor instead.
72
+ */
73
+ this.groupByConnectedServices = undefined;
66
74
  this.enableTimeWindow = undefined;
67
75
  this.timeWindowMinutes = undefined;
68
76
  /*
@@ -876,6 +884,44 @@ __decorate([
876
884
  }),
877
885
  __metadata("design:type", Boolean)
878
886
  ], IncidentGroupingRule.prototype, "groupByMonitorLabels", void 0);
887
+ __decorate([
888
+ (0, ColumnAccessControl_1.default)({
889
+ create: [
890
+ Permission_1.default.ProjectOwner,
891
+ Permission_1.default.ProjectAdmin,
892
+ Permission_1.default.CreateIncidentGroupingRule,
893
+ ],
894
+ read: [
895
+ Permission_1.default.ProjectOwner,
896
+ Permission_1.default.ProjectAdmin,
897
+ Permission_1.default.ProjectMember,
898
+ Permission_1.default.Viewer,
899
+ Permission_1.default.IncidentAdmin,
900
+ Permission_1.default.IncidentMember,
901
+ Permission_1.default.IncidentViewer,
902
+ Permission_1.default.ReadIncidentGroupingRule,
903
+ ],
904
+ update: [
905
+ Permission_1.default.ProjectOwner,
906
+ Permission_1.default.ProjectAdmin,
907
+ Permission_1.default.EditIncidentGroupingRule,
908
+ ],
909
+ }),
910
+ (0, TableColumn_1.default)({
911
+ required: false,
912
+ type: TableColumnType_1.default.Boolean,
913
+ title: "Group By Connected Services",
914
+ description: "When enabled, incidents on services that call each other on the Service Map are grouped into the same episode, and incidents on unconnected services into separate ones. Incidents on no service are grouped by monitor.",
915
+ defaultValue: false,
916
+ isDefaultValueColumn: true,
917
+ }),
918
+ (0, typeorm_1.Column)({
919
+ type: ColumnType_1.default.Boolean,
920
+ nullable: false,
921
+ default: false,
922
+ }),
923
+ __metadata("design:type", Boolean)
924
+ ], IncidentGroupingRule.prototype, "groupByConnectedServices", void 0);
879
925
  __decorate([
880
926
  (0, ColumnAccessControl_1.default)({
881
927
  create: [
@@ -1388,8 +1434,8 @@ __decorate([
1388
1434
  required: false,
1389
1435
  type: TableColumnType_1.default.EntityArray,
1390
1436
  modelType: OnCallDutyPolicy_1.default,
1391
- title: "On-Call Duty Policies",
1392
- description: "List of on-call duty policies to execute for episodes created by this rule.",
1437
+ title: "On-Call Policies",
1438
+ description: "List of on-call policies to execute for episodes created by this rule.",
1393
1439
  }),
1394
1440
  (0, typeorm_1.ManyToMany)(() => {
1395
1441
  return OnCallDutyPolicy_1.default;
@@ -599,8 +599,8 @@ __decorate([
599
599
  required: false,
600
600
  type: TableColumnType_1.default.EntityArray,
601
601
  modelType: OnCallDutyPolicy_1.default,
602
- title: "On-Call Duty Policies",
603
- description: "On-call duty policies to execute when an incident matches this rule.",
602
+ title: "On-Call Policies",
603
+ description: "On-call policies to execute when an incident matches this rule.",
604
604
  }),
605
605
  (0, typeorm_1.ManyToMany)(() => {
606
606
  return OnCallDutyPolicy_1.default;
@@ -774,7 +774,7 @@ IncidentOnCallRule = __decorate([
774
774
  singularName: "Incident On-Call Rule",
775
775
  pluralName: "Incident On-Call Rules",
776
776
  icon: IconProp_1.default.Call,
777
- tableDescription: "Configure rules for automatically executing on-call duty policies when matching incidents are created",
777
+ tableDescription: "Configure rules for automatically executing on-call policies when matching incidents are created",
778
778
  })
779
779
  ], IncidentOnCallRule);
780
780
  exports.default = IncidentOnCallRule;