@oneuptime/common 14.0.107 → 14.0.109

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 (591) hide show
  1. package/Models/AnalyticsModels/AuditLog.js +1 -1
  2. package/Models/DatabaseModels/CloudApp.d.mts +5 -0
  3. package/Models/DatabaseModels/CloudApp.d.ts +5 -0
  4. package/Models/DatabaseModels/CloudApp.js +112 -0
  5. package/Models/DatabaseModels/DataBiConnection.d.mts +4 -0
  6. package/Models/DatabaseModels/DataBiConnection.d.ts +4 -0
  7. package/Models/DatabaseModels/DataBiConnection.js +59 -2
  8. package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
  9. package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
  10. package/Models/DatabaseModels/GlobalConfig.js +111 -0
  11. package/Models/DatabaseModels/Index.js +9 -0
  12. package/Models/DatabaseModels/Monitor.js +14 -0
  13. package/Models/DatabaseModels/MonitorStatusTimeline.d.mts +1 -0
  14. package/Models/DatabaseModels/MonitorStatusTimeline.d.ts +1 -0
  15. package/Models/DatabaseModels/MonitorStatusTimeline.js +43 -0
  16. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +4 -0
  17. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +4 -0
  18. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +132 -2
  19. package/Models/DatabaseModels/ProductFeedback.d.mts +11 -0
  20. package/Models/DatabaseModels/ProductFeedback.d.ts +11 -0
  21. package/Models/DatabaseModels/ProductFeedback.js +203 -0
  22. package/Models/DatabaseModels/ProductFeedback.mjs +2 -0
  23. package/Models/DatabaseModels/Project.d.mts +6 -0
  24. package/Models/DatabaseModels/Project.d.ts +6 -0
  25. package/Models/DatabaseModels/Project.js +237 -0
  26. package/Models/DatabaseModels/ProjectMilestone.d.mts +11 -0
  27. package/Models/DatabaseModels/ProjectMilestone.d.ts +11 -0
  28. package/Models/DatabaseModels/ProjectMilestone.js +207 -0
  29. package/Models/DatabaseModels/ProjectMilestone.mjs +2 -0
  30. package/Models/DatabaseModels/ProjectUserPreference.d.mts +11 -0
  31. package/Models/DatabaseModels/ProjectUserPreference.d.ts +11 -0
  32. package/Models/DatabaseModels/ProjectUserPreference.js +194 -0
  33. package/Models/DatabaseModels/ProjectUserPreference.mjs +2 -0
  34. package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.mts +20 -0
  35. package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.ts +20 -0
  36. package/Models/DatabaseModels/RumProductAnalyticsSavedView.js +353 -0
  37. package/Models/DatabaseModels/RumProductAnalyticsSavedView.mjs +2 -0
  38. package/Models/DatabaseModels/RumSessionPin.js +16 -2
  39. package/Models/DatabaseModels/RumSessionReplayView.js +8 -1
  40. package/Models/DatabaseModels/SecurityCase.js +8 -1
  41. package/Models/DatabaseModels/User.d.mts +2 -0
  42. package/Models/DatabaseModels/User.d.ts +2 -0
  43. package/Models/DatabaseModels/User.js +52 -0
  44. package/Models/DatabaseModels/UserOnCallLog.js +32 -4
  45. package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -0
  46. package/Models/DatabaseModels/WhatsAppLog.d.mts +3 -0
  47. package/Models/DatabaseModels/WhatsAppLog.d.ts +3 -0
  48. package/Models/DatabaseModels/WhatsAppLog.js +62 -0
  49. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
  50. package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +20 -0
  51. package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +20 -0
  52. package/Models/DatabaseModels/WorkspaceUserGroup.js +1 -1
  53. package/Server/Services/DatabaseService.d.mts +1 -0
  54. package/Server/Services/DatabaseService.d.ts +1 -0
  55. package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +213 -0
  56. package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +213 -0
  57. package/Server/Utils/Workspace/WorkspaceBase.d.mts +4 -0
  58. package/Server/Utils/Workspace/WorkspaceBase.d.ts +4 -0
  59. package/Types/AI/AIActionWords.d.mts +167 -7
  60. package/Types/AI/AIActionWords.d.ts +167 -7
  61. package/Types/AI/AIActionWords.js +474 -17
  62. package/Types/AI/AIActionWords.mjs +22 -0
  63. package/Types/AI/AIChatMessageStatus.js +3 -2
  64. package/Types/AI/AIChatRecordSeen.d.mts +6 -2
  65. package/Types/AI/AIChatRecordSeen.d.ts +6 -2
  66. package/Types/AI/AIChatRecordSeen.js +48 -9
  67. package/Types/AI/AIChatRecordSeen.mjs +2 -0
  68. package/Types/AI/AIChatTypes.d.mts +20 -1
  69. package/Types/AI/AIChatTypes.d.ts +20 -1
  70. package/Types/AI/AIChatTypes.js +46 -1
  71. package/Types/AI/AIChatTypes.mjs +3 -0
  72. package/Types/AI/AIRunAttempt.d.mts +8 -0
  73. package/Types/AI/AIRunAttempt.d.ts +8 -0
  74. package/Types/AI/AIRunAttempt.js +60 -6
  75. package/Types/AI/AIRunAttempt.mjs +3 -0
  76. package/Types/AI/AISetupActions.d.mts +9 -0
  77. package/Types/AI/AISetupActions.d.ts +9 -0
  78. package/Types/AI/AISetupActions.js +56 -0
  79. package/Types/AI/AISetupActions.mjs +10 -0
  80. package/Types/AI/CodeTask.d.mts +14 -0
  81. package/Types/AI/CodeTask.d.ts +14 -0
  82. package/Types/AI/InvestigationNotStartedReason.d.mts +7 -0
  83. package/Types/AI/InvestigationNotStartedReason.d.ts +7 -0
  84. package/Types/AI/RecordAiTokenLimit.d.mts +24 -0
  85. package/Types/AI/RecordAiTokenLimit.d.ts +24 -0
  86. package/Types/AI/RecordAiTokenLimit.js +153 -0
  87. package/Types/AI/RecordAiTokenLimit.mjs +8 -0
  88. package/Types/Accounts/SignInMessages.d.mts +8 -0
  89. package/Types/Accounts/SignInMessages.d.ts +8 -0
  90. package/Types/Accounts/SignInMessages.js +28 -0
  91. package/Types/Accounts/SignInMessages.mjs +5 -0
  92. package/Types/Analytics/ActivationMilestone.d.mts +48 -0
  93. package/Types/Analytics/ActivationMilestone.d.ts +48 -0
  94. package/Types/Analytics/ActivationMilestone.js +247 -0
  95. package/Types/Analytics/ActivationMilestone.mjs +16 -0
  96. package/Types/Analytics/ChecklistProgress.d.mts +11 -0
  97. package/Types/Analytics/ChecklistProgress.d.ts +11 -0
  98. package/Types/Analytics/ChecklistProgress.js +32 -0
  99. package/Types/Analytics/ChecklistProgress.mjs +2 -0
  100. package/Types/Analytics/ProductEvent.d.mts +61 -0
  101. package/Types/Analytics/ProductEvent.d.ts +61 -0
  102. package/Types/Analytics/ProductEvent.js +430 -0
  103. package/Types/Analytics/ProductEvent.mjs +14 -0
  104. package/Types/AuditLog/AuditLogAction.d.mts +5 -1
  105. package/Types/AuditLog/AuditLogAction.d.ts +5 -1
  106. package/Types/AuditLog/AuditLogAction.js +11 -0
  107. package/Types/AuditLog/AuditLogActionLabel.d.mts +3 -0
  108. package/Types/AuditLog/AuditLogActionLabel.d.ts +3 -0
  109. package/Types/AuditLog/AuditLogActionLabel.js +30 -0
  110. package/Types/AuditLog/AuditLogActionLabel.mjs +3 -0
  111. package/Types/AuditLog/AuditLogCoverage.d.mts +2 -1
  112. package/Types/AuditLog/AuditLogCoverage.d.ts +2 -1
  113. package/Types/AuditLog/AuditLogCoverage.js +8 -1
  114. package/Types/AuditLog/AuditLogRetention.js +7 -4
  115. package/Types/AuditLog/AuditLogSessionEvent.d.mts +45 -0
  116. package/Types/AuditLog/AuditLogSessionEvent.d.ts +45 -0
  117. package/Types/AuditLog/AuditLogSessionEvent.js +210 -0
  118. package/Types/AuditLog/AuditLogSessionEvent.mjs +14 -0
  119. package/Types/AutoRemediation/RemediationRound.d.mts +4 -0
  120. package/Types/AutoRemediation/RemediationRound.d.ts +4 -0
  121. package/Types/AutoRemediation/RemediationRound.js +19 -2
  122. package/Types/AutoRemediation/RemediationRoundName.d.mts +1 -0
  123. package/Types/AutoRemediation/RemediationRoundName.d.ts +1 -0
  124. package/Types/AutoRemediation/RemediationRoundName.js +5 -0
  125. package/Types/AutoRemediation/RemediationRoundName.mjs +1 -0
  126. package/Types/Cloud/CloudAppTelemetrySignal.d.mts +9 -0
  127. package/Types/Cloud/CloudAppTelemetrySignal.d.ts +9 -0
  128. package/Types/Cloud/CloudAppTelemetrySignal.js +41 -0
  129. package/Types/Cloud/CloudAppTelemetrySignal.mjs +4 -0
  130. package/Types/Cloud/CloudPlatform.js +7 -1
  131. package/Types/CodeInSentence.d.mts +8 -0
  132. package/Types/CodeInSentence.d.ts +8 -0
  133. package/Types/CodeInSentence.js +875 -0
  134. package/Types/CodeInSentence.mjs +4 -0
  135. package/Types/CodeRepository/CodeFileSeen.d.mts +5 -0
  136. package/Types/CodeRepository/CodeFileSeen.d.ts +5 -0
  137. package/Types/CodeRepository/CodeFileSeen.js +142 -27
  138. package/Types/CustomDomain/CustomDomainDnsCheckResult.d.mts +13 -0
  139. package/Types/CustomDomain/CustomDomainDnsCheckResult.d.ts +13 -0
  140. package/Types/CustomDomain/CustomDomainDnsCheckResult.js +80 -0
  141. package/Types/CustomDomain/CustomDomainDnsCheckResult.mjs +2 -0
  142. package/Types/CustomDomain/CustomDomainServerReadiness.d.mts +55 -0
  143. package/Types/CustomDomain/CustomDomainServerReadiness.d.ts +55 -0
  144. package/Types/CustomDomain/CustomDomainServerReadiness.js +199 -0
  145. package/Types/CustomDomain/CustomDomainServerReadiness.mjs +8 -0
  146. package/Types/CustomDomain/DnsRecordCheck.d.mts +34 -0
  147. package/Types/CustomDomain/DnsRecordCheck.d.ts +34 -0
  148. package/Types/CustomDomain/DnsRecordCheck.js +175 -0
  149. package/Types/CustomDomain/DnsRecordCheck.mjs +6 -0
  150. package/Types/CustomDomain/DnsRecordCheckWords.d.mts +35 -0
  151. package/Types/CustomDomain/DnsRecordCheckWords.d.ts +35 -0
  152. package/Types/CustomDomain/DnsRecordCheckWords.js +151 -0
  153. package/Types/CustomDomain/DnsRecordCheckWords.mjs +5 -0
  154. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +1 -0
  155. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +1 -0
  156. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +11 -1
  157. package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.mjs +1 -0
  158. package/Types/Dashboard/DashboardComponentType.d.mts +2 -0
  159. package/Types/Dashboard/DashboardComponentType.d.ts +2 -0
  160. package/Types/Dashboard/DashboardComponentType.js +7 -0
  161. package/Types/Dashboard/DashboardComponents/ComponentArgument.d.mts +3 -1
  162. package/Types/Dashboard/DashboardComponents/ComponentArgument.d.ts +3 -1
  163. package/Types/Dashboard/DashboardComponents/ComponentArgument.js +3 -0
  164. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.mts +11 -0
  165. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.ts +11 -0
  166. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.js +2 -0
  167. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.mjs +1 -0
  168. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.mts +11 -0
  169. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.ts +11 -0
  170. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.js +2 -0
  171. package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.mjs +1 -0
  172. package/Types/Dashboard/PublicDashboardServedSettings.js +15 -7
  173. package/Types/DataObservability/DataBiRefreshAlert.d.mts +44 -0
  174. package/Types/DataObservability/DataBiRefreshAlert.d.ts +44 -0
  175. package/Types/DataObservability/DataBiRefreshAlert.js +206 -0
  176. package/Types/DataObservability/DataBiRefreshAlert.mjs +12 -0
  177. package/Types/DataObservability/DataCheckType.d.mts +4 -0
  178. package/Types/DataObservability/DataCheckType.d.ts +4 -0
  179. package/Types/DataObservability/DataCheckType.js +17 -0
  180. package/Types/DataObservability/DataCheckType.mjs +1 -0
  181. package/Types/DataObservability/DataLineageColumnTrail.d.mts +10 -0
  182. package/Types/DataObservability/DataLineageColumnTrail.d.ts +10 -0
  183. package/Types/DataObservability/DataLineageColumnTrail.js +152 -0
  184. package/Types/DataObservability/DataLineageColumnTrail.mjs +4 -0
  185. package/Types/DataObservability/DataLineageExpansion.d.mts +29 -0
  186. package/Types/DataObservability/DataLineageExpansion.d.ts +29 -0
  187. package/Types/DataObservability/DataLineageExpansion.js +166 -0
  188. package/Types/DataObservability/DataLineageExpansion.mjs +4 -0
  189. package/Types/DataObservability/DataObservabilityApiTypes.d.mts +8 -0
  190. package/Types/DataObservability/DataObservabilityApiTypes.d.ts +8 -0
  191. package/Types/DataObservability/DataObservabilityApiTypes.js +14 -0
  192. package/Types/DataObservability/DataTableLineage.d.mts +29 -1
  193. package/Types/DataObservability/DataTableLineage.d.ts +29 -1
  194. package/Types/DataObservability/DataTableLineage.js +27 -7
  195. package/Types/DataObservability/DataTableLineage.mjs +3 -0
  196. package/Types/Date.d.mts +22 -0
  197. package/Types/Date.d.ts +22 -0
  198. package/Types/Date.js +72 -3
  199. package/Types/DateLanguage.d.mts +7 -0
  200. package/Types/DateLanguage.d.ts +7 -0
  201. package/Types/DateLanguage.js +44 -1
  202. package/Types/DateLanguage.mjs +1 -0
  203. package/Types/Docs/DocsLanguage.d.mts +2 -0
  204. package/Types/Docs/DocsLanguage.d.ts +2 -0
  205. package/Types/Docs/DocsLanguage.js +23 -1
  206. package/Types/Docs/DocsLanguage.mjs +2 -0
  207. package/Types/Docs/GlossaryTerm.d.mts +82 -0
  208. package/Types/Docs/GlossaryTerm.d.ts +82 -0
  209. package/Types/Docs/GlossaryTerm.js +126 -0
  210. package/Types/Docs/GlossaryTerm.mjs +5 -0
  211. package/Types/Email/AmazonSesAuthenticationType.d.mts +23 -0
  212. package/Types/Email/AmazonSesAuthenticationType.d.ts +23 -0
  213. package/Types/Email/AmazonSesAuthenticationType.js +40 -0
  214. package/Types/Email/AmazonSesAuthenticationType.mjs +4 -0
  215. package/Types/Email/EmailServer.d.mts +2 -0
  216. package/Types/Email/EmailServer.d.ts +2 -0
  217. package/Types/Email/EmailTemplateType.d.mts +1 -0
  218. package/Types/Email/EmailTemplateType.d.ts +1 -0
  219. package/Types/Email/EmailTemplateType.js +2 -0
  220. package/Types/Exception/BadDataExceptionWithDetails.d.mts +6 -0
  221. package/Types/Exception/BadDataExceptionWithDetails.d.ts +6 -0
  222. package/Types/Exception/BadDataExceptionWithDetails.js +20 -0
  223. package/Types/Exception/BadDataExceptionWithDetails.mjs +2 -0
  224. package/Types/Exception/ErrorMessageRule.d.mts +4 -0
  225. package/Types/Exception/ErrorMessageRule.d.ts +4 -0
  226. package/Types/Exception/ErrorMessageRule.js +143 -0
  227. package/Types/Exception/ErrorMessageRule.mjs +5 -0
  228. package/Types/Exception/UnexplainedError.d.mts +45 -0
  229. package/Types/Exception/UnexplainedError.d.ts +45 -0
  230. package/Types/Exception/UnexplainedError.js +179 -0
  231. package/Types/Exception/UnexplainedError.mjs +11 -0
  232. package/Types/HashedString.js +9 -2
  233. package/Types/Icon/IconProp.d.mts +4 -1
  234. package/Types/Icon/IconProp.d.ts +4 -1
  235. package/Types/Icon/IconProp.js +6 -0
  236. package/Types/InstallationHealth/InstallationHealth.d.mts +122 -0
  237. package/Types/InstallationHealth/InstallationHealth.d.ts +122 -0
  238. package/Types/InstallationHealth/InstallationHealth.js +513 -0
  239. package/Types/InstallationHealth/InstallationHealth.mjs +13 -0
  240. package/Types/LLM/LLMProviderExchange.d.mts +17 -0
  241. package/Types/LLM/LLMProviderExchange.d.ts +17 -0
  242. package/Types/LLM/LLMProviderExchange.js +70 -0
  243. package/Types/LLM/LLMProviderExchange.mjs +5 -0
  244. package/Types/Monitor/CriteriaFilter.d.mts +1 -0
  245. package/Types/Monitor/CriteriaFilter.d.ts +1 -0
  246. package/Types/Monitor/CriteriaFilter.js +3 -1
  247. package/Types/Monitor/CriteriaFilterTerms.js +1 -0
  248. package/Types/Monitor/CriteriaFilterValues.d.mts +18 -0
  249. package/Types/Monitor/CriteriaFilterValues.d.ts +18 -0
  250. package/Types/Monitor/CriteriaFilterValues.js +346 -0
  251. package/Types/Monitor/CriteriaFilterValues.mjs +2 -0
  252. package/Types/Monitor/DataBiRefreshMonitorStep.d.mts +13 -0
  253. package/Types/Monitor/DataBiRefreshMonitorStep.d.ts +13 -0
  254. package/Types/Monitor/DataBiRefreshMonitorStep.js +108 -0
  255. package/Types/Monitor/DataBiRefreshMonitorStep.mjs +3 -0
  256. package/Types/Monitor/EvaluationSentence.d.mts +1 -0
  257. package/Types/Monitor/EvaluationSentence.d.ts +1 -0
  258. package/Types/Monitor/EvaluationSentence.js +34 -3
  259. package/Types/Monitor/EvaluationSentence.mjs +1 -0
  260. package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.mts +1 -0
  261. package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.ts +1 -0
  262. package/Types/Monitor/MonitorCriteriaInstance.js +22 -2
  263. package/Types/Monitor/MonitorStep.js +28 -11
  264. package/Types/Monitor/MonitorStepMetricMonitor.js +6 -1
  265. package/Types/Monitor/MonitorStepRollingTime.d.mts +12 -0
  266. package/Types/Monitor/MonitorStepRollingTime.d.ts +12 -0
  267. package/Types/Monitor/MonitorStepRollingTime.js +117 -0
  268. package/Types/Monitor/MonitorStepRollingTime.mjs +2 -0
  269. package/Types/Monitor/RetiredEvaluationTemplates.d.mts +2 -0
  270. package/Types/Monitor/RetiredEvaluationTemplates.d.ts +2 -0
  271. package/Types/Monitor/RetiredEvaluationTemplates.js +95 -0
  272. package/Types/Monitor/RetiredEvaluationTemplates.mjs +3 -0
  273. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.mts +6 -0
  274. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.ts +6 -0
  275. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.js +20 -0
  276. package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.mjs +2 -0
  277. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.mts +6 -0
  278. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.ts +6 -0
  279. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.js +29 -0
  280. package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.mjs +2 -0
  281. package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.mts +7 -0
  282. package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.ts +7 -0
  283. package/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +11 -0
  284. package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.mts +1 -0
  285. package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.ts +1 -0
  286. package/Types/Monitor/TelemetryAlertRule.js +7 -2
  287. package/Types/Monitor/WhoIsTold.d.mts +165 -0
  288. package/Types/Monitor/WhoIsTold.d.ts +165 -0
  289. package/Types/Monitor/WhoIsTold.js +582 -0
  290. package/Types/Monitor/WhoIsTold.mjs +17 -0
  291. package/Types/NotificationRule/NotificationRepeat.d.mts +10 -0
  292. package/Types/NotificationRule/NotificationRepeat.d.ts +10 -0
  293. package/Types/NotificationRule/NotificationRepeat.js +51 -0
  294. package/Types/NotificationRule/NotificationRepeat.mjs +2 -0
  295. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +70 -0
  296. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +70 -0
  297. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +276 -0
  298. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +12 -0
  299. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +6 -0
  300. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +6 -0
  301. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +34 -0
  302. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
  303. package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.mts +9 -0
  304. package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.ts +9 -0
  305. package/Types/OnCallDutyPolicy/OnCallEscalationWait.js +44 -0
  306. package/Types/OnCallDutyPolicy/OnCallEscalationWait.mjs +5 -0
  307. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +240 -0
  308. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +240 -0
  309. package/Types/OnCallDutyPolicy/OnCallTestPage.js +574 -0
  310. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +52 -0
  311. package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.mts +31 -0
  312. package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.ts +31 -0
  313. package/Types/OnCallDutyPolicy/OnCallTestPageWords.js +105 -0
  314. package/Types/OnCallDutyPolicy/OnCallTestPageWords.mjs +14 -0
  315. package/Types/PhoneNumberDirection.d.mts +6 -0
  316. package/Types/PhoneNumberDirection.d.ts +6 -0
  317. package/Types/PhoneNumberDirection.js +123 -0
  318. package/Types/PhoneNumberDirection.mjs +6 -0
  319. package/Types/Probe/ProbeMonitorResponse.d.mts +1 -0
  320. package/Types/Probe/ProbeMonitorResponse.d.ts +1 -0
  321. package/Types/Product/ProductKey.d.mts +58 -0
  322. package/Types/Product/ProductKey.d.ts +58 -0
  323. package/Types/Product/ProductKey.js +175 -0
  324. package/Types/Product/ProductKey.mjs +8 -0
  325. package/Types/Product/ProductPins.d.mts +10 -0
  326. package/Types/Product/ProductPins.d.ts +10 -0
  327. package/Types/Product/ProductPins.js +65 -0
  328. package/Types/Product/ProductPins.mjs +6 -0
  329. package/Types/Product/ProductUsage.d.mts +21 -0
  330. package/Types/Product/ProductUsage.d.ts +21 -0
  331. package/Types/Product/ProductUsage.js +175 -0
  332. package/Types/Product/ProductUsage.mjs +10 -0
  333. package/Types/Product/ProjectProducts.d.mts +60 -0
  334. package/Types/Product/ProjectProducts.d.ts +60 -0
  335. package/Types/Product/ProjectProducts.js +336 -0
  336. package/Types/Product/ProjectProducts.mjs +19 -0
  337. package/Types/Product/ProjectProductsAnswer.d.mts +20 -0
  338. package/Types/Product/ProjectProductsAnswer.d.ts +20 -0
  339. package/Types/Product/ProjectProductsAnswer.js +139 -0
  340. package/Types/Product/ProjectProductsAnswer.mjs +7 -0
  341. package/Types/ProductFeedback/NewGitHubIssue.d.mts +12 -0
  342. package/Types/ProductFeedback/NewGitHubIssue.d.ts +12 -0
  343. package/Types/ProductFeedback/NewGitHubIssue.js +64 -0
  344. package/Types/ProductFeedback/NewGitHubIssue.mjs +5 -0
  345. package/Types/ProductFeedback/ProductFeedback.d.mts +140 -0
  346. package/Types/ProductFeedback/ProductFeedback.d.ts +140 -0
  347. package/Types/ProductFeedback/ProductFeedback.js +517 -0
  348. package/Types/ProductFeedback/ProductFeedback.mjs +49 -0
  349. package/Types/ReadingDirection.d.mts +4 -0
  350. package/Types/ReadingDirection.d.ts +4 -0
  351. package/Types/ReadingDirection.js +303 -26
  352. package/Types/ReadingDirection.mjs +4 -0
  353. package/Types/Recommendation/RecommendationType.d.mts +2 -1
  354. package/Types/Recommendation/RecommendationType.d.ts +2 -1
  355. package/Types/Recommendation/RecommendationType.js +6 -0
  356. package/Types/Reminder/ReminderInterval.d.mts +7 -0
  357. package/Types/Reminder/ReminderInterval.d.ts +7 -0
  358. package/Types/Reminder/ReminderInterval.js +110 -0
  359. package/Types/Reminder/ReminderInterval.mjs +8 -0
  360. package/Types/Retention/ResolvedRecordRetention.d.mts +19 -0
  361. package/Types/Retention/ResolvedRecordRetention.d.ts +19 -0
  362. package/Types/Retention/ResolvedRecordRetention.js +124 -0
  363. package/Types/Retention/ResolvedRecordRetention.mjs +14 -0
  364. package/Types/RollingTime/RollingTimeUtil.d.mts +8 -0
  365. package/Types/RollingTime/RollingTimeUtil.d.ts +8 -0
  366. package/Types/RollingTime/RollingTimeUtil.js +249 -71
  367. package/Types/Rum/ProductAnalyticsSavedViews.d.mts +56 -0
  368. package/Types/Rum/ProductAnalyticsSavedViews.d.ts +56 -0
  369. package/Types/Rum/ProductAnalyticsSavedViews.js +219 -0
  370. package/Types/Rum/ProductAnalyticsSavedViews.mjs +14 -0
  371. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +116 -108
  372. package/Types/ServerSending/ServerSendingStatus.d.mts +69 -0
  373. package/Types/ServerSending/ServerSendingStatus.d.ts +69 -0
  374. package/Types/ServerSending/ServerSendingStatus.js +281 -0
  375. package/Types/ServerSending/ServerSendingStatus.mjs +7 -0
  376. package/Types/ServerSending/ServerSendingWords.d.mts +9 -0
  377. package/Types/ServerSending/ServerSendingWords.d.ts +9 -0
  378. package/Types/ServerSending/ServerSendingWords.js +95 -0
  379. package/Types/ServerSending/ServerSendingWords.mjs +7 -0
  380. package/Types/ServerSetup/ServerSetupChecklist.d.mts +172 -0
  381. package/Types/ServerSetup/ServerSetupChecklist.d.ts +172 -0
  382. package/Types/ServerSetup/ServerSetupChecklist.js +735 -0
  383. package/Types/ServerSetup/ServerSetupChecklist.mjs +12 -0
  384. package/Types/ServerSetup/ServerTestSend.d.mts +35 -0
  385. package/Types/ServerSetup/ServerTestSend.d.ts +35 -0
  386. package/Types/ServerSetup/ServerTestSend.js +160 -0
  387. package/Types/ServerSetup/ServerTestSend.mjs +10 -0
  388. package/Types/SetupHealth/SetupHealth.d.mts +283 -0
  389. package/Types/SetupHealth/SetupHealth.d.ts +283 -0
  390. package/Types/SetupHealth/SetupHealth.js +1047 -0
  391. package/Types/SetupHealth/SetupHealth.mjs +46 -0
  392. package/Types/StatusPage/StatusPageSummary.d.mts +1 -0
  393. package/Types/StatusPage/StatusPageSummary.d.ts +1 -0
  394. package/Types/StatusPage/StatusPageSummary.js +3 -0
  395. package/Types/StatusPage/UptimeDailyAggregate.d.mts +25 -0
  396. package/Types/StatusPage/UptimeDailyAggregate.d.ts +25 -0
  397. package/Types/Telemetry/LlmCallKind.js +1 -1
  398. package/Types/Telemetry/ServiceType.d.mts +1 -0
  399. package/Types/Telemetry/ServiceType.d.ts +1 -0
  400. package/Types/Telemetry/ServiceType.js +6 -0
  401. package/Types/Telemetry/TelemetryIngestionBudget.d.mts +1 -0
  402. package/Types/Telemetry/TelemetryIngestionBudget.d.ts +1 -0
  403. package/Types/Telemetry/TelemetryIngestionBudget.js +135 -2
  404. package/Types/Telemetry/TelemetryIngestionBudget.mjs +1 -0
  405. package/Types/ToolImport/ToolImportCatalog.d.mts +1 -0
  406. package/Types/ToolImport/ToolImportCatalog.d.ts +1 -0
  407. package/Types/ToolImport/ToolImportCatalog.js +54 -1
  408. package/Types/ToolImport/ToolImportCatalog.mjs +1 -0
  409. package/Types/Translator.js +64 -31
  410. package/Types/UserNotification/UserNotificationEventType.d.mts +2 -1
  411. package/Types/UserNotification/UserNotificationEventType.d.ts +2 -1
  412. package/Types/UserNotification/UserNotificationEventType.js +7 -0
  413. package/Types/UserSession/SessionEndCause.d.mts +17 -0
  414. package/Types/UserSession/SessionEndCause.d.ts +17 -0
  415. package/Types/UserSession/SessionEndCause.js +79 -0
  416. package/Types/UserSession/SessionEndCause.mjs +6 -0
  417. package/Types/UserSession/SessionSignIn.d.mts +44 -0
  418. package/Types/UserSession/SessionSignIn.d.ts +44 -0
  419. package/Types/UserSession/SessionSignIn.js +174 -0
  420. package/Types/UserSession/SessionSignIn.mjs +17 -0
  421. package/Types/WelcomeChecklist/ProjectGoal.d.mts +16 -0
  422. package/Types/WelcomeChecklist/ProjectGoal.d.ts +16 -0
  423. package/Types/WelcomeChecklist/ProjectGoal.js +94 -0
  424. package/Types/WelcomeChecklist/ProjectGoal.mjs +8 -0
  425. package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +76 -0
  426. package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +76 -0
  427. package/Types/WelcomeChecklist/WelcomeChecklist.js +344 -0
  428. package/Types/WelcomeChecklist/WelcomeChecklist.mjs +19 -0
  429. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +24 -0
  430. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +24 -0
  431. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +136 -0
  432. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +9 -0
  433. package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +27 -0
  434. package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +27 -0
  435. package/Types/WelcomeChecklist/WelcomeChecklistState.js +183 -0
  436. package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +13 -0
  437. package/Types/Workflow/Documentation/AIDocumentation.js +1 -1
  438. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.mts +7 -0
  439. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.ts +7 -0
  440. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.js +40 -0
  441. package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.mjs +3 -0
  442. package/Types/Workspace/WorkspaceChannelMembers.d.mts +1 -0
  443. package/Types/Workspace/WorkspaceChannelMembers.d.ts +1 -0
  444. package/Types/Workspace/WorkspaceChannelMembers.js +9 -2
  445. package/UI/Components/Dropdown/Dropdown.d.mts +1 -0
  446. package/UI/Components/Dropdown/Dropdown.d.ts +1 -0
  447. package/Utils/API.js +10 -0
  448. package/Utils/Crypto.js +10 -3
  449. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.mts +7 -0
  450. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.ts +7 -0
  451. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +67 -0
  452. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.mjs +2 -0
  453. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.mts +7 -0
  454. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.ts +7 -0
  455. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +68 -0
  456. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.mjs +2 -0
  457. package/Utils/Dashboard/DashboardWidgetIds.js +6 -1
  458. package/Utils/Dashboard/DashboardWidgetSorts.js +25 -4
  459. package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +37 -0
  460. package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +37 -0
  461. package/Utils/Dashboard/MonitorListWidgetFormat.js +86 -0
  462. package/Utils/Dashboard/MonitorListWidgetFormat.mjs +10 -0
  463. package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +31 -0
  464. package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +31 -0
  465. package/Utils/GuidedSetup/OnCallPolicyRecords.js +89 -0
  466. package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +6 -0
  467. package/Utils/GuidedSetup/StatusPageRecords.d.mts +36 -0
  468. package/Utils/GuidedSetup/StatusPageRecords.d.ts +36 -0
  469. package/Utils/GuidedSetup/StatusPageRecords.js +105 -0
  470. package/Utils/GuidedSetup/StatusPageRecords.mjs +6 -0
  471. package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +41 -0
  472. package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +41 -0
  473. package/Utils/GuidedSetup/WebsiteMonitorRecords.js +204 -0
  474. package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +9 -0
  475. package/Utils/Markdown/InlineImageDataUri.d.mts +9 -0
  476. package/Utils/Markdown/InlineImageDataUri.d.ts +9 -0
  477. package/Utils/Markdown/InlineImageDataUri.js +17 -1
  478. package/Utils/Markdown/InlineImageDataUri.mjs +1 -0
  479. package/Utils/Markdown/LinkReferenceDefinitions.d.mts +12 -0
  480. package/Utils/Markdown/LinkReferenceDefinitions.d.ts +12 -0
  481. package/Utils/Markdown/LinkReferenceDefinitions.js +539 -0
  482. package/Utils/Markdown/LinkReferenceDefinitions.mjs +4 -0
  483. package/Utils/Metrics/MetricQueryCloudAggregation.js +2 -4
  484. package/Utils/Monitor/ExternalStatusPageReading.d.mts +9 -0
  485. package/Utils/Monitor/ExternalStatusPageReading.d.ts +9 -0
  486. package/Utils/Monitor/ExternalStatusPageReading.js +77 -8
  487. package/Utils/Monitor/ExternalStatusPageReading.mjs +3 -0
  488. package/Utils/Monitor/ExternalStatusPageScope.js +17 -1
  489. package/Utils/Monitor/MonitorDestinationUtil.js +2 -1
  490. package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +2 -1
  491. package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +2 -1
  492. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +10 -1
  493. package/Utils/Monitor/MonitorRootCauseWording.js +28 -24
  494. package/Utils/Monitor/MonitorStatusHistoryUtil.d.mts +1 -0
  495. package/Utils/Monitor/MonitorStatusHistoryUtil.d.ts +1 -0
  496. package/Utils/Monitor/MonitorStatusHistoryUtil.js +1 -0
  497. package/Utils/Monitor/MonitorStepMetricQueries.js +2 -1
  498. package/Utils/Monitor/MonitorStepsValuesUtil.d.mts +13 -0
  499. package/Utils/Monitor/MonitorStepsValuesUtil.d.ts +13 -0
  500. package/Utils/Monitor/MonitorStepsValuesUtil.js +80 -0
  501. package/Utils/Monitor/MonitorStepsValuesUtil.mjs +2 -0
  502. package/Utils/Monitor/MonitorSummaryProbeUtil.d.mts +2 -0
  503. package/Utils/Monitor/MonitorSummaryProbeUtil.d.ts +2 -0
  504. package/Utils/Monitor/MonitorSummaryProbeUtil.js +13 -17
  505. package/Utils/Monitor/MonitorSummarySnapshotUtil.js +5 -3
  506. package/Utils/Monitor/MonitorUptimeSummaryUtil.d.mts +1 -1
  507. package/Utils/Monitor/MonitorUptimeSummaryUtil.d.ts +1 -1
  508. package/Utils/Monitor/MonitorUptimeSummaryUtil.js +1 -0
  509. package/Utils/Monitor/MonitoringOff.d.mts +20 -0
  510. package/Utils/Monitor/MonitoringOff.d.ts +20 -0
  511. package/Utils/Monitor/MonitoringOff.js +81 -0
  512. package/Utils/Monitor/MonitoringOff.mjs +4 -0
  513. package/Utils/Monitor/NotOperationalMonitorQuery.js +9 -7
  514. package/Utils/Monitor/StateChangeLogScreenshots.d.mts +8 -0
  515. package/Utils/Monitor/StateChangeLogScreenshots.d.ts +8 -0
  516. package/Utils/Monitor/StateChangeLogScreenshots.js +116 -0
  517. package/Utils/Monitor/StateChangeLogScreenshots.mjs +3 -0
  518. package/Utils/NetworkDevice/Naming/NamingLookup.d.mts +1 -1
  519. package/Utils/NetworkDevice/Naming/NamingLookup.d.ts +1 -1
  520. package/Utils/NetworkDevice/Naming/NamingLookup.js +14 -4
  521. package/Utils/NetworkDevice/Naming/NamingLookup.mjs +1 -0
  522. package/Utils/Slo/SloErrorBudgetPolicy.d.mts +2 -1
  523. package/Utils/Slo/SloErrorBudgetPolicy.d.ts +2 -1
  524. package/Utils/Slo/SloErrorBudgetPolicy.js +8 -2
  525. package/Utils/Slo/SloListWidgetFormat.d.mts +7 -1
  526. package/Utils/Slo/SloListWidgetFormat.d.ts +7 -1
  527. package/Utils/Slo/SloListWidgetFormat.js +20 -26
  528. package/Utils/Slo/SloOverviewText.d.mts +6 -1
  529. package/Utils/Slo/SloOverviewText.d.ts +6 -1
  530. package/Utils/Slo/SloOverviewText.js +3 -3
  531. package/Utils/Slo/SloProjection.d.mts +18 -0
  532. package/Utils/Slo/SloProjection.d.ts +18 -0
  533. package/Utils/Slo/SloProjection.js +53 -12
  534. package/Utils/Slo/SloProjection.mjs +2 -0
  535. package/Utils/Slo/SloUtil.d.mts +18 -9
  536. package/Utils/Slo/SloUtil.d.ts +18 -9
  537. package/Utils/Slo/SloUtil.js +47 -10
  538. package/Utils/Slo/SloWidgetFormat.d.mts +69 -11
  539. package/Utils/Slo/SloWidgetFormat.d.ts +69 -11
  540. package/Utils/Slo/SloWidgetFormat.js +198 -50
  541. package/Utils/Slo/SloWidgetFormat.mjs +7 -0
  542. package/Utils/StatusPage/FrozenMonitorResources.d.mts +41 -0
  543. package/Utils/StatusPage/FrozenMonitorResources.d.ts +41 -0
  544. package/Utils/StatusPage/FrozenMonitorResources.js +155 -0
  545. package/Utils/StatusPage/FrozenMonitorResources.mjs +4 -0
  546. package/Utils/StatusPage/GroupNestingLayout.d.mts +2 -0
  547. package/Utils/StatusPage/GroupNestingLayout.d.ts +2 -0
  548. package/Utils/StatusPage/GroupNestingLayout.js +12 -0
  549. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.mts +48 -0
  550. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.ts +48 -0
  551. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.js +181 -0
  552. package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.mjs +2 -0
  553. package/Utils/StatusPage/ResourceExplorer.d.mts +1 -10
  554. package/Utils/StatusPage/ResourceExplorer.d.ts +1 -10
  555. package/Utils/StatusPage/ResourceExplorer.js +11 -29
  556. package/Utils/StatusPage/ResourceUptime.d.mts +6 -1
  557. package/Utils/StatusPage/ResourceUptime.d.ts +6 -1
  558. package/Utils/StatusPage/ResourceUptime.js +31 -6
  559. package/Utils/StatusPage/StatusPageSummaryBuilder.d.mts +1 -0
  560. package/Utils/StatusPage/StatusPageSummaryBuilder.d.ts +1 -0
  561. package/Utils/StatusPage/StatusPageSummaryBuilder.js +12 -1
  562. package/Utils/StatusPage/StatusPageUptimeTimezone.d.mts +41 -0
  563. package/Utils/StatusPage/StatusPageUptimeTimezone.d.ts +41 -0
  564. package/Utils/StatusPage/StatusPageUptimeTimezone.js +114 -0
  565. package/Utils/StatusPage/StatusPageUptimeTimezone.mjs +2 -0
  566. package/Utils/StatusPage/UptimeDailyAggregateUtil.d.mts +3 -1
  567. package/Utils/StatusPage/UptimeDailyAggregateUtil.d.ts +3 -1
  568. package/Utils/StatusPage/UptimeDailyAggregateUtil.js +69 -50
  569. package/Utils/Telemetry/CloudInstanceIdentity.js +12 -7
  570. package/Utils/Uptime/DayUptimeGraphUtil.d.mts +8 -0
  571. package/Utils/Uptime/DayUptimeGraphUtil.d.ts +8 -0
  572. package/Utils/Uptime/DayUptimeGraphUtil.js +41 -6
  573. package/Utils/Uptime/UptimeMaintenanceUtil.d.mts +3 -0
  574. package/Utils/Uptime/UptimeMaintenanceUtil.d.ts +3 -0
  575. package/Utils/Uptime/UptimeMaintenanceUtil.js +49 -0
  576. package/Utils/Uptime/UptimeUtil.d.mts +38 -1
  577. package/Utils/Uptime/UptimeUtil.d.ts +38 -1
  578. package/Utils/Uptime/UptimeUtil.js +270 -75
  579. package/Utils/Uptime/WorstStatusTimeline.d.mts +31 -0
  580. package/Utils/Uptime/WorstStatusTimeline.d.ts +31 -0
  581. package/Utils/Uptime/WorstStatusTimeline.js +190 -0
  582. package/Utils/Uptime/WorstStatusTimeline.mjs +2 -0
  583. package/Utils/Workspace/WorkspaceSummarySetup.d.mts +25 -0
  584. package/Utils/Workspace/WorkspaceSummarySetup.d.ts +25 -0
  585. package/Utils/Workspace/WorkspaceSummarySetup.js +215 -0
  586. package/Utils/Workspace/WorkspaceSummarySetup.mjs +11 -0
  587. package/package.json +1 -1
  588. package/Utils/StatusPage/ArchivedMonitorResources.d.mts +0 -10
  589. package/Utils/StatusPage/ArchivedMonitorResources.d.ts +0 -10
  590. package/Utils/StatusPage/ArchivedMonitorResources.js +0 -33
  591. package/Utils/StatusPage/ArchivedMonitorResources.mjs +0 -2
