@oneuptime/common 14.0.109 → 14.1.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 (578) hide show
  1. package/Models/AnalyticsModels/SecurityEvent.js +1 -1
  2. package/Models/DatabaseModels/AIInsight.js +2 -2
  3. package/Models/DatabaseModels/AIRunRecording.d.mts +12 -0
  4. package/Models/DatabaseModels/AIRunRecording.d.ts +12 -0
  5. package/Models/DatabaseModels/AIRunRecording.js +181 -0
  6. package/Models/DatabaseModels/AIRunRecording.mjs +2 -0
  7. package/Models/DatabaseModels/Alert.js +20 -4
  8. package/Models/DatabaseModels/AlertEpisode.js +2 -2
  9. package/Models/DatabaseModels/AlertEpisodeOnCallRule.js +3 -3
  10. package/Models/DatabaseModels/AlertGroupingRule.d.mts +1 -0
  11. package/Models/DatabaseModels/AlertGroupingRule.d.ts +1 -0
  12. package/Models/DatabaseModels/AlertGroupingRule.js +48 -2
  13. package/Models/DatabaseModels/AlertOnCallRule.js +3 -3
  14. package/Models/DatabaseModels/AlertSeverity.js +13 -4
  15. package/Models/DatabaseModels/AlertState.js +1 -1
  16. package/Models/DatabaseModels/CallLog.js +12 -12
  17. package/Models/DatabaseModels/DataStore.js +9 -0
  18. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -0
  19. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -0
  20. package/Models/DatabaseModels/EmailLog.js +14 -14
  21. package/Models/DatabaseModels/Form.js +3 -3
  22. package/Models/DatabaseModels/FormSubmission.js +6 -6
  23. package/Models/DatabaseModels/GlobalConfig.d.mts +1 -0
  24. package/Models/DatabaseModels/GlobalConfig.d.ts +1 -0
  25. package/Models/DatabaseModels/GlobalConfig.js +74 -45
  26. package/Models/DatabaseModels/Incident.js +20 -4
  27. package/Models/DatabaseModels/IncidentEpisode.js +2 -2
  28. package/Models/DatabaseModels/IncidentEpisodeOnCallRule.js +3 -3
  29. package/Models/DatabaseModels/IncidentGroupingRule.d.mts +1 -0
  30. package/Models/DatabaseModels/IncidentGroupingRule.d.ts +1 -0
  31. package/Models/DatabaseModels/IncidentGroupingRule.js +48 -2
  32. package/Models/DatabaseModels/IncidentOnCallRule.js +3 -3
  33. package/Models/DatabaseModels/IncidentSeverity.js +13 -4
  34. package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
  35. package/Models/DatabaseModels/IncidentState.js +1 -1
  36. package/Models/DatabaseModels/IncidentTemplate.js +2 -2
  37. package/Models/DatabaseModels/Index.js +4 -0
  38. package/Models/DatabaseModels/InventoryItem.js +11 -0
  39. package/Models/DatabaseModels/Monitor.js +54 -20
  40. package/Models/DatabaseModels/MonitorNetworkDevice.d.mts +11 -0
  41. package/Models/DatabaseModels/MonitorNetworkDevice.d.ts +11 -0
  42. package/Models/DatabaseModels/MonitorNetworkDevice.js +189 -0
  43. package/Models/DatabaseModels/MonitorNetworkDevice.mjs +2 -0
  44. package/Models/DatabaseModels/MonitorProbe.js +22 -5
  45. package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
  46. package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
  47. package/Models/DatabaseModels/NetworkDevice.js +64 -7
  48. package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
  49. package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
  50. package/Models/DatabaseModels/NetworkEndpoint.js +39 -7
  51. package/Models/DatabaseModels/NetworkInterface.js +5 -5
  52. package/Models/DatabaseModels/OnCallDutyPolicy.js +4 -2
  53. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
  54. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js +8 -5
  55. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js +5 -2
  56. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js +5 -2
  57. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +28 -11
  58. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +10 -7
  59. package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
  60. package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
  61. package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +16 -11
  62. package/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.js +7 -4
  63. package/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.js +7 -4
  64. package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +6 -3
  65. package/Models/DatabaseModels/OnCallDutyPolicyScheduleCalendarFeed.js +4 -4
  66. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +3 -3
  67. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +6 -6
  68. package/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js +9 -6
  69. package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +35 -7
  70. package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
  71. package/Models/DatabaseModels/Project.d.mts +3 -0
  72. package/Models/DatabaseModels/Project.d.ts +3 -0
  73. package/Models/DatabaseModels/Project.js +142 -5
  74. package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
  75. package/Models/DatabaseModels/ProjectSmtpConfig.js +2 -0
  76. package/Models/DatabaseModels/ProxmoxCluster.d.mts +1 -0
  77. package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
  78. package/Models/DatabaseModels/ProxmoxCluster.js +52 -3
  79. package/Models/DatabaseModels/PublicNoteApprovalRequest.js +3 -3
  80. package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
  81. package/Models/DatabaseModels/PushNotificationLog.js +12 -12
  82. package/Models/DatabaseModels/Reseller.js +8 -2
  83. package/Models/DatabaseModels/ResellerPlan.js +8 -2
  84. package/Models/DatabaseModels/RunbookExecution.js +2 -2
  85. package/Models/DatabaseModels/RunbookRule.js +6 -6
  86. package/Models/DatabaseModels/ScheduledMaintenance.js +9 -6
  87. package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
  88. package/Models/DatabaseModels/ScheduledMaintenanceInternalNote.js +7 -4
  89. package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
  90. package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
  91. package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +3 -3
  92. package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +6 -6
  93. package/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js +4 -4
  94. package/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js +4 -4
  95. package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +10 -7
  96. package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
  97. package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +4 -4
  98. package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
  99. package/Models/DatabaseModels/Service.js +1 -1
  100. package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +4 -4
  101. package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +4 -4
  102. package/Models/DatabaseModels/SmsLog.js +12 -12
  103. package/Models/DatabaseModels/StatusPage.js +5 -5
  104. package/Models/DatabaseModels/StatusPageSubscriber.js +2 -2
  105. package/Models/DatabaseModels/TeamMember.js +10 -1
  106. package/Models/DatabaseModels/TelegramLog.js +12 -12
  107. package/Models/DatabaseModels/TelemetryIngestionKey.js +8 -5
  108. package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +7 -4
  109. package/Models/DatabaseModels/User.d.mts +4 -0
  110. package/Models/DatabaseModels/User.d.ts +4 -0
  111. package/Models/DatabaseModels/User.js +100 -0
  112. package/Models/DatabaseModels/UserOnCallLog.js +6 -6
  113. package/Models/DatabaseModels/UserOnCallLogTimeline.js +3 -3
  114. package/Models/DatabaseModels/UserOnCallShiftReminderLog.js +2 -2
  115. package/Models/DatabaseModels/WebhookLog.js +12 -12
  116. package/Models/DatabaseModels/WhatsAppLog.js +12 -12
  117. package/Models/DatabaseModels/WorkspaceNotificationLog.js +12 -12
  118. package/Models/DatabaseModels/WorkspaceNotificationRule.js +36 -1
  119. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
  120. package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +3 -3
  121. package/Server/Services/DatabaseService.d.mts +4 -1
  122. package/Server/Services/DatabaseService.d.ts +4 -1
  123. package/Server/Types/Database/CountBy.d.mts +1 -0
  124. package/Server/Types/Database/CountBy.d.ts +1 -0
  125. package/Server/Types/Database/UpdateLimit.d.mts +6 -0
  126. package/Server/Types/Database/UpdateLimit.d.ts +6 -0
  127. package/Types/AI/AIActionWords.d.mts +25 -1
  128. package/Types/AI/AIActionWords.d.ts +25 -1
  129. package/Types/AI/AIActionWords.js +166 -3
  130. package/Types/AI/AIActionWords.mjs +6 -0
  131. package/Types/AI/AIChatTypes.d.mts +4 -2
  132. package/Types/AI/AIChatTypes.d.ts +4 -2
  133. package/Types/AI/AIChatTypes.js +5 -0
  134. package/Types/AI/AiOutcomes.d.mts +57 -0
  135. package/Types/AI/AiOutcomes.d.ts +57 -0
  136. package/Types/AI/AiOutcomes.js +67 -0
  137. package/Types/AI/AiOutcomes.mjs +10 -0
  138. package/Types/AI/AiRunRefusal.d.mts +45 -0
  139. package/Types/AI/AiRunRefusal.d.ts +45 -0
  140. package/Types/AI/AiRunRefusal.js +187 -0
  141. package/Types/AI/AiRunRefusal.mjs +12 -0
  142. package/Types/AI/InvestigationRecording.d.mts +46 -0
  143. package/Types/AI/InvestigationRecording.d.ts +46 -0
  144. package/Types/AI/InvestigationRecording.js +42 -0
  145. package/Types/AI/InvestigationRecording.mjs +7 -0
  146. package/Types/API/HTTPResponse.d.mts +3 -0
  147. package/Types/API/HTTPResponse.d.ts +3 -0
  148. package/Types/API/HTTPResponse.js +15 -0
  149. package/Types/Analytics/ProductEvent.d.mts +6 -1
  150. package/Types/Analytics/ProductEvent.d.ts +6 -1
  151. package/Types/Analytics/ProductEvent.js +41 -0
  152. package/Types/AuditLog/AuditLogCoverage.d.mts +1 -0
  153. package/Types/AuditLog/AuditLogCoverage.d.ts +1 -0
  154. package/Types/AuditLog/AuditLogCoverage.js +4 -2
  155. package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
  156. package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
  157. package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -1
  158. package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -1
  159. package/Types/BaseDatabase/AggregationIntervalUtil.js +92 -2
  160. package/Types/BaseDatabase/ListResult.d.mts +1 -0
  161. package/Types/BaseDatabase/ListResult.d.ts +1 -0
  162. package/Types/CallAndSMS/ServerTwilioEnvironment.d.mts +47 -0
  163. package/Types/CallAndSMS/ServerTwilioEnvironment.d.ts +47 -0
  164. package/Types/CallAndSMS/ServerTwilioEnvironment.js +282 -0
  165. package/Types/CallAndSMS/ServerTwilioEnvironment.mjs +7 -0
  166. package/Types/Cloud/CloudResourceCatalog.d.mts +2 -0
  167. package/Types/Cloud/CloudResourceCatalog.d.ts +2 -0
  168. package/Types/Cloud/CloudResourceCatalog.js +33 -3
  169. package/Types/Cloud/CloudResourceCatalog.mjs +1 -0
  170. package/Types/Dashboard/DashboardAutoRefresh.d.mts +1 -0
  171. package/Types/Dashboard/DashboardAutoRefresh.d.ts +1 -0
  172. package/Types/Dashboard/DashboardAutoRefresh.js +21 -0
  173. package/Types/Dashboard/DashboardAutoRefresh.mjs +1 -0
  174. package/Types/DataObservability/DataCheckSuggestions.d.mts +25 -0
  175. package/Types/DataObservability/DataCheckSuggestions.d.ts +25 -0
  176. package/Types/DataObservability/DataCheckSuggestions.js +102 -65
  177. package/Types/DataObservability/DataCheckSuggestions.mjs +1 -0
  178. package/Types/Database/TableMetadata.d.mts +2 -0
  179. package/Types/Database/TableMetadata.d.ts +2 -0
  180. package/Types/Database/TableMetadata.js +6 -0
  181. package/Types/Date.d.mts +26 -2
  182. package/Types/Date.d.ts +26 -2
  183. package/Types/Date.js +81 -9
  184. package/Types/Date.mjs +1 -0
  185. package/Types/DateLanguage.d.mts +2 -0
  186. package/Types/DateLanguage.d.ts +2 -0
  187. package/Types/DateLanguage.js +44 -2
  188. package/Types/DateLanguage.mjs +2 -0
  189. package/Types/DirectionArrow.d.mts +7 -0
  190. package/Types/DirectionArrow.d.ts +7 -0
  191. package/Types/DirectionArrow.js +88 -0
  192. package/Types/DirectionArrow.mjs +7 -0
  193. package/Types/Docs/GlossaryTerm.d.mts +1 -0
  194. package/Types/Docs/GlossaryTerm.d.ts +1 -0
  195. package/Types/Docs/GlossaryTerm.js +2 -0
  196. package/Types/Docs/RetiredNames.d.mts +11 -0
  197. package/Types/Docs/RetiredNames.d.ts +11 -0
  198. package/Types/Docs/RetiredNames.js +139 -0
  199. package/Types/Docs/RetiredNames.mjs +3 -0
  200. package/Types/Email/ServerEmailEnvironment.d.mts +85 -0
  201. package/Types/Email/ServerEmailEnvironment.d.ts +85 -0
  202. package/Types/Email/ServerEmailEnvironment.js +793 -0
  203. package/Types/Email/ServerEmailEnvironment.mjs +14 -0
  204. package/Types/Exception/AiRunRefusalException.d.mts +6 -0
  205. package/Types/Exception/AiRunRefusalException.d.ts +6 -0
  206. package/Types/Exception/AiRunRefusalException.js +23 -0
  207. package/Types/Exception/AiRunRefusalException.mjs +2 -0
  208. package/Types/Exception/RefusalWithValues.d.mts +7 -0
  209. package/Types/Exception/RefusalWithValues.d.ts +7 -0
  210. package/Types/Exception/RefusalWithValues.js +76 -0
  211. package/Types/Exception/RefusalWithValues.mjs +3 -0
  212. package/Types/Exception/UnexplainedError.d.mts +13 -0
  213. package/Types/Exception/UnexplainedError.d.ts +13 -0
  214. package/Types/Exception/UnexplainedError.js +53 -1
  215. package/Types/Exception/UnexplainedError.mjs +1 -0
  216. package/Types/File/FileSize.d.mts +4 -1
  217. package/Types/File/FileSize.d.ts +4 -1
  218. package/Types/File/FileSize.js +18 -17
  219. package/Types/Form/FormTargetCatalog.js +2 -2
  220. package/Types/Form/FormTargetType.js +2 -2
  221. package/Types/HostCollector/HostCollector.d.mts +1 -0
  222. package/Types/HostCollector/HostCollector.d.ts +1 -0
  223. package/Types/HostCollector/HostCollector.js +26 -10
  224. package/Types/HostCollector/HostCollector.mjs +1 -0
  225. package/Types/ListData.d.mts +2 -0
  226. package/Types/ListData.d.ts +2 -0
  227. package/Types/ListData.js +4 -0
  228. package/Types/Monitor/MonitorCriteria.js +2 -2
  229. package/Types/Monitor/MonitorCriteriaInstance.js +9 -0
  230. package/Types/Monitor/MonitorNotCheckedReason.d.mts +7 -0
  231. package/Types/Monitor/MonitorNotCheckedReason.d.ts +7 -0
  232. package/Types/Monitor/MonitorNotCheckedReason.js +36 -0
  233. package/Types/Monitor/MonitorNotCheckedReason.mjs +4 -0
  234. package/Types/Monitor/MonitorStep.js +1 -1
  235. package/Types/Monitor/MonitorTemplateSyncField.d.mts +6 -0
  236. package/Types/Monitor/MonitorTemplateSyncField.d.ts +6 -0
  237. package/Types/Monitor/MonitorTemplateSyncField.js +106 -64
  238. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.mts +1 -0
  239. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.ts +1 -0
  240. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.js +11 -3
  241. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +6 -0
  242. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +6 -0
  243. package/Types/Monitor/UptimeHistoryLabels.js +2 -2
  244. package/Types/Monitor/WhoIsTold.d.mts +3 -1
  245. package/Types/Monitor/WhoIsTold.d.ts +3 -1
  246. package/Types/Monitor/WhoIsTold.js +2 -1
  247. package/Types/NotificationRule/PagingLadder.d.mts +137 -0
  248. package/Types/NotificationRule/PagingLadder.d.ts +137 -0
  249. package/Types/NotificationRule/PagingLadder.js +682 -0
  250. package/Types/NotificationRule/PagingLadder.mjs +28 -0
  251. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +1 -1
  252. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.mts +1 -0
  253. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.ts +1 -0
  254. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.js +12 -9
  255. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.mjs +1 -0
  256. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +3 -1
  257. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +3 -1
  258. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +24 -6
  259. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +1 -0
  260. package/Types/OnCallDutyPolicy/OnCallPageLine.d.mts +26 -0
  261. package/Types/OnCallDutyPolicy/OnCallPageLine.d.ts +26 -0
  262. package/Types/OnCallDutyPolicy/OnCallPageLine.js +136 -0
  263. package/Types/OnCallDutyPolicy/OnCallPageLine.mjs +18 -0
  264. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
  265. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
  266. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.mts +12 -0
  267. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.ts +12 -0
  268. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.js +38 -0
  269. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.mjs +3 -0
  270. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +44 -0
  271. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +44 -0
  272. package/Types/OnCallDutyPolicy/OnCallTestPage.js +96 -5
  273. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
  274. package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.mts +19 -0
  275. package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.ts +19 -0
  276. package/Types/OnCallDutyPolicy/OnCallTestPageLine.js +222 -0
  277. package/Types/OnCallDutyPolicy/OnCallTestPageLine.mjs +6 -0
  278. package/Types/OnCallDutyPolicy/ScheduleLayerDefaults.js +5 -2
  279. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +92 -0
  280. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +92 -0
  281. package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +512 -0
  282. package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +7 -0
  283. package/Types/OnCallDutyPolicy/UserOverrideCoverRequest.js +9 -1
  284. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +23 -0
  285. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +23 -0
  286. package/Types/OnCallDutyPolicy/UserOverrideEdit.js +105 -0
  287. package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +6 -0
  288. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +64 -0
  289. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +64 -0
  290. package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +237 -0
  291. package/Types/OnCallDutyPolicy/UserOverrideOverlap.mjs +14 -0
  292. package/Types/Permission.d.mts +2 -2
  293. package/Types/Permission.d.ts +2 -2
  294. package/Types/Permission.js +196 -195
  295. package/Types/Probe/ProbeCapability.d.mts +2 -1
  296. package/Types/Probe/ProbeCapability.d.ts +2 -1
  297. package/Types/Probe/ProbeCapability.js +10 -0
  298. package/Types/Product/ProductCatalog.d.mts +10 -0
  299. package/Types/Product/ProductCatalog.d.ts +10 -0
  300. package/Types/Product/ProductCatalog.js +208 -0
  301. package/Types/Product/ProductCatalog.mjs +6 -0
  302. package/Types/Product/ProductOfTable.d.mts +3 -0
  303. package/Types/Product/ProductOfTable.d.ts +3 -0
  304. package/Types/Product/ProductOfTable.js +68 -0
  305. package/Types/Product/ProductOfTable.mjs +3 -0
  306. package/Types/Product/ProjectProductsAnswer.d.mts +3 -0
  307. package/Types/Product/ProjectProductsAnswer.d.ts +3 -0
  308. package/Types/Product/ProjectProductsAnswer.js +35 -2
  309. package/Types/Product/ProjectProductsAnswer.mjs +1 -0
  310. package/Types/Product/ServerProducts.d.mts +65 -0
  311. package/Types/Product/ServerProducts.d.ts +65 -0
  312. package/Types/Product/ServerProducts.js +383 -0
  313. package/Types/Product/ServerProducts.mjs +26 -0
  314. package/Types/Product/ServerProductsAnswer.d.mts +21 -0
  315. package/Types/Product/ServerProductsAnswer.d.ts +21 -0
  316. package/Types/Product/ServerProductsAnswer.js +78 -0
  317. package/Types/Product/ServerProductsAnswer.mjs +5 -0
  318. package/Types/ProductFeedback/ProductFeedback.d.mts +3 -1
  319. package/Types/ProductFeedback/ProductFeedback.d.ts +3 -1
  320. package/Types/ProductFeedback/ProductFeedback.js +8 -0
  321. package/Types/ReaderLanguage.d.mts +1 -0
  322. package/Types/ReaderLanguage.d.ts +1 -0
  323. package/Types/ReaderLanguage.js +13 -1
  324. package/Types/ReaderLanguage.mjs +1 -0
  325. package/Types/Rules/RuleRun.js +2 -2
  326. package/Types/Rum/SessionReplayCustomEvents.d.mts +1 -0
  327. package/Types/Rum/SessionReplayCustomEvents.d.ts +1 -0
  328. package/Types/SampleProject/SampleProject.d.mts +54 -0
  329. package/Types/SampleProject/SampleProject.d.ts +54 -0
  330. package/Types/SampleProject/SampleProject.js +177 -0
  331. package/Types/SampleProject/SampleProject.mjs +22 -0
  332. package/Types/SampleProject/SampleProjectContent.d.mts +127 -0
  333. package/Types/SampleProject/SampleProjectContent.d.ts +127 -0
  334. package/Types/SampleProject/SampleProjectContent.js +397 -0
  335. package/Types/SampleProject/SampleProjectContent.mjs +18 -0
  336. package/Types/ScheduledMaintenance/MaintenanceCalendar.js +1 -1
  337. package/Types/ServerSending/ServerSendingStatus.d.mts +7 -0
  338. package/Types/ServerSending/ServerSendingStatus.d.ts +7 -0
  339. package/Types/ServerSending/ServerSendingStatus.js +49 -2
  340. package/Types/ServerSetup/ServerSetupChecklist.js +3 -3
  341. package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
  342. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.mts +8 -0
  343. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.ts +8 -0
  344. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +50 -0
  345. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.mjs +3 -0
  346. package/Types/StatusPage/PublicNoteSubscriberNotificationDefault.js +1 -1
  347. package/Types/Telemetry/CompatibleIngest.d.mts +20 -0
  348. package/Types/Telemetry/CompatibleIngest.d.ts +20 -0
  349. package/Types/Telemetry/CompatibleIngest.js +123 -0
  350. package/Types/Telemetry/CompatibleIngest.mjs +21 -0
  351. package/Types/Telemetry/TelemetryIngestSurface.d.mts +5 -0
  352. package/Types/Telemetry/TelemetryIngestSurface.d.ts +5 -0
  353. package/Types/Telemetry/TelemetryIngestSurface.js +54 -12
  354. package/Types/TimezoneAlias.d.mts +1 -0
  355. package/Types/TimezoneAlias.d.ts +1 -0
  356. package/Types/TimezoneAlias.js +13 -0
  357. package/Types/Translator.d.mts +1 -0
  358. package/Types/Translator.d.ts +1 -0
  359. package/Types/Translator.js +414 -50
  360. package/Types/Translator.mjs +1 -0
  361. package/Types/UsedBy/UsedBy.d.mts +103 -0
  362. package/Types/UsedBy/UsedBy.d.ts +103 -0
  363. package/Types/UsedBy/UsedBy.js +389 -0
  364. package/Types/UsedBy/UsedBy.mjs +20 -0
  365. package/Types/UsedBy/UsedByServerProducts.d.mts +4 -0
  366. package/Types/UsedBy/UsedByServerProducts.d.ts +4 -0
  367. package/Types/UsedBy/UsedByServerProducts.js +48 -0
  368. package/Types/UsedBy/UsedByServerProducts.mjs +3 -0
  369. package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +6 -0
  370. package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +6 -0
  371. package/Types/WelcomeChecklist/WelcomeChecklist.js +54 -2
  372. package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
  373. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +1 -0
  374. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +1 -0
  375. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +3 -0
  376. package/Types/Workflow/PassedOnFields.js +2 -1
  377. package/Types/Workflow/RunRecord.js +1 -1
  378. package/Types/Workflow/Templates.js +3 -3
  379. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +2 -0
  380. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +2 -0
  381. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +28 -1
  382. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +28 -1
  383. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +84 -0
  384. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +84 -0
  385. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +456 -0
  386. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.mjs +5 -0
  387. package/Utils/AI/MeaningMatch.d.mts +36 -0
  388. package/Utils/AI/MeaningMatch.d.ts +36 -0
  389. package/Utils/AI/MeaningMatch.js +535 -0
  390. package/Utils/AI/MeaningMatch.mjs +7 -0
  391. package/Utils/ArchivableValues.js +1 -1
  392. package/Utils/AuditLog/AuditLogValues.js +2 -2
  393. package/Utils/Dashboard/ClockWidgetFormat.d.mts +14 -2
  394. package/Utils/Dashboard/ClockWidgetFormat.d.ts +14 -2
  395. package/Utils/Dashboard/ClockWidgetFormat.js +105 -2
  396. package/Utils/Dashboard/DashboardViewConfigSignature.d.mts +3 -0
  397. package/Utils/Dashboard/DashboardViewConfigSignature.d.ts +3 -0
  398. package/Utils/Dashboard/DashboardViewConfigSignature.js +45 -0
  399. package/Utils/Dashboard/DashboardViewConfigSignature.mjs +3 -0
  400. package/Utils/Dashboard/ValueWidgetSeries.d.mts +2 -0
  401. package/Utils/Dashboard/ValueWidgetSeries.d.ts +2 -0
  402. package/Utils/Dashboard/ValueWidgetSeries.js +75 -0
  403. package/Utils/DataSecurity/TextScanner.js +2 -2
  404. package/Utils/DeveloperDocs/AiAssistantExamples.js +4 -4
  405. package/Utils/DeveloperDocs/CliCommands.d.mts +1 -0
  406. package/Utils/DeveloperDocs/CliCommands.d.ts +1 -0
  407. package/Utils/DeveloperDocs/CliCommands.js +2 -1
  408. package/Utils/DeveloperDocs/CliResources.js +2 -1
  409. package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
  410. package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
  411. package/Utils/DeveloperDocs/TerraformSchema.js +3 -1
  412. package/Utils/GuidedSetup/StatusPageRecords.d.mts +5 -0
  413. package/Utils/GuidedSetup/StatusPageRecords.d.ts +5 -0
  414. package/Utils/GuidedSetup/StatusPageRecords.js +27 -2
  415. package/Utils/GuidedSetup/StatusPageRecords.mjs +1 -0
  416. package/Utils/GuidedSetup/WebsiteMonitorRecords.js +6 -0
  417. package/Utils/HostAddressUtil.d.mts +1 -0
  418. package/Utils/HostAddressUtil.d.ts +1 -0
  419. package/Utils/HostAddressUtil.js +30 -0
  420. package/Utils/LinearRegExp/LinearRegExp.js +5 -1
  421. package/Utils/Markdown/LinkReferenceDefinitions.d.mts +8 -0
  422. package/Utils/Markdown/LinkReferenceDefinitions.d.ts +8 -0
  423. package/Utils/Markdown/LinkReferenceDefinitions.js +1493 -131
  424. package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
  425. package/Utils/Markdown/MarkdownTableCell.js +2 -1
  426. package/Utils/Markdown/OverLongText.js +523 -5
  427. package/Utils/Markdown/SlowMarkdown.d.mts +14 -0
  428. package/Utils/Markdown/SlowMarkdown.d.ts +14 -0
  429. package/Utils/Markdown/SlowMarkdown.js +595 -11
  430. package/Utils/Markdown/SlowMarkdown.mjs +6 -0
  431. package/Utils/Milliseconds.d.mts +7 -0
  432. package/Utils/Milliseconds.d.ts +7 -0
  433. package/Utils/Milliseconds.js +60 -0
  434. package/Utils/Milliseconds.mjs +4 -0
  435. package/Utils/ModelApiName.d.mts +11 -0
  436. package/Utils/ModelApiName.d.ts +11 -0
  437. package/Utils/ModelApiName.js +72 -0
  438. package/Utils/ModelApiName.mjs +5 -0
  439. package/Utils/Monitor/DeviceMacLearningUtil.d.mts +2 -1
  440. package/Utils/Monitor/DeviceMacLearningUtil.d.ts +2 -1
  441. package/Utils/Monitor/DeviceMacLearningUtil.js +26 -0
  442. package/Utils/Monitor/EndpointAttachmentUtil.d.mts +8 -0
  443. package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
  444. package/Utils/Monitor/EndpointAttachmentUtil.js +97 -22
  445. package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -0
  446. package/Utils/Monitor/ExternalStatusPageReading.d.mts +3 -0
  447. package/Utils/Monitor/ExternalStatusPageReading.d.ts +3 -0
  448. package/Utils/Monitor/ExternalStatusPageReading.js +35 -1
  449. package/Utils/Monitor/ExternalStatusPageReading.mjs +2 -0
  450. package/Utils/Monitor/InterfaceInventoryUtil.d.mts +40 -0
  451. package/Utils/Monitor/InterfaceInventoryUtil.d.ts +40 -0
  452. package/Utils/Monitor/InterfaceInventoryUtil.js +217 -5
  453. package/Utils/Monitor/InterfaceInventoryUtil.mjs +8 -0
  454. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +63 -29
  455. package/Utils/Monitor/MonitorOverviewProbeUtil.js +13 -2
  456. package/Utils/Monitor/MonitorRootCauseWording.d.mts +2 -0
  457. package/Utils/Monitor/MonitorRootCauseWording.d.ts +2 -0
  458. package/Utils/Monitor/MonitorRootCauseWording.js +58 -4
  459. package/Utils/Monitor/MonitorTemplateLinkRefusal.d.mts +9 -0
  460. package/Utils/Monitor/MonitorTemplateLinkRefusal.d.ts +9 -0
  461. package/Utils/Monitor/MonitorTemplateLinkRefusal.js +45 -0
  462. package/Utils/Monitor/MonitorTemplateLinkRefusal.mjs +6 -0
  463. package/Utils/Monitor/MonitoringOff.d.mts +2 -0
  464. package/Utils/Monitor/MonitoringOff.d.ts +2 -0
  465. package/Utils/Monitor/MonitoringOff.js +21 -0
  466. package/Utils/Monitor/NetworkTopologyUtil.d.mts +2 -1
  467. package/Utils/Monitor/NetworkTopologyUtil.d.ts +2 -1
  468. package/Utils/Monitor/NetworkTopologyUtil.js +10 -0
  469. package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +2 -1
  470. package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +2 -1
  471. package/Utils/Monitor/NotOperationalMonitorQuery.js +23 -4
  472. package/Utils/Monitor/ProbeFailureReading.d.mts +14 -0
  473. package/Utils/Monitor/ProbeFailureReading.d.ts +14 -0
  474. package/Utils/Monitor/ProbeFailureReading.js +137 -0
  475. package/Utils/Monitor/ProbeFailureReading.mjs +7 -0
  476. package/Utils/NetworkDevice/BoundMonitorNotChecked.d.mts +9 -0
  477. package/Utils/NetworkDevice/BoundMonitorNotChecked.d.ts +9 -0
  478. package/Utils/NetworkDevice/BoundMonitorNotChecked.js +15 -0
  479. package/Utils/NetworkDevice/BoundMonitorNotChecked.mjs +2 -0
  480. package/Utils/OpenStack/OpenStackCheckName.js +2 -1
  481. package/Utils/OpenStack/OpenStackLogScrub.js +1 -1
  482. package/Utils/OpenStack/OpenStackLogs.js +3 -2
  483. package/Utils/OpenStack/OpenStackTraces.js +2 -1
  484. package/Utils/Project/NextNumber.js +1 -1
  485. package/Utils/Project/NotificationChannels.js +5 -5
  486. package/Utils/Project/ProjectBalance.js +2 -2
  487. package/Utils/Project/TwilioAccount.js +2 -2
  488. package/Utils/PromQL/PromQLAst.d.mts +159 -0
  489. package/Utils/PromQL/PromQLAst.d.ts +159 -0
  490. package/Utils/PromQL/PromQLAst.js +118 -0
  491. package/Utils/PromQL/PromQLAst.mjs +12 -0
  492. package/Utils/PromQL/PromQLDuration.d.mts +2 -0
  493. package/Utils/PromQL/PromQLDuration.d.ts +2 -0
  494. package/Utils/PromQL/PromQLDuration.js +78 -0
  495. package/Utils/PromQL/PromQLDuration.mjs +3 -0
  496. package/Utils/PromQL/PromQLEngine.d.mts +15 -0
  497. package/Utils/PromQL/PromQLEngine.d.ts +15 -0
  498. package/Utils/PromQL/PromQLEngine.js +965 -0
  499. package/Utils/PromQL/PromQLEngine.mjs +7 -0
  500. package/Utils/PromQL/PromQLEngineTypes.d.mts +84 -0
  501. package/Utils/PromQL/PromQLEngineTypes.d.ts +84 -0
  502. package/Utils/PromQL/PromQLEngineTypes.js +10 -0
  503. package/Utils/PromQL/PromQLEngineTypes.mjs +2 -0
  504. package/Utils/PromQL/PromQLError.d.mts +11 -0
  505. package/Utils/PromQL/PromQLError.d.ts +11 -0
  506. package/Utils/PromQL/PromQLError.js +27 -0
  507. package/Utils/PromQL/PromQLError.mjs +3 -0
  508. package/Utils/PromQL/PromQLFunctionEvaluators.d.mts +8 -0
  509. package/Utils/PromQL/PromQLFunctionEvaluators.d.ts +8 -0
  510. package/Utils/PromQL/PromQLFunctionEvaluators.js +773 -0
  511. package/Utils/PromQL/PromQLFunctionEvaluators.mjs +3 -0
  512. package/Utils/PromQL/PromQLFunctions.d.mts +10 -0
  513. package/Utils/PromQL/PromQLFunctions.d.ts +10 -0
  514. package/Utils/PromQL/PromQLFunctions.js +127 -0
  515. package/Utils/PromQL/PromQLFunctions.mjs +4 -0
  516. package/Utils/PromQL/PromQLLabels.d.mts +11 -0
  517. package/Utils/PromQL/PromQLLabels.d.ts +11 -0
  518. package/Utils/PromQL/PromQLLabels.js +218 -0
  519. package/Utils/PromQL/PromQLLabels.mjs +9 -0
  520. package/Utils/PromQL/PromQLLexer.d.mts +39 -0
  521. package/Utils/PromQL/PromQLLexer.d.ts +39 -0
  522. package/Utils/PromQL/PromQLLexer.js +391 -0
  523. package/Utils/PromQL/PromQLLexer.mjs +3 -0
  524. package/Utils/PromQL/PromQLMath.d.mts +19 -0
  525. package/Utils/PromQL/PromQLMath.d.ts +19 -0
  526. package/Utils/PromQL/PromQLMath.js +200 -0
  527. package/Utils/PromQL/PromQLMath.mjs +9 -0
  528. package/Utils/PromQL/PromQLMetricNames.d.mts +21 -0
  529. package/Utils/PromQL/PromQLMetricNames.d.ts +21 -0
  530. package/Utils/PromQL/PromQLMetricNames.js +199 -0
  531. package/Utils/PromQL/PromQLMetricNames.mjs +8 -0
  532. package/Utils/PromQL/PromQLParser.d.mts +4 -0
  533. package/Utils/PromQL/PromQLParser.d.ts +4 -0
  534. package/Utils/PromQL/PromQLParser.js +831 -0
  535. package/Utils/PromQL/PromQLParser.mjs +4 -0
  536. package/Utils/PromQL/PromQLRegex.d.mts +9 -0
  537. package/Utils/PromQL/PromQLRegex.d.ts +9 -0
  538. package/Utils/PromQL/PromQLRegex.js +74 -0
  539. package/Utils/PromQL/PromQLRegex.mjs +2 -0
  540. package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
  541. package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
  542. package/Utils/PromQL/PrometheusResponse.js +90 -0
  543. package/Utils/PromQL/PrometheusResponse.mjs +3 -0
  544. package/Utils/Rum/PathInSentence.d.mts +5 -0
  545. package/Utils/Rum/PathInSentence.d.ts +5 -0
  546. package/Utils/Rum/PathInSentence.js +46 -0
  547. package/Utils/Rum/PathInSentence.mjs +6 -0
  548. package/Utils/Rum/UrlScrubber.d.mts +4 -0
  549. package/Utils/Rum/UrlScrubber.d.ts +4 -0
  550. package/Utils/Rum/UrlScrubber.js +143 -3
  551. package/Utils/Rum/UserFlow.d.mts +1 -1
  552. package/Utils/Rum/UserFlow.d.ts +1 -1
  553. package/Utils/Rum/UserFlow.js +180 -25
  554. package/Utils/Rum/UserFlow.mjs +1 -1
  555. package/Utils/Runbook/RunbookStepsSignature.d.mts +3 -0
  556. package/Utils/Runbook/RunbookStepsSignature.d.ts +3 -0
  557. package/Utils/Runbook/RunbookStepsSignature.js +30 -0
  558. package/Utils/Runbook/RunbookStepsSignature.mjs +3 -0
  559. package/Utils/ScheduledMaintenanceStart.d.mts +3 -0
  560. package/Utils/ScheduledMaintenanceStart.d.ts +3 -0
  561. package/Utils/ScheduledMaintenanceStart.js +9 -0
  562. package/Utils/Schema/ModelSchema.js +10 -1
  563. package/Utils/Schema/TypeSchemas.js +6 -0
  564. package/Utils/Slo/SloDuration.d.mts +5 -2
  565. package/Utils/Slo/SloDuration.d.ts +5 -2
  566. package/Utils/Slo/SloDuration.js +11 -6
  567. package/Utils/Slo/SloHealth.js +1 -1
  568. package/Utils/StateOrder.js +1 -4
  569. package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
  570. package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
  571. package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
  572. package/Utils/Telemetry/HeartbeatAvailability.js +118 -26
  573. package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
  574. package/Utils/Uptime/UptimeMaintenanceUtil.js +2 -1
  575. package/Utils/ValueFormatter.d.mts +8 -6
  576. package/Utils/ValueFormatter.d.ts +8 -6
  577. package/Utils/ValueFormatter.js +145 -0
  578. package/package.json +1 -1
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  const FeedMarkdown_1 = __importStar(require("../Markdown/FeedMarkdown"));
37
37
  const EvaluationSentence_1 = require("../../Types/Monitor/EvaluationSentence");