@@ -3,9 +3,10 @@ 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
- exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN = exports.EXTERNAL_STATUS_PAGE_UNNAMED_INCIDENT = exports.EXTERNAL_STATUS_PAGE_MAX_INCIDENTS = exports.EXTERNAL_STATUS_PAGE_MAX_COMPONENTS = void 0;
6
+ exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF = exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE = exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_NOT_MONITORED = exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN = exports.EXTERNAL_STATUS_PAGE_UNNAMED_INCIDENT = exports.EXTERNAL_STATUS_PAGE_MAX_INCIDENTS = exports.EXTERNAL_STATUS_PAGE_MAX_COMPONENTS = void 0;
7
7
  const ExternalStatusPageComponentStatusUtil_1 = __importDefault(require("./ExternalStatusPageComponentStatusUtil"));
8
8
  const TrailingRuns_1 = require("../TrailingRuns");
9
+ const Translator_1 = require("../../Types/Translator");
9
10
  /*
10
11
  * WHAT A STATUS PAGE SAYS, READ FROM ITS ANSWERS.
11
12
  *
@@ -34,8 +35,41 @@ exports.EXTERNAL_STATUS_PAGE_MAX_COMPONENTS = 5000;
34
35
  exports.EXTERNAL_STATUS_PAGE_MAX_INCIDENTS = 1000;
35
36
  // The name an incident goes by when the page gives it none.
36
37
  exports.EXTERNAL_STATUS_PAGE_UNNAMED_INCIDENT = "Unknown incident";
38
+ /*
39
+ * ONEUPTIME'S OWN NOTES ON A ONEUPTIME PAGE'S COMPONENT.
40
+ *
41
+ * A OneUptime page's resource is described by its status's name, which is
42
+ * the page's own word - unless the page gives it no status, when the probe
43
+ * writes a note of its own as the component's description. Each is a
44
+ * translation key (the Dashboard's npm run i18n:extract reads this
45
+ * directory), so the monitor's summary draws it in the reader's language
46
+ * (readOneUptimeNote) while the probe stores the English, as every check's
47
+ * description is stored.
48
+ */
37
49
  // A OneUptime page's component's description when the page does not show its status.