38
38
  const Translator_1 = require("../../Types/Translator");
39
+ const ProbeFailureReading_1 = require("./ProbeFailureReading");
39
40
  /*
40
41
  * THE ROOT CAUSE A MONITOR WROTE, IN THE READER'S LANGUAGE (issue #6542).
41
42
  *
@@ -61,6 +62,12 @@ const Translator_1 = require("../../Types/Translator");
61
62
  * written. A root cause somebody edited reads as they wrote it, but for a
62
63
  * line that is still OneUptime's own.
63
64
  *
65
+ * Two of the check's values are OneUptime's own words too, and read in the
66
+ * reader's language when the whole value is exactly them: the probe's
67
+ * timeout sentence after **Cause** ("Request was tried 3 times and it
68
+ * timed out.", ProbeFailureReading), and the phase after "- Failed Phase:"
69
+ * (DNS Resolution, TLS Handshake).
70
+ *
64
71
  * Line by line, and only a whole line, or a label at a line's start, is
65
72
  * ever replaced: nothing else in the text is read as one of OneUptime's.
66
73
  * A line that is replaced is written with mdText, as the engine wrote it:
@@ -129,6 +136,10 @@ const FACT_LABEL_SET = new Set(FACT_LABELS);
129
136
  // What an All criteria's root cause says before its findings.
130
137
  const ALL_FILTERS_MET = (0, Translator_1.translationKey)("All filters met.");
131
138
  const FILTER_CONDITIONS_MET = "Filter Conditions Met";
139
+ // "**Cause**: <why the check failed>" - the probe's failure cause.
140
+ const CAUSE = "Cause";
141
+ // "- Failed Phase: <the phase a request broke in>".
142
+ const FAILED_PHASE = "Failed Phase";
132
143
  /*
133
144
  * "**Label**" or "**Label**: rest" - a label of at most 80 characters with
134
145
  * no asterisk or line break in it, so the match is linear in the line.
@@ -177,6 +188,13 @@ class MonitorRootCauseWording {
177
188
  const stored = boldLabel[3] || "";
178
189
  // What follows the label: as stored, unless this language words it.
179
190
  let rest = FeedMarkdown_1.default.asMarkdown(stored);
191
+ // "**Cause**: <the probe's timeout sentence>", worded with its count.
192
+ if (label === CAUSE && stored.startsWith(" ")) {
193
+ const worded = MonitorRootCauseWording.wordProbeTimeout(stored.slice(1), translator);
194
+ if (worded !== null) {
195
+ rest = (0, FeedMarkdown_1.mdText) ` ${worded}`;
196
+ }
197
+ }
180
198
  // "**Filter Conditions Met**: <the finding, or All filters met.>"
181
199
  if (label === FILTER_CONDITIONS_MET && stored.startsWith(" ")) {
182
200
  const said = stored.slice(1);
@@ -199,10 +217,18 @@ class MonitorRootCauseWording {
199
217
  if (fact && FACT_LABEL_SET.has(fact[1])) {
200
218
  const label = fact[1];
201
219
  const stored = fact[2] || "";
202
- // OneUptime's own yes or no is worded; any other value is as stored.
203
- const value = YES_NO_FACTS.has(label) && (stored === "Yes" || stored === "No")
204
- ? MonitorRootCauseWording.word(stored, translator)
205
- : FeedMarkdown_1.default.asMarkdown(stored);
220
+ /*
221
+ * OneUptime's own yes or no, and the phase a request broke in, are
222
+ * worded; any other value is as stored.
223
+ */
224
+ let value = FeedMarkdown_1.default.asMarkdown(stored);
225
+ if (YES_NO_FACTS.has(label) &&
226
+ (stored === "Yes" || stored === "No")) {
227
+ value = MonitorRootCauseWording.word(stored, translator);
228
+ }
229
+ else if (label === FAILED_PHASE) {
230
+ value = MonitorRootCauseWording.wordFailedPhase(stored, translator);
231
+ }
206
232
  return (0, FeedMarkdown_1.mdText) `- ${MonitorRootCauseWording.word(label, translator)}: ${value}`.toString();