38
- exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN = "The status page does not show this resource's status.";
50
+ exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN = (0, Translator_1.translationKey)("The status page does not show this resource's status.");
51
+ /*
52
+ * A OneUptime page's component's description when nothing checks it: its
53
+ * monitoring is off, so the page shows it as not monitored and gives it no
54
+ * status (StatusPageSummaryResource.isMonitored).
55
+ */
56
+ exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_NOT_MONITORED = (0, Translator_1.translationKey)("The status page shows this resource as not monitored.");
57
+ /*
58
+ * A OneUptime page's component's description while a scheduled maintenance
59
+ * event in progress affects it: the events' titles - the page's own words -
60
+ * after the note, or the note alone when they have none. The note alone
61
+ * only repeats the component's status (Under Maintenance), which the
62
+ * summary says once, so it is no translation key.
63
+ */
64
+ exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE = "Under maintenance";
65
+ exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF = (0, Translator_1.translationKey)("Under maintenance: {{events}}");
66
+ // What comes before the events' titles in a note of maintenance.
67
+ const UNDER_MAINTENANCE_OF_PREFIX = exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF.slice(0, exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF.indexOf("{{events}}"));
68
+ // The notes that are whole sentences, with nothing of the page's in them.
69
+ const ONEUPTIME_SENTENCE_NOTES = [
70
+ exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN,
71
+ exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_NOT_MONITORED,
72
+ ];
39
73
  const isRecord = (value) => {
40
74
  return typeof value === "object" && value !== null && !Array.isArray(value);
41
75
  };
@@ -313,8 +347,8 @@ class ExternalStatusPageReading {
313
347
  * status is the value the page's status stands for
314
348
  * (ExternalStatusPageComponentStatusUtil) - under maintenance while a
315
349
  * scheduled maintenance event in progress affects it, whatever its
316
- * monitors' status. Each active incident affects the resources it names,
317
- * by their ids.
350
+ * monitors' status, and unknown while the page shows it as not monitored.
351
+ * Each active incident affects the resources it names, by their ids.
318
352
  */
319
353
  static readOneUptimeSummary(summary) {
320
354
  const maintenanceTitles = new Map();
@@ -335,8 +369,11 @@ class ExternalStatusPageReading {
335
369
  if (resource.isUnderMaintenance) {
336
370
  description =
337
371
  titles.length > 0
338
- ? `Under maintenance: ${titles.join(", ")}`
339
- : "Under maintenance";
372
+ ? (0, Translator_1.fillTemplate)(exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF, { events: titles.join(", ") })
373
+ : exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE;
374
+ }
375
+ else if (!resource.isMonitored) {
376
+ description = exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_NOT_MONITORED;
340
377
  }
341
378
  else if (!resource.currentStatus) {
342
379
  description = exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN;
@@ -344,16 +381,21 @@ class ExternalStatusPageReading {
344
381
  else {
345
382
  description = resource.currentStatus.name;
346
383
  }
347
- return {
384
+ const component = {
348
385
  key: resource.id,
349
386
  name: resource.name,
350
387
  groupName: resource.groupName || undefined,
351
388
  status: ExternalStatusPageComponentStatusUtil_1.default.fromStatusPageStatus({
352
- status: resource.currentStatus,
389
+ // A status nothing checks says nothing now, whatever was sent.
390
+ status: resource.isMonitored ? resource.currentStatus : null,
353
391
  isUnderMaintenance: resource.isUnderMaintenance,
354
392
  }),
355
393
  description: description,
356
394
  };
395
+ if (!resource.isMonitored) {
396
+ component.isMonitored = false;
397
+ }
398
+ return component;
357
399
  });
358
400
  const namesById = new Map();
359
401
  for (const resource of summary.resources) {
@@ -376,5 +418,32 @@ class ExternalStatusPageReading {
376
418
  });
377
419
  return { components: components, incidents: incidents };
378
420
  }
421
+ /*
422
+ * One of OneUptime's own notes on a OneUptime page's component, read
423
+ * back from the description readOneUptimeSummary wrote, so it can be
424
+ * drawn in the reader's language: the note's English, and the page's
425
+ * words in it - the maintenance events' titles, as written. Null for any
426
+ * other description, which is the page's own words and stays as written.
427
+ *
428
+ * Only a OneUptime page's description is read this way (the caller asks
429
+ * for that provider): an Atlassian Statuspage's component can be
430
+ * described "Under maintenance: ..." by the people who run it.
431
+ */
432
+ static readOneUptimeNote(description) {
433
+ const text = (description || "").trim();
434
+ if (ONEUPTIME_SENTENCE_NOTES.includes(text)) {
435
+ return { template: text, values: {} };
436
+ }
437
+ if (text.startsWith(UNDER_MAINTENANCE_OF_PREFIX)) {
438
+ const events = text.slice(UNDER_MAINTENANCE_OF_PREFIX.length);
439
+ if (events.trim()) {
440
+ return {
441
+ template: exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF,
442
+ values: { events: events },
443
+ };
444
+ }
445
+ }
446
+ return null;
447
+ }
379
448
  }
380
449
  exports.default = ExternalStatusPageReading;
@@ -2,5 +2,8 @@ import commonJsModule from "./ExternalStatusPageReading.js";
2
2
  export default commonJsModule.default;
3
3
  export const EXTERNAL_STATUS_PAGE_MAX_COMPONENTS = commonJsModule.EXTERNAL_STATUS_PAGE_MAX_COMPONENTS;
4
4
  export const EXTERNAL_STATUS_PAGE_MAX_INCIDENTS = commonJsModule.EXTERNAL_STATUS_PAGE_MAX_INCIDENTS;
5
+ export const EXTERNAL_STATUS_PAGE_ONEUPTIME_NOT_MONITORED = commonJsModule.EXTERNAL_STATUS_PAGE_ONEUPTIME_NOT_MONITORED;
5
6
  export const EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN = commonJsModule.EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN;
7
+ export const EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE = commonJsModule.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE;
8
+ export const EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF = commonJsModule.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF;
6
9
  export const EXTERNAL_STATUS_PAGE_UNNAMED_INCIDENT = commonJsModule.EXTERNAL_STATUS_PAGE_UNNAMED_INCIDENT;
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.EXTERNAL_STATUS_PAGE_MAX_REPORTED_INCIDENT_NAME_LENGTH = exports.EXTERNAL_STATUS_PAGE_MAX_REPORTED_INCIDENT_NAMES = void 0;
7
7
  const ExternalStatusPageComponentNames_1 = __importDefault(require("./ExternalStatusPageComponentNames"));
8
+ const ExternalStatusPageComponentStatusUtil_1 = require("./ExternalStatusPageComponentStatusUtil");
8
9
  /*
9
10
  * WHAT ON A STATUS PAGE AN EXTERNAL STATUS PAGE MONITOR WATCHES.
10
11
  *
@@ -21,6 +22,8 @@ const ExternalStatusPageComponentNames_1 = __importDefault(require("./ExternalSt
21
22
  * - the overall status is the page's own while it watches the whole page,
22
23
  * and otherwise the worst status of the components in scope (degraded
23
24
  * when one of their incidents is open while they all say operational).
25
+ * A component the page shows as not monitored decides nothing, and
26
+ * when every component in scope is so the status is unknown.
24
27
  *
25
28
  * What it leaves out is said too, so the person can tell a quiet monitor
26
29
  * from one that watches nothing: the chosen names no component on the
@@ -99,11 +102,24 @@ class ExternalStatusPageScope {
99
102
  * Derives an overall status from the (already scoped) component list. Returns a
100
103
  * standard status string (e.g. "operational", "degraded_performance",
101
104
  * "major_outage") so it is comparable in monitor criteria.
105
+ *
106
+ * A component the page shows as not monitored (isMonitored false: a
107
+ * OneUptime page's resource whose monitoring is off) decides nothing, as
108
+ * on the page's own banner. When every component is so, and no incident
109
+ * is open on them, there is no status to give: unknown.
102
110
  */
103
111
  static deriveOverallStatus(components, scopedIncidentCount) {
112
+ const monitored = components.filter((component) => {
113
+ return component.isMonitored !== false;
114
+ });
115
+ if (components.length > 0 &&
116
+ monitored.length === 0 &&
117
+ scopedIncidentCount === 0) {
118
+ return ExternalStatusPageComponentStatusUtil_1.ExternalStatusPageComponentStatusValue.Unknown;
119
+ }
104
120
  let worstStatus = "operational";
105
121
  let worstRank = 0;
106
- for (const component of components) {
122
+ for (const component of monitored) {
107
123
  const rank = ExternalStatusPageScope.getStatusRank(component.status);
108
124
  if (rank > worstRank) {
109
125
  worstRank = rank;
@@ -101,7 +101,8 @@ class MonitorDestinationUtil {
101
101
  destination: undefined,
102
102
  error: err instanceof Exception_1.default
103
103
  ? err.getMessage()
104
- : (err === null || err === void 0 ? void 0 : err.message) || "Invalid Destination",
104
+ : (err === null || err === void 0 ? void 0 : err.message) ||
105
+ "This is not an address OneUptime can monitor. Check it for typos.",
105
106
  };
106
107
  }
107
108
  }
@@ -148,6 +148,7 @@ export interface MonitorOverviewPresentation {
148
148
  pulse: MonitorOverviewPulse;
149
149
  freshness: MonitorCheckFreshness;
150
150
  isNeverReported?: boolean | undefined;
151
+ isMonitoringOff?: boolean | undefined;
151
152
  facts: Array<MonitorOverviewFact>;
152
153
  target: MonitorOverviewTarget | null;
153
154
  sections: MonitorOverviewSections;
@@ -159,7 +160,7 @@ export default class MonitorOverviewPresentationUtil {
159
160
  runState: MonitorOverviewRunState;
160
161
  }): Array<MonitorOverviewMoreActionKey>;
161
162
  static getRunState(input: MonitorOverviewPresentationInput): MonitorOverviewRunState;
162
- static getUptimeCaveat(presentation: Pick<MonitorOverviewPresentation, "family" | "runState" | "isNeverReported">): MonitorUptimeCaveat | null;
163
+ static getUptimeCaveat(presentation: Pick<MonitorOverviewPresentation, "family" | "runState" | "isNeverReported" | "isMonitoringOff">): MonitorUptimeCaveat | null;
163
164
  static getStatusTone(status: MonitorOverviewStatusRef | undefined): MonitorOverviewTone;
164
165
  static getExpiryFact(data: {
165
166
  key: "certificate-expiry" | "domain-expiry";
@@ -148,6 +148,7 @@ export interface MonitorOverviewPresentation {
148
148
  pulse: MonitorOverviewPulse;
149
149
  freshness: MonitorCheckFreshness;
150
150
  isNeverReported?: boolean | undefined;
151
+ isMonitoringOff?: boolean | undefined;
151
152
  facts: Array<MonitorOverviewFact>;
152
153
  target: MonitorOverviewTarget | null;
153
154
  sections: MonitorOverviewSections;
@@ -159,7 +160,7 @@ export default class MonitorOverviewPresentationUtil {
159
160
  runState: MonitorOverviewRunState;
160
161
  }): Array<MonitorOverviewMoreActionKey>;
161
162
  static getRunState(input: MonitorOverviewPresentationInput): MonitorOverviewRunState;
162
- static getUptimeCaveat(presentation: Pick<MonitorOverviewPresentation, "family" | "runState" | "isNeverReported">): MonitorUptimeCaveat | null;
163
+ static getUptimeCaveat(presentation: Pick<MonitorOverviewPresentation, "family" | "runState" | "isNeverReported" | "isMonitoringOff">): MonitorUptimeCaveat | null;
163
164
  static getStatusTone(status: MonitorOverviewStatusRef | undefined): MonitorOverviewTone;
164
165
  static getExpiryFact(data: {
165
166
  key: "certificate-expiry" | "domain-expiry";
@@ -183,7 +183,7 @@ class MonitorOverviewPresentationUtil {
183
183
  static build(input) {
184
184
  const context = MonitorOverviewPresentationUtil.getContext(input);
185
185
  const hero = MonitorOverviewPresentationUtil.getHero(input, context);
186
- return Object.assign(Object.assign({ family: context.family, runState: context.runState }, hero), { moreActions: MonitorOverviewPresentationUtil.getMoreActions(context), pulse: MonitorOverviewPresentationUtil.getPulse(input, context), freshness: context.freshness.freshness, isNeverReported: MonitorOverviewPresentationUtil.isNeverReported(context), facts: MonitorOverviewPresentationUtil.getFacts(input, context), target: MonitorOverviewTargetUtil_1.default.getTarget({
186
+ return Object.assign(Object.assign({ family: context.family, runState: context.runState }, hero), { moreActions: MonitorOverviewPresentationUtil.getMoreActions(context), pulse: MonitorOverviewPresentationUtil.getPulse(input, context), freshness: context.freshness.freshness, isNeverReported: MonitorOverviewPresentationUtil.isNeverReported(context), isMonitoringOff: input.pause.isDisabled === true, facts: MonitorOverviewPresentationUtil.getFacts(input, context), target: MonitorOverviewTargetUtil_1.default.getTarget({
187
187
  monitorType: input.monitorType,
188
188
  monitorSteps: input.monitorSteps,
189
189
  serverHostname: input.agent.hostname,
@@ -216,8 +216,17 @@ class MonitorOverviewPresentationUtil {
216
216
  * monitoring is paused, while nothing checks, and before the first check
217
217
  * completes. A manual monitor has no checks to pause, so it never gets
218
218
  * one.
219
+ *
220
+ * Monitoring turned off is the exception (issue #6480): that time is not
221
+ * counted but left out, from the moment it was turned off, whatever the
222
+ * monitor's kind, so the windows say that instead - measured over less
223
+ * than their length. Archived, or paused by an incident or a scheduled
224
+ * maintenance event, the last status still counts: "paused".
219
225
  */
220
226
  static getUptimeCaveat(presentation) {
227
+ if (presentation.isMonitoringOff) {
228
+ return "monitoring-off";
229
+ }
221
230
  if (presentation.family === MonitorOverviewFamily_1.MonitorOverviewFamily.Manual) {
222
231
  return null;
223
232
  }
@@ -63,6 +63,9 @@ const Translator_1 = require("../../Types/Translator");
63
63
  *
64
64
  * Line by line, and only a whole line, or a label at a line's start, is
65
65
  * ever replaced: nothing else in the text is read as one of OneUptime's.
66
+ * A line that is replaced is written with mdText, as the engine wrote it:
67
+ * OneUptime's words placed as text, the rest of the line as it was stored
68
+ * (FeedAndChatPlainTextEscapedGuard holds the file to it).
66
69
  */
67
70
  // A section heading or a label OneUptime writes in bold, at a line's start.
68
71
  const BOLD_LABELS = [
@@ -133,12 +136,13 @@ const FILTER_CONDITIONS_MET = "Filter Conditions Met";
133
136
  const BOLD_LABEL_LINE = /^\*\*([^*\n]{1,80})\*\*(:?)(.*)$/;
134
137
  // "- Label: value", with a label of letters and spaces.
135
138
  const FACT_LINE = /^- ([A-Z][A-Za-z ]{0,40}): (.*)$/;
139
+ // A finding as an Any criteria's root cause writes it after its label.
136
140
  const asMarkdownText = (text) => {
137
- return (0, FeedMarkdown_1.mdText) `${text}`.toString();
141
+ return (0, FeedMarkdown_1.mdText) `${text}`;
138
142
  };
139
- // A finding as an All criteria's list has it ("\n- finding"), without the "- ".
140
- const asListItemText = (text) => {
141
- return (0, FeedMarkdown_1.mdText) `\n- ${text}`.toString().replace(/^\n- /, "");
143
+ // A finding's whole line in an All criteria's list: "- finding".
144
+ const asListItem = (text) => {
145
+ return (0, FeedMarkdown_1.mdText) `- ${text}`;
142
146
  };
143
147
  class MonitorRootCauseWording {
144
148
  static wordRootCause(data) {
@@ -151,20 +155,19 @@ class MonitorRootCauseWording {
151
155
  translator: translator,
152
156
  options: data.options,
153
157
  });
154
- // The finding the root cause has at a place, escaped as it is there.
155
- const findingAt = (text, escape) => {
158
+ /*
159
+ * The worded finding the text is, written as `write` writes it: the
160
+ * text is a finding when the English finding, written the same way, is
161
+ * the text.
162
+ */
163
+ const findingAt = (text, write) => {
156
164
  for (const finding of findings) {
157
- if (escape(finding.english) === text) {
158
- return finding;
165
+ if (write(finding.english).toString() === text) {
166
+ return write(finding.worded);
159
167
  }
160
168
  }
161
169
  return null;
162
170
  };
163
- /*
164
- * Each line OneUptime wrote is written again with mdText: its words, a
165
- * label or a finding, as text, and what the root cause has after them as
166
- * the Markdown it already is.
167
- */
168
171
  return data.rootCause
169
172
  .split("\n")
170
173
  .map((line) => {
@@ -172,6 +175,7 @@ class MonitorRootCauseWording {
172
175
  if (boldLabel && BOLD_LABEL_SET.has(boldLabel[1])) {
173
176
  const label = boldLabel[1];
174
177
  const stored = boldLabel[3] || "";
178
+ // What follows the label: as stored, unless this language words it.
175
179
  let rest = FeedMarkdown_1.default.asMarkdown(stored);
176
180
  // "**Filter Conditions Met**: <the finding, or All filters met.>"
177
181
  if (label === FILTER_CONDITIONS_MET && stored.startsWith(" ")) {
@@ -180,22 +184,22 @@ class MonitorRootCauseWording {
180
184
  rest = (0, FeedMarkdown_1.mdText) ` ${MonitorRootCauseWording.word(ALL_FILTERS_MET, translator)}`;
181
185
  }
182
186
  else {
183
- const finding = findingAt(said, asMarkdownText);
184
- if (finding !== null) {
185
- rest = (0, FeedMarkdown_1.mdText) ` ${finding.worded}`;
187
+ const worded = findingAt(said, asMarkdownText);
188
+ if (worded !== null) {
189
+ rest = (0, FeedMarkdown_1.mdText) ` ${worded}`;
186
190
  }
187
191
  }
188
192
  }
189
- const bold = MonitorRootCauseWording.boldLabel(label, translator);
190
- return (boldLabel[2] === ":"
191
- ? (0, FeedMarkdown_1.mdText) `${bold}:${rest}`
192
- : (0, FeedMarkdown_1.mdText) `${bold}${rest}`).toString();
193
+ const wordedLabel = MonitorRootCauseWording.boldLabel(label, translator);
194
+ return (boldLabel[2]
195
+ ? (0, FeedMarkdown_1.mdText) `${wordedLabel}:${rest}`
196
+ : (0, FeedMarkdown_1.mdText) `${wordedLabel}${rest}`).toString();
193
197
  }
194
198
  const fact = FACT_LINE.exec(line);
195
199
  if (fact && FACT_LABEL_SET.has(fact[1])) {
196
200
  const label = fact[1];
197
201
  const stored = fact[2] || "";
198
- // OneUptime's own yes or no is a word; any other value is as stored.
202
+ // OneUptime's own yes or no is worded; any other value is as stored.
199
203
  const value = YES_NO_FACTS.has(label) && (stored === "Yes" || stored === "No")
200
204
  ? MonitorRootCauseWording.word(stored, translator)
201
205
  : FeedMarkdown_1.default.asMarkdown(stored);
@@ -203,9 +207,9 @@ class MonitorRootCauseWording {
203
207
  }
204
208
  // "- <a finding>", under All filters met.
205
209
  if (line.startsWith("- ")) {
206
- const finding = findingAt(line.slice(2), asListItemText);
207
- if (finding !== null) {
208
- return (0, FeedMarkdown_1.mdText) `- ${finding.worded}`.toString();
210
+ const worded = findingAt(line, asListItem);
211
+ if (worded !== null) {
212
+ return worded.toString();
209
213
  }
210
214
  }
211
215
  return line;
@@ -7,6 +7,7 @@ export interface MonitorStatusChangeRow {
7
7
  startsAt: Date;
8
8
  endsAt: Date | undefined;
9
9
  isOngoing: boolean;
10
+ isMonitoringOff: boolean;
10
11
  }
11
12
  export default class MonitorStatusHistoryUtil {
12
13
  static getStatusSince(data: {
@@ -7,6 +7,7 @@ export interface MonitorStatusChangeRow {
7
7
  startsAt: Date;
8
8
  endsAt: Date | undefined;
9
9
  isOngoing: boolean;
10
+ isMonitoringOff: boolean;
10
11
  }
11
12
  export default class MonitorStatusHistoryUtil {
12
13
  static getStatusSince(data: {
@@ -81,6 +81,7 @@ class MonitorStatusHistoryUtil {
81
81
  startsAt: startsAt,
82
82
  endsAt: rowEndsAt !== null && rowEndsAt !== void 0 ? rowEndsAt : successorStartsAt,
83
83
  isOngoing: i === 0 && !rowEndsAt,
84
+ isMonitoringOff: row.isMonitoringOff === true,
84
85
  });
85
86
  }
86
87
  return changeRows;
@@ -571,7 +571,8 @@ class MonitorStepMetricQueries {
571
571
  formulaConfigs: metricViewConfig.formulaConfigs.filter((formulaConfig) => {
572
572
  return Boolean(formulaConfig && typeof formulaConfig === "object");
573
573
  }),
574
- rollingTime: settings.rollingTime || RollingTime_1.default.Past1Minute,
574
+ // Written another way ("15 minutes") or not at all, as the worker reads it.
575
+ rollingTime: RollingTimeUtil_1.default.fromValueOrDefault(settings.rollingTime),
575
576
  aggregatesWholeWindow: MonitorStepMetricMonitor_1.MonitorStepMetricMonitorUtil.aggregatesWholeWindow(metricMonitor),
576
577
  telemetryServiceIds: MonitorStepMetricQueries.getReadServiceIds({
577
578
  monitorType: input.monitorType,
@@ -0,0 +1,13 @@
1
+ import { JSONObject } from "../../Types/JSON.mjs";
2
+ import MonitorSteps from "../../Types/Monitor/MonitorSteps.mjs";
3
+ import MonitorType from "../../Types/Monitor/MonitorType.mjs";
4
+ export default class MonitorStepsValuesUtil {
5
+ static getUnreadableValueError(data: {
6
+ monitorType: MonitorType | undefined | null;
7
+ monitorSteps: MonitorSteps | JSONObject | null | undefined;
8
+ }): string | null;
9
+ static assertValuesReadable(data: {
10
+ monitorType: MonitorType | undefined | null;
11
+ monitorSteps: MonitorSteps | JSONObject | null | undefined;
12
+ }): void;
13
+ }
@@ -0,0 +1,13 @@
1
+ import { JSONObject } from "../../Types/JSON";
2
+ import MonitorSteps from "../../Types/Monitor/MonitorSteps";
3
+ import MonitorType from "../../Types/Monitor/MonitorType";
4
+ export default class MonitorStepsValuesUtil {
5
+ static getUnreadableValueError(data: {
6
+ monitorType: MonitorType | undefined | null;
7
+ monitorSteps: MonitorSteps | JSONObject | null | undefined;
8
+ }): string | null;
9
+ static assertValuesReadable(data: {
10
+ monitorType: MonitorType | undefined | null;
11
+ monitorSteps: MonitorSteps | JSONObject | null | undefined;
12
+ }): void;
13
+ }
@@ -0,0 +1,80 @@
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
+ const BadDataException_1 = __importDefault(require("../../Types/Exception/BadDataException"));
7
+ const CriteriaFilterValues_1 = __importDefault(require("../../Types/Monitor/CriteriaFilterValues"));
8
+ const MonitorStepRollingTime_1 = __importDefault(require("../../Types/Monitor/MonitorStepRollingTime"));
9
+ const MonitorSteps_1 = __importDefault(require("../../Types/Monitor/MonitorSteps"));
10
+ /*
11
+ * A monitor's (or template's) steps written with a value its checks cannot
12
+ * read are refused, whoever writes them: the API, a workflow, or an AI
13
+ * through the MCP server (the Terraform provider takes only the values
14
+ * OneUptime writes for a criteria, but not for a rolling time).
15
+ *
16
+ * A Metrics monitor an AI created through the MCP server was stored with
17
+ * its rolling time as "15 minutes" and its conditions as "GreaterThan" and
18
+ * "LessThanOrEqual". Every check read a window of no length, found no
19
+ * data, and its no-data rule opened an alert on every run - and its
20
+ * conditions, matching nothing, could never have fired on a value.
21
+ *
22
+ * A value written another way that means one ("15 minutes", "PT15M",
23
+ * "GreaterThan", ">") is not refused: reading the steps
24
+ * (MonitorStep.fromJSON, MonitorCriteriaInstance.fromJSON) stores it as
25
+ * the one it means. One that means none is refused, with the values it
26
+ * can take (MonitorStepRollingTime, CriteriaFilterValues).
27
+ */
28
+ class MonitorStepsValuesUtil {
29
+ /*
30
+ * Why these steps cannot be read - the first value, step by step, that
31
+ * means none of the values its field takes - or null when every one can.
32
+ * A rolling time is read only under the monitor's own type: it is the
33
+ * one its checks use. Steps that cannot be read at all say nothing here:
34
+ * their shape is refused where they are parsed.
35
+ */
36
+ static getUnreadableValueError(data) {
37
+ var _a, _b, _c, _d, _e, _f, _g;
38
+ if (!data.monitorSteps) {
39
+ return null;
40
+ }
41
+ let steps = [];
42
+ try {
43
+ steps =
44
+ ((_a = MonitorSteps_1.default.fromJSON(data.monitorSteps)
45
+ .data) === null || _a === void 0 ? void 0 : _a.monitorStepsInstanceArray) || [];
46
+ }
47
+ catch (_h) {
48
+ return null;
49
+ }
50
+ for (const step of steps) {
51
+ const rollingTimeError = MonitorStepRollingTime_1.default.getUnreadableError({
52
+ monitorType: data.monitorType,
53
+ stepData: step === null || step === void 0 ? void 0 : step.data,
54
+ });
55
+ if (rollingTimeError) {
56
+ return rollingTimeError;
57
+ }
58
+ const criteriaInstances = ((_d = (_c = (_b = step === null || step === void 0 ? void 0 : step.data) === null || _b === void 0 ? void 0 : _b.monitorCriteria) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.monitorCriteriaInstanceArray) || [];
59
+ for (const criteriaInstance of criteriaInstances) {
60
+ const errors = CriteriaFilterValues_1.default.getUnreadableErrors({
61
+ criteriaName: ((_e = criteriaInstance === null || criteriaInstance === void 0 ? void 0 : criteriaInstance.data) === null || _e === void 0 ? void 0 : _e.name) || "",
62
+ filterCondition: (_f = criteriaInstance === null || criteriaInstance === void 0 ? void 0 : criteriaInstance.data) === null || _f === void 0 ? void 0 : _f.filterCondition,
63
+ filters: (_g = criteriaInstance === null || criteriaInstance === void 0 ? void 0 : criteriaInstance.data) === null || _g === void 0 ? void 0 : _g.filters,
64
+ });
65
+ if (errors.length > 0) {
66
+ return errors[0];
67
+ }
68
+ }
69
+ }
70
+ return null;
71
+ }
72
+ // Refuses steps written with a value their checks cannot read (above).
73
+ static assertValuesReadable(data) {
74
+ const error = MonitorStepsValuesUtil.getUnreadableValueError(data);
75
+ if (error) {
76
+ throw new BadDataException_1.default(error);
77
+ }
78
+ }
79
+ }
80
+ exports.default = MonitorStepsValuesUtil;
@@ -0,0 +1,2 @@
1
+ import commonJsModule from "./MonitorStepsValuesUtil.js";
2
+ export default commonJsModule.default;
@@ -1,3 +1,4 @@
1
+ import { Translator } from "../../Types/Translator.mjs";
1
2
  export interface AttachedProbe {
2
3
  id: string;
3
4
  name: string;
@@ -16,6 +17,7 @@ export default class MonitorSummaryProbeUtil {
16
17
  }): string | null;
17
18
  static getProbeDropdownOptions(data: {
18
19
  probes: Array<AttachedProbe>;
20
+ translator?: Translator | undefined;
19
21
  }): Array<{
20
22
  label: string;
21
23
  value: string;
@@ -1,3 +1,4 @@
1
+ import { Translator } from "../../Types/Translator";
1
2
  export interface AttachedProbe {
2
3
  id: string;
3
4
  name: string;
@@ -16,6 +17,7 @@ export default class MonitorSummaryProbeUtil {
16
17
  }): string | null;
17
18
  static getProbeDropdownOptions(data: {
18
19
  probes: Array<AttachedProbe>;
20
+ translator?: Translator | undefined;
19
21
  }): Array<{
20
22
  label: string;
21
23
  value: string;
@@ -1,20 +1,9 @@
1
1
  "use strict";
2
- /*
3
- * The rules behind the "Monitor Summary" probe picker.
4
- *
5
- * That card used to be fed every probe in the project plus every global probe,
6
- * not the probes attached to the monitor being viewed. Choosing one of the
7
- * strangers answered "No summary available for the selected probe. Should be
8
- * few minutes for summary to show up." about data that could never arrive -
9
- * and because the list is project-probes-first, the card frequently *opened*
10
- * on one. Users read that as "I changed the probe and it was not applied".
11
- *
12
- * The picker is a view filter over data that already exists. It cannot change
13
- * which probe monitors a resource (that is a MonitorProbe row, edited under
14
- * Monitor > Probes), so it must never offer a probe that does not.
15
- */
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
3
  exports.MonitorSummaryProbeState = void 0;
4
+ const Translator_1 = require("../../Types/Translator");
5
+ // Option labels drawn without the reader's translator: English.
6
+ const ENGLISH = (0, Translator_1.createTranslator)(undefined);
18
7
  var MonitorSummaryProbeState;
19
8
  (function (MonitorSummaryProbeState) {
20
9
  // Nothing is monitoring this resource at all.
@@ -59,7 +48,9 @@ class MonitorSummaryProbeUtil {
59
48
  /*
60
49
  * The option labels. A disabled probe stays on the list - the user may well
61
50
  * want to look at what it collected before it was switched off - but saying
62
- * so is what stops "no summary" from looking like a bug.
51
+ * so is what stops "no summary" from looking like a bug. Given the
52
+ * reader's Translator, "(disabled)" and "Unknown" read in their language;
53
+ * a probe's name is its own.
63
54
  */
64
55
  static getProbeDropdownOptions(data) {
65
56
  return (data.probes || [])
@@ -67,9 +58,14 @@ class MonitorSummaryProbeUtil {
67
58
  return Boolean(probe && probe.id);
68
59
  })
69
60
  .map((probe) => {
70
- const name = probe.name || "Unknown";
61
+ const translator = data.translator || ENGLISH;
62
+ const name = probe.name || translator.translateText("Unknown") || "Unknown";
71
63
  return {
72
- label: probe.isEnabled ? name : `${name} (disabled)`,
64
+ label: probe.isEnabled
65
+ ? name
66
+ : translator.translateTemplate("{{name}} (disabled)", {
67
+ name: name,
68
+ }),
73
69
  value: probe.id,
74
70
  };
75
71
  });
@@ -43,9 +43,11 @@ const MonitorType_1 = __importStar(require("../../Types/Monitor/MonitorType"));
43
43
  /*
44
44
  * Synthetic monitors carry base64 screenshots, one per browser × screen
45
45
  * size, and a single check can run to several megabytes. createdStateLog
46
- * already stores them unbounded; this column will not. Past the budget we
47
- * drop the screenshots (the largest thing by far) and flag it, so the row
48
- * stays a sane size and the view can say why the images are missing.
46
+ * keeps none of them (StateChangeLogScreenshots), though incidents and
47
+ * alerts opened before that have them there, unbounded; this column keeps
48
+ * them while they fit. Past the budget we drop the screenshots (the largest
49
+ * thing by far) and flag it, so the row stays a sane size and the view can
50
+ * say why the images are missing.
49
51
  */
50
52
  exports.MonitorSummarySnapshotMaxSizeInBytes = 1024 * 1024;
51
53
  /*
@@ -3,7 +3,7 @@ import { MonitorUptimeSummary, MonitorUptimeSummaryStatus, MonitorUptimeWindowKe
3
3
  import { UptimeDayBucket } from "../../Types/StatusPage/UptimeDailyAggregate.mjs";
4
4
  import { Translator } from "../../Types/Translator.mjs";
5
5
  export type UptimeWindowKind = "Measured" | "NoData";
6
- export type MonitorUptimeCaveat = "paused" | "not-checking" | "no-results";
6
+ export type MonitorUptimeCaveat = "paused" | "not-checking" | "no-results" | "monitoring-off";
7
7
  export interface UptimeWindowPresentation {
8
8
  key: MonitorUptimeWindowKey;
9
9
  kind: UptimeWindowKind;
@@ -3,7 +3,7 @@ import { MonitorUptimeSummary, MonitorUptimeSummaryStatus, MonitorUptimeWindowKe
3
3
  import { UptimeDayBucket } from "../../Types/StatusPage/UptimeDailyAggregate";
4
4
  import { Translator } from "../../Types/Translator";
5
5
  export type UptimeWindowKind = "Measured" | "NoData";
6
- export type MonitorUptimeCaveat = "paused" | "not-checking" | "no-results";
6
+ export type MonitorUptimeCaveat = "paused" | "not-checking" | "no-results" | "monitoring-off";
7
7
  export interface UptimeWindowPresentation {
8
8
  key: MonitorUptimeWindowKey;
9
9
  kind: UptimeWindowKind;