207
233
  }
208
234
  // "- <a finding>", under All filters met.
@@ -223,6 +249,34 @@ class MonitorRootCauseWording {
223
249
  static word(text, translator) {
224
250
  return translator.translateText(text) || text;
225
251
  }
252
+ /*
253
+ * The probe's timeout sentence, as the engine placed it after **Cause**
254
+ * (written with mdText, so compared written the same way), in the
255
+ * reader's language with its count in the reader's digits. Null for any
256
+ * other cause, and when the reader's language does not word it.
257
+ */
258
+ static wordProbeTimeout(stored, translator) {
259
+ const triedCount = (0, ProbeFailureReading_1.readProbeTimeoutFailureCause)(stored);
260
+ if (triedCount === null ||
261
+ asMarkdownText((0, ProbeFailureReading_1.writeProbeTimeoutFailureCause)(triedCount)).toString() !==
262
+ stored ||
263
+ !translator.hasTranslation(ProbeFailureReading_1.PROBE_TIMEOUT_FAILURE_CAUSE.other)) {
264
+ return null;
265
+ }
266
+ return translator.translatePlural(ProbeFailureReading_1.PROBE_TIMEOUT_FAILURE_CAUSE, triedCount);
267
+ }
268
+ /*
269
+ * The phase a request broke in: a phase the probe names, in the reader's
270
+ * word; any other value as stored.
271
+ */
272
+ static wordFailedPhase(stored, translator) {
273
+ const phase = stored.trim();
274
+ const worded = (0, ProbeFailureReading_1.getRequestFailedPhaseText)({
275
+ translator: translator,
276
+ failedPhase: phase,
277
+ });
278
+ return phase && worded !== phase ? worded : FeedMarkdown_1.default.asMarkdown(stored);
279
+ }
226
280
  // Each finding with a sentence its reader's language words.
227
281
  static getWordedFindings(data) {
228
282
  const worded = [];
@@ -0,0 +1,9 @@
1
+ import { RefusalWithValues } from "../../Types/Exception/RefusalWithValues.mjs";
2
+ export declare const MONITOR_NOT_FOUND_REFUSAL: string;
3
+ export declare const MONITOR_IN_ANOTHER_PROJECT_REFUSAL: string;
4
+ export declare const MONITOR_NOT_LINKED_REFUSAL: string;
5
+ export declare const MONITOR_TYPE_MISMATCH_REFUSAL: RefusalWithValues;
6
+ export declare const getMonitorTypeMismatchRefusal: (data: {
7
+ monitorType: string;
8
+ templateType: string;
9
+ }) => string;
@@ -0,0 +1,9 @@
1
+ import { RefusalWithValues } from "../../Types/Exception/RefusalWithValues";
2
+ export declare const MONITOR_NOT_FOUND_REFUSAL: string;
3
+ export declare const MONITOR_IN_ANOTHER_PROJECT_REFUSAL: string;
4
+ export declare const MONITOR_NOT_LINKED_REFUSAL: string;
5
+ export declare const MONITOR_TYPE_MISMATCH_REFUSAL: RefusalWithValues;
6
+ export declare const getMonitorTypeMismatchRefusal: (data: {
7
+ monitorType: string;
8
+ templateType: string;
9
+ }) => string;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMonitorTypeMismatchRefusal = exports.MONITOR_TYPE_MISMATCH_REFUSAL = exports.MONITOR_NOT_LINKED_REFUSAL = exports.MONITOR_IN_ANOTHER_PROJECT_REFUSAL = exports.MONITOR_NOT_FOUND_REFUSAL = void 0;
4
+ const RefusalWithValues_1 = require("../../Types/Exception/RefusalWithValues");
5
+ const Translator_1 = require("../../Types/Translator");
6
+ /*
7
+ * WHY A MONITOR CANNOT BE LINKED TO A TEMPLATE, SYNCED FROM IT OR UNLINKED
8
+ * (#7678).
9
+ *
10
+ * MonitorTemplateService refuses with these, and the template's page shows
11
+ * them: Link Existing Monitors says why each monitor it could not link was
12
+ * refused, and Sync from Template and Unlink from Template say why they did
13
+ * not finish. They were fragments ("Monitor not found", "Monitor and
14
+ * template belong to different projects") and a sentence with the two types
15
+ * inside it ("Monitor type "Ping" does not match template type "API""), so
16
+ * the page said them in English in every language. Each is a whole sentence
17
+ * now, and a key of the Dashboard's locales (this directory is a source of
18
+ * its string extractor). The type mismatch keeps its two types as
19
+ * placeholders (RefusalWithValues): the Dashboard reads them back out of
20
+ * the English and says the sentence with the reader's words for them.
21
+ *
22
+ * React-free and server-safe: the server throws these, the Dashboard reads
23
+ * them.
24
+ */
25
+ // The monitor is gone, or the caller may not see it.
26
+ exports.MONITOR_NOT_FOUND_REFUSAL = (0, Translator_1.translationKey)("This monitor does not exist in this project, or you do not have access to it.");
27
+ exports.MONITOR_IN_ANOTHER_PROJECT_REFUSAL = (0, Translator_1.translationKey)("This monitor and this template are in different projects.");
28
+ // Sync from Template and Unlink from Template reach only the template's own monitors.
29
+ exports.MONITOR_NOT_LINKED_REFUSAL = (0, Translator_1.translationKey)("This monitor is not linked to this template.");
30
+ /*
31
+ * A template links only monitors of its own type: its criteria are written
32
+ * for that type.
33
+ */
34
+ exports.MONITOR_TYPE_MISMATCH_REFUSAL = {
35
+ template: (0, Translator_1.translationKey)("This monitor's type is {{monitorType}}, and this template's type is {{templateType}}. Only monitors of the template's type can be linked to it."),
36
+ terms: ["monitorType", "templateType"],
37
+ };
38
+ // The type mismatch as the server answers it: in English, with the two types.
39
+ const getMonitorTypeMismatchRefusal = (data) => {
40
+ return (0, RefusalWithValues_1.getRefusalText)(exports.MONITOR_TYPE_MISMATCH_REFUSAL, {
41
+ monitorType: data.monitorType,
42
+ templateType: data.templateType,
43
+ });
44
+ };
45
+ exports.getMonitorTypeMismatchRefusal = getMonitorTypeMismatchRefusal;
@@ -0,0 +1,6 @@
1
+ import commonJsModule from "./MonitorTemplateLinkRefusal.js";
2
+ export const MONITOR_IN_ANOTHER_PROJECT_REFUSAL = commonJsModule.MONITOR_IN_ANOTHER_PROJECT_REFUSAL;
3
+ export const MONITOR_NOT_FOUND_REFUSAL = commonJsModule.MONITOR_NOT_FOUND_REFUSAL;
4
+ export const MONITOR_NOT_LINKED_REFUSAL = commonJsModule.MONITOR_NOT_LINKED_REFUSAL;
5
+ export const MONITOR_TYPE_MISMATCH_REFUSAL = commonJsModule.MONITOR_TYPE_MISMATCH_REFUSAL;
6
+ export const getMonitorTypeMismatchRefusal = commonJsModule.getMonitorTypeMismatchRefusal;
@@ -1,5 +1,6 @@
1
1
  import Monitor from "../../Models/DatabaseModels/Monitor.mjs";
2
2
  import Query from "../../Types/BaseDatabase/Query.mjs";
3
+ import MonitorNotCheckedReason from "../../Types/Monitor/MonitorNotCheckedReason.mjs";
3
4
  export declare const MONITORING_OFF_SELECT: {
4
5
  disableActiveMonitoring: true;
5
6
  };
@@ -17,4 +18,5 @@ export default class MonitoringOff {
17
18
  static isOff(monitor: MonitoringOffFlags | null | undefined): boolean;
18
19
  static getMonitoredQuery(): Query<Monitor>;
19
20
  static isMonitored(monitor: MonitoredFlags | null | undefined): boolean;
21
+ static getNotCheckedReason(monitor: MonitoredFlags | null | undefined): MonitorNotCheckedReason | null;
20
22
  }
@@ -1,5 +1,6 @@
1
1
  import Monitor from "../../Models/DatabaseModels/Monitor";
2
2
  import Query from "../../Types/BaseDatabase/Query";
3
+ import MonitorNotCheckedReason from "../../Types/Monitor/MonitorNotCheckedReason";
3
4
  export declare const MONITORING_OFF_SELECT: {
4
5
  disableActiveMonitoring: true;
5
6
  };
@@ -17,4 +18,5 @@ export default class MonitoringOff {
17
18
  static isOff(monitor: MonitoringOffFlags | null | undefined): boolean;
18
19
  static getMonitoredQuery(): Query<Monitor>;
19
20
  static isMonitored(monitor: MonitoredFlags | null | undefined): boolean;
21
+ static getNotCheckedReason(monitor: MonitoredFlags | null | undefined): MonitorNotCheckedReason | null;
20
22
  }
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.MONITORED_SELECT = exports.MONITORING_OFF_SELECT = void 0;
7
+ const MonitorNotCheckedReason_1 = __importDefault(require("../../Types/Monitor/MonitorNotCheckedReason"));
4
8
  /*
5
9
  * A MONITOR WHOSE MONITORING IS TURNED OFF.
6
10
  *
@@ -77,5 +81,22 @@ class MonitoringOff {
77
81
  static isMonitored(monitor) {
78
82
  return (monitor === null || monitor === void 0 ? void 0 : monitor.isArchived) !== true && !MonitoringOff.isOff(monitor);
79
83
  }
84
+ /*
85
+ * Why nothing checks the monitor (read with MONITORED_SELECT), or null
86
+ * when it is checked - exactly when isMonitored is false, so the two never
87
+ * disagree. Archived wins when both are set: unarchiving is what puts the
88
+ * monitor back, and its switch only matters after that. The device pages'
89
+ * "Monitor archived" and "Monitoring off" qualifiers and the Network Map's
90
+ * device nodes say this reason (issue #7346).
91
+ */
92
+ static getNotCheckedReason(monitor) {
93
+ if ((monitor === null || monitor === void 0 ? void 0 : monitor.isArchived) === true) {
94
+ return MonitorNotCheckedReason_1.default.MonitorArchived;
95
+ }
96
+ if (MonitoringOff.isOff(monitor)) {
97
+ return MonitorNotCheckedReason_1.default.MonitoringOff;
98
+ }
99
+ return null;
100
+ }
80
101
  }
81
102
  exports.default = MonitoringOff;
@@ -1,4 +1,4 @@
1
- import NetworkTopology, { NetworkTopologyNodeStatus } from "../../Types/Monitor/SnmpMonitor/NetworkTopology.mjs";
1
+ import NetworkTopology, { NetworkTopologyMonitorNotChecked, NetworkTopologyNodeStatus } from "../../Types/Monitor/SnmpMonitor/NetworkTopology.mjs";
2
2
  import LldpNeighbor from "../../Types/Monitor/SnmpMonitor/LldpNeighbor.mjs";
3
3
  import CdpNeighbor from "../../Types/Monitor/SnmpMonitor/CdpNeighbor.mjs";
4
4
  import { TopologyDeviceRoleInput } from "./NetworkDeviceRoleCatalog.mjs";
@@ -32,6 +32,7 @@ export interface TopologyDeviceInput {
32
32
  controllerProvider?: string | undefined;
33
33
  isEndpointCollectionEnabled?: boolean | undefined;
34
34
  isDescribedByController?: boolean | undefined;
35
+ monitorNotChecked?: NetworkTopologyMonitorNotChecked | undefined;
35
36
  }
36
37
  export interface TopologyInterfaceInput {
37
38
  networkDeviceId: string;
@@ -1,4 +1,4 @@
1
- import NetworkTopology, { NetworkTopologyNodeStatus } from "../../Types/Monitor/SnmpMonitor/NetworkTopology";
1
+ import NetworkTopology, { NetworkTopologyMonitorNotChecked, NetworkTopologyNodeStatus } from "../../Types/Monitor/SnmpMonitor/NetworkTopology";
2
2
  import LldpNeighbor from "../../Types/Monitor/SnmpMonitor/LldpNeighbor";
3
3
  import CdpNeighbor from "../../Types/Monitor/SnmpMonitor/CdpNeighbor";
4
4
  import { TopologyDeviceRoleInput } from "./NetworkDeviceRoleCatalog";
@@ -32,6 +32,7 @@ export interface TopologyDeviceInput {
32
32
  controllerProvider?: string | undefined;
33
33
  isEndpointCollectionEnabled?: boolean | undefined;
34
34
  isDescribedByController?: boolean | undefined;
35
+ monitorNotChecked?: NetworkTopologyMonitorNotChecked | undefined;
35
36
  }
36
37
  export interface TopologyInterfaceInput {
37
38
  networkDeviceId: string;
@@ -253,6 +253,16 @@ class NetworkTopologyUtil {
253
253
  */
254
254
  macAddress: (0, EndpointAttachmentUtil_1.normalizeMac)(device.macAddress),
255
255
  };
256
+ /*
257
+ * Only when there is one, so a node whose monitor is checked - and
258
+ * every node of an older caller - carries no such field at all.
259
+ */
260
+ if (device.monitorNotChecked) {
261
+ deviceNode.monitorNotChecked = {
262
+ monitorId: device.monitorNotChecked.monitorId,
263
+ reason: device.monitorNotChecked.reason,
264
+ };
265
+ }
256
266
  /*
257
267
  * The address it is polled at, when that is an IP: drawn under its
258
268
  * name and searched by (issue #5775). A device registered by a DNS
@@ -1,5 +1,6 @@
1
1
  import Monitor from "../../Models/DatabaseModels/Monitor.mjs";
2
2
  import Query from "../../Types/BaseDatabase/Query.mjs";
3
+ import ObjectID from "../../Types/ObjectID.mjs";
3
4
  export default class NotOperationalMonitorQuery {
4
- static getQuery(): Query<Monitor>;
5
+ static getQuery(projectId?: ObjectID | string | null | undefined): Query<Monitor>;
5
6
  }
@@ -1,5 +1,6 @@
1
1
  import Monitor from "../../Models/DatabaseModels/Monitor";
2
2
  import Query from "../../Types/BaseDatabase/Query";
3
+ import ObjectID from "../../Types/ObjectID";
3
4
  export default class NotOperationalMonitorQuery {
4
- static getQuery(): Query<Monitor>;
5
+ static getQuery(projectId?: ObjectID | string | null | undefined): Query<Monitor>;
5
6
  }
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
6
7
  const MonitoringOff_1 = __importDefault(require("./MonitoringOff"));
7
8
  /*
8
9
  * WHICH MONITORS ARE NOT OPERATIONAL.
@@ -30,10 +31,28 @@ const MonitoringOff_1 = __importDefault(require("./MonitoringOff"));
30
31
  * problemsOnly. The checked monitors are MonitoringOff's.
31
32
  */
32
33
  class NotOperationalMonitorQuery {
33
- static getQuery() {
34
- return Object.assign(Object.assign({}, MonitoringOff_1.default.getMonitoredQuery()), { currentMonitorStatus: {
35
- isOperationalState: false,
36
- } });
34
+ /*
35
+ * Given the project the monitors are read in, the status is asked of that
36
+ * project too (issue #8096). A monitor's statuses are its project's own,
37
+ * so the answer is the same, but Postgres can then start from the
38
+ * project's few statuses that are not operational and read only the
39
+ * monitors that hold one (the index on currentMonitorStatusId), where it
40
+ * otherwise reads every monitor of the project and joins each to its
41
+ * status: 1,915 buffers instead of 8,585 for a count in a project of
42
+ * 20,000 monitors. Every Not Operational count and list that knows its
43
+ * project passes it; a list also counts what it lists.
44
+ */
45
+ static getQuery(projectId) {
46
+ return Object.assign(Object.assign({}, MonitoringOff_1.default.getMonitoredQuery()), { currentMonitorStatus: projectId
47
+ ? {
48
+ isOperationalState: false,
49
+ projectId: projectId instanceof ObjectID_1.default
50
+ ? projectId
51
+ : new ObjectID_1.default(projectId),
52
+ }
53
+ : {
54
+ isOperationalState: false,
55
+ } });
37
56
  }
38
57
  }
39
58
  exports.default = NotOperationalMonitorQuery;
@@ -0,0 +1,14 @@
1
+ import { RequestFailedPhase } from "../../Types/Probe/RequestFailedDetails.mjs";
2
+ import { PluralTemplate, Translator } from "../../Types/Translator.mjs";
3
+ export declare const PROBE_TIMEOUT_FAILURE_CAUSE: PluralTemplate;
4
+ export declare const writeProbeTimeoutFailureCause: (triedCount: number | undefined) => string;
5
+ export declare const readProbeTimeoutFailureCause: (failureCause: string | null | undefined) => number | null;
6
+ export declare const getProbeFailureCauseText: (data: {
7
+ translator: Translator;
8
+ failureCause: string | null | undefined;
9
+ }) => string;
10
+ export declare const REQUEST_FAILED_PHASE_WORDS: Readonly<Record<RequestFailedPhase, string>>;
11
+ export declare const getRequestFailedPhaseText: (data: {
12
+ translator: Translator;
13
+ failedPhase: string | null | undefined;
14
+ }) => string;
@@ -0,0 +1,14 @@
1
+ import { RequestFailedPhase } from "../../Types/Probe/RequestFailedDetails";
2
+ import { PluralTemplate, Translator } from "../../Types/Translator";
3
+ export declare const PROBE_TIMEOUT_FAILURE_CAUSE: PluralTemplate;
4
+ export declare const writeProbeTimeoutFailureCause: (triedCount: number | undefined) => string;
5
+ export declare const readProbeTimeoutFailureCause: (failureCause: string | null | undefined) => number | null;
6
+ export declare const getProbeFailureCauseText: (data: {
7
+ translator: Translator;
8
+ failureCause: string | null | undefined;
9
+ }) => string;
10
+ export declare const REQUEST_FAILED_PHASE_WORDS: Readonly<Record<RequestFailedPhase, string>>;
11
+ export declare const getRequestFailedPhaseText: (data: {
12
+ translator: Translator;
13
+ failedPhase: string | null | undefined;
14
+ }) => string;
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRequestFailedPhaseText = exports.REQUEST_FAILED_PHASE_WORDS = exports.getProbeFailureCauseText = exports.readProbeTimeoutFailureCause = exports.writeProbeTimeoutFailureCause = exports.PROBE_TIMEOUT_FAILURE_CAUSE = void 0;
4
+ const RequestFailedDetails_1 = require("../../Types/Probe/RequestFailedDetails");
5
+ const Translator_1 = require("../../Types/Translator");
6
+ /*
7
+ * WHY A PROBE'S CHECK FAILED, READ IN THE READER'S LANGUAGE.
8
+ *
9
+ * A failed check stores why in the probe's English: its failure cause (the
10
+ * summary's Error) and, for a request, the phase it broke in (Failed
11
+ * Phase).
12
+ * Monitor criteria, incident root causes and logs compare that English, so
13
+ * it is stored as it always was. The monitor summaries read it back here
14
+ * and draw OneUptime's own words in the reader's language; anything else -
15
+ * the network's, the runtime's or a server's own message - stays as
16
+ * written (and is drawn in its own direction on an Arabic or Persian page).
17
+ *
18
+ * The words are translation keys: the Dashboard's npm run i18n:extract
19
+ * reads this directory.
20
+ */
21
+ /*
22
+ * THE PROBE'S TIMEOUT SENTENCE.
23
+ *
24
+ * When every attempt of a check timed out, the probe of each monitor type
25
+ * that retries - Website, API, Ping, SSL Certificate, DNS, Domain, SNMP
26
+ * and External Status Page - writes one sentence as the check's failure
27
+ * cause: "Request was tried 3 times and it timed out." The probe writes it
28
+ * with writeProbeTimeoutFailureCause, always in the general form with the
29
+ * count in digits ("1 times" too), exactly as it did before the sentence
30
+ * became a key: an "Error contains" criterion, a root cause or a log line
31
+ * written against that English still finds it.
32
+ *
33
+ * Drawn for a reader, it is a count-dependent sentence: "once" for one
34
+ * try, and each language's own plural forms, with the count in the
35
+ * reader's digits (getProbeFailureCauseText).
36
+ */
37
+ exports.PROBE_TIMEOUT_FAILURE_CAUSE = {
38
+ // Stored under the general sentence's key plus "_one", never on its own.
39
+ one: "Request was tried once and it timed out.",
40
+ other: (0, Translator_1.translationKey)("Request was tried {{count}} times and it timed out."),
41
+ };
42
+ // The stored sentence's words before and after its count.
43
+ const TIMEOUT_COUNT_PLACEHOLDER = "{{count}}";
44
+ const TIMEOUT_BEFORE_COUNT = exports.PROBE_TIMEOUT_FAILURE_CAUSE.other.slice(0, exports.PROBE_TIMEOUT_FAILURE_CAUSE.other.indexOf(TIMEOUT_COUNT_PLACEHOLDER));
45
+ const TIMEOUT_AFTER_COUNT = exports.PROBE_TIMEOUT_FAILURE_CAUSE.other.slice(exports.PROBE_TIMEOUT_FAILURE_CAUSE.other.indexOf(TIMEOUT_COUNT_PLACEHOLDER) +
46
+ TIMEOUT_COUNT_PLACEHOLDER.length);
47
+ /*
48
+ * A count the probe writes: Latin digits only, as String(number) writes a
49
+ * whole number, and no longer than any count of tries could be. Anchored
50
+ * and with no repeat beside another, so it reads any text in time that
51
+ * grows with its length.
52
+ */
53
+ const STORED_COUNT_PATTERN = /^[0-9]{1,9}$/;
54
+ /*
55
+ * The failure cause the probe stores when every one of `triedCount`
56
+ * attempts timed out - word for word the English it always wrote with
57
+ * "Request was tried " + count + " times and it timed out.", the count
58
+ * written by String() as that concatenation did.
59
+ */
60
+ const writeProbeTimeoutFailureCause = (triedCount) => {
61
+ return (0, Translator_1.fillTemplate)(exports.PROBE_TIMEOUT_FAILURE_CAUSE.other, {
62
+ count: String(triedCount),
63
+ });
64
+ };
65
+ exports.writeProbeTimeoutFailureCause = writeProbeTimeoutFailureCause;
66
+ /*
67
+ * The count of tries a stored failure cause names, when the cause is
68
+ * exactly the probe's timeout sentence (space round it aside); null for any
69
+ * other cause - a sentence close to it but not the same, the sentence
70
+ * inside a longer message, the network's or a server's own words - which
71
+ * stays as written.
72
+ */
73
+ const readProbeTimeoutFailureCause = (failureCause) => {
74
+ const text = typeof failureCause === "string" ? failureCause.trim() : "";
75
+ if (text.length <= TIMEOUT_BEFORE_COUNT.length + TIMEOUT_AFTER_COUNT.length ||
76
+ !text.startsWith(TIMEOUT_BEFORE_COUNT) ||
77
+ !text.endsWith(TIMEOUT_AFTER_COUNT)) {
78
+ return null;
79
+ }
80
+ const count = text.slice(TIMEOUT_BEFORE_COUNT.length, text.length - TIMEOUT_AFTER_COUNT.length);
81
+ if (!STORED_COUNT_PATTERN.test(count)) {
82
+ return null;
83
+ }
84
+ return Number.parseInt(count, 10);
85
+ };
86
+ exports.readProbeTimeoutFailureCause = readProbeTimeoutFailureCause;
87
+ /*
88
+ * A check's failure cause - or any message of the probe's - as a summary
89
+ * draws it: the probe's timeout sentence in the reader's language, with
90
+ * the count in the reader's digits; anything else as written, trimmed.
91
+ */
92
+ const getProbeFailureCauseText = (data) => {
93
+ const text = typeof data.failureCause === "string" ? data.failureCause.trim() : "";
94
+ const triedCount = (0, exports.readProbeTimeoutFailureCause)(text);
95
+ if (triedCount === null) {
96
+ return text;
97
+ }
98
+ return data.translator.translatePlural(exports.PROBE_TIMEOUT_FAILURE_CAUSE, triedCount);
99
+ };
100
+ exports.getProbeFailureCauseText = getProbeFailureCauseText;
101
+ /*
102
+ * WHERE A REQUEST BROKE.
103
+ *
104
+ * Each phase a request can fail in (RequestFailedDetails' failedPhase, the
105
+ * summary's Failed Phase) by its English words, a translation key. The probe
106
+ * stores the enum's value, which is these words; criteria may compare it,
107
+ * so it never changes.
108
+ */
109
+ exports.REQUEST_FAILED_PHASE_WORDS = {
110
+ [RequestFailedDetails_1.RequestFailedPhase.DNSResolution]: (0, Translator_1.translationKey)("DNS Resolution"),
111
+ [RequestFailedDetails_1.RequestFailedPhase.TCPConnection]: (0, Translator_1.translationKey)("TCP Connection"),
112
+ [RequestFailedDetails_1.RequestFailedPhase.TLSHandshake]: (0, Translator_1.translationKey)("TLS Handshake"),
113
+ [RequestFailedDetails_1.RequestFailedPhase.RequestTimeout]: (0, Translator_1.translationKey)("Request Timeout"),
114
+ [RequestFailedDetails_1.RequestFailedPhase.ServerResponse]: (0, Translator_1.translationKey)("Server Response"),
115
+ [RequestFailedDetails_1.RequestFailedPhase.RequestAborted]: (0, Translator_1.translationKey)("Request Aborted"),
116
+ [RequestFailedDetails_1.RequestFailedPhase.NetworkError]: (0, Translator_1.translationKey)("Network Error"),
117
+ [RequestFailedDetails_1.RequestFailedPhase.CertificateError]: (0, Translator_1.translationKey)("Certificate Error"),
118
+ [RequestFailedDetails_1.RequestFailedPhase.TargetResolution]: (0, Translator_1.translationKey)("Target Resolution"),
119
+ [RequestFailedDetails_1.RequestFailedPhase.Unknown]: (0, Translator_1.translationKey)("Unknown"),
120
+ };
121
+ const isRequestFailedPhase = (value) => {
122
+ return Object.prototype.hasOwnProperty.call(exports.REQUEST_FAILED_PHASE_WORDS, value);
123
+ };
124
+ /*
125
+ * The phase a request failed in, as the summary's Failed Phase draws it: the
126
+ * reader's word for a phase the probe names; a value no probe writes today
127
+ * (a newer probe's) as written, trimmed; "" for none.
128
+ */
129
+ const getRequestFailedPhaseText = (data) => {
130
+ const phase = typeof data.failedPhase === "string" ? data.failedPhase.trim() : "";
131
+ if (!phase || !isRequestFailedPhase(phase)) {
132
+ return phase;
133
+ }
134
+ const words = exports.REQUEST_FAILED_PHASE_WORDS[phase];
135
+ return data.translator.translateText(words) || words;
136
+ };
137
+ exports.getRequestFailedPhaseText = getRequestFailedPhaseText;
@@ -0,0 +1,7 @@
1
+ import commonJsModule from "./ProbeFailureReading.js";
2
+ export const PROBE_TIMEOUT_FAILURE_CAUSE = commonJsModule.PROBE_TIMEOUT_FAILURE_CAUSE;
3
+ export const REQUEST_FAILED_PHASE_WORDS = commonJsModule.REQUEST_FAILED_PHASE_WORDS;
4
+ export const getProbeFailureCauseText = commonJsModule.getProbeFailureCauseText;
5
+ export const getRequestFailedPhaseText = commonJsModule.getRequestFailedPhaseText;
6
+ export const readProbeTimeoutFailureCause = commonJsModule.readProbeTimeoutFailureCause;
7
+ export const writeProbeTimeoutFailureCause = commonJsModule.writeProbeTimeoutFailureCause;
@@ -0,0 +1,9 @@
1
+ import ObjectID from "../../Types/ObjectID.mjs";
2
+ import MonitorNotCheckedReason from "../../Types/Monitor/MonitorNotCheckedReason.mjs";
3
+ import { MonitoredFlags } from "../Monitor/MonitoringOff.mjs";
4
+ export interface BoundMonitorDeviceRow {
5
+ monitoringMethod?: string | null | undefined;
6
+ monitorId?: ObjectID | string | null | undefined;
7
+ monitor?: MonitoredFlags | null | undefined;
8
+ }
9
+ export declare function getBoundMonitorNotCheckedReason(device: BoundMonitorDeviceRow): MonitorNotCheckedReason | null;
@@ -0,0 +1,9 @@
1
+ import ObjectID from "../../Types/ObjectID";
2
+ import MonitorNotCheckedReason from "../../Types/Monitor/MonitorNotCheckedReason";
3
+ import { MonitoredFlags } from "../Monitor/MonitoringOff";
4
+ export interface BoundMonitorDeviceRow {
5
+ monitoringMethod?: string | null | undefined;
6
+ monitorId?: ObjectID | string | null | undefined;
7
+ monitor?: MonitoredFlags | null | undefined;
8
+ }
9
+ export declare function getBoundMonitorNotCheckedReason(device: BoundMonitorDeviceRow): MonitorNotCheckedReason | null;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getBoundMonitorNotCheckedReason = getBoundMonitorNotCheckedReason;
7
+ const NetworkDeviceMonitoringMethod_1 = require("../../Types/NetworkDevice/NetworkDeviceMonitoringMethod");
8
+ const MonitoringOff_1 = __importDefault(require("../Monitor/MonitoringOff"));
9
+ function getBoundMonitorNotCheckedReason(device) {
10
+ if (!NetworkDeviceMonitoringMethod_1.NetworkDeviceMonitoringMethodUtil.isMonitorBacked(device.monitoringMethod) ||
11
+ !device.monitorId) {
12
+ return null;
13
+ }
14
+ return MonitoringOff_1.default.getNotCheckedReason(device.monitor);
15
+ }
@@ -0,0 +1,2 @@
1
+ import commonJsModule from "./BoundMonitorNotChecked.js";
2
+ export const getBoundMonitorNotCheckedReason = commonJsModule.getBoundMonitorNotCheckedReason;
@@ -17,7 +17,8 @@
17
17
  * part server, volume, sg or fip, so a volume with a server's name is not the check's
18
18
  *
19
19
  * Read with loops and fixed lengths, never a regular expression: names come from a cloud's API,
20
- * where anyone with a project can write one (AGENTS.md).
20
+ * where anyone with a project can write one (Docs/notifications/README.md, "Megabyte-long
21
+ * values").
21
22
  *
22
23
  * Pure, for the probe that makes and deletes them and for the guide and tests that describe them.
23
24
  */
@@ -23,7 +23,7 @@
23
23
  * loop, never a regular expression with a quantifier, and never reads a stretch twice:
24
24
  * the search for a word goes on from where its value stopped, so a thousand opening quotes
25
25
  * cost what one does, and the time this takes is in line with the line, whatever the line
26
- * holds (AGENTS.md).
26
+ * holds (Docs/notifications/README.md, "Megabyte-long values").
27
27
  */
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.OPENSTACK_SCRUBBED_VALUE = void 0;
@@ -38,8 +38,9 @@ const OpenStackLogScrub_1 = require("./OpenStackLogScrub");
38
38
  *
39
39
  * Logs are text anyone can write into. Nothing here runs a regular expression with a
40
40
  * quantifier: lines are read with indexOf and loops, so the time this takes is in line
41
- * with the record however long it is and whatever it holds (AGENTS.md, and the hostile
42
- * shapes in OpenStackLogs.test.ts). The most this reads of one record is
41
+ * with the record however long it is and whatever it holds
42
+ * (Docs/notifications/README.md, "Megabyte-long values", and the hostile shapes in
43
+ * OpenStackLogs.test.ts). The most this reads of one record is
43
44
  * MAX_OPENSTACK_LOG_BODY_LENGTH, and what is past it is not stored: an unread stretch
44
45
  * could hold what the scrub is there to take out.
45
46
  *
@@ -68,7 +68,8 @@ const OpenStackLogScrub_1 = require("./OpenStackLogScrub");
68
68
  * Common/Tests/Fixtures/OpenStack/traces/<release>, and OpenStackTracesRecordings.test.ts.
69
69
  *
70
70
  * Spans are text anyone holding the key can write into, so a value is read with indexOf and
71
- * loops, never a regular expression with a quantifier (AGENTS.md).
71
+ * loops, never a regular expression with a quantifier (Docs/notifications/README.md,
72
+ * "Megabyte-long values").
72
73
  *
73
74
  * These attribute keys are stored in customers' traces: never rename one.
74
75
  */
@@ -79,7 +79,7 @@ exports.NUMBERED_RECORD_KINDS = [
79
79
  startsAtColumn: "scheduledMaintenanceNumbersStartAt",
80
80
  prefixColumn: "scheduledMaintenanceNumberPrefix",
81
81
  title: "Scheduled Maintenance Numbers Start At",
82
- recordName: "scheduled maintenance event",
82
+ recordName: "maintenance event",
83
83
  },
84
84
  {
85
85
  kind: NumberedRecordKind.SecurityCase,