@oneuptime/common 16.0.0 → 17.0.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 (572) hide show
  1. package/Models/AnalyticsModels/RumProductAnalyticsEvent.js +15 -6
  2. package/Models/AnalyticsModels/RumProductAnalyticsSession.js +27 -10
  3. package/Models/AnalyticsModels/RumProductAnalyticsUser.js +16 -4
  4. package/Models/AnalyticsModels/RumSession.js +12 -0
  5. package/Models/DatabaseModels/AlertSeverity.js +12 -3
  6. package/Models/DatabaseModels/DataAsset.d.mts +1 -0
  7. package/Models/DatabaseModels/DataAsset.d.ts +1 -0
  8. package/Models/DatabaseModels/DataAsset.js +23 -0
  9. package/Models/DatabaseModels/DataBiConnection.d.mts +2 -1
  10. package/Models/DatabaseModels/DataBiConnection.d.ts +2 -1
  11. package/Models/DatabaseModels/DataBiConnection.js +15 -0
  12. package/Models/DatabaseModels/DataCheck.d.mts +3 -0
  13. package/Models/DatabaseModels/DataCheck.d.ts +3 -0
  14. package/Models/DatabaseModels/DataCheck.js +49 -0
  15. package/Models/DatabaseModels/DataDashboard.d.mts +1 -0
  16. package/Models/DatabaseModels/DataDashboard.d.ts +1 -0
  17. package/Models/DatabaseModels/DataDashboard.js +15 -0
  18. package/Models/DatabaseModels/DataPipeline.d.mts +1 -0
  19. package/Models/DatabaseModels/DataPipeline.d.ts +1 -0
  20. package/Models/DatabaseModels/DataPipeline.js +25 -0
  21. package/Models/DatabaseModels/DataPipelineOwnerTeam.d.mts +19 -0
  22. package/Models/DatabaseModels/DataPipelineOwnerTeam.d.ts +19 -0
  23. package/Models/DatabaseModels/DataPipelineOwnerTeam.js +477 -0
  24. package/Models/DatabaseModels/DataPipelineOwnerTeam.mjs +2 -0
  25. package/Models/DatabaseModels/DataPipelineOwnerUser.d.mts +18 -0
  26. package/Models/DatabaseModels/DataPipelineOwnerUser.d.ts +18 -0
  27. package/Models/DatabaseModels/DataPipelineOwnerUser.js +476 -0
  28. package/Models/DatabaseModels/DataPipelineOwnerUser.mjs +2 -0
  29. package/Models/DatabaseModels/DataStore.d.mts +1 -0
  30. package/Models/DatabaseModels/DataStore.d.ts +1 -0
  31. package/Models/DatabaseModels/DataStore.js +23 -0
  32. package/Models/DatabaseModels/DataStoreFinding.d.mts +2 -0
  33. package/Models/DatabaseModels/DataStoreFinding.d.ts +2 -0
  34. package/Models/DatabaseModels/DataStoreFinding.js +21 -0
  35. package/Models/DatabaseModels/EmailLog.d.mts +1 -0
  36. package/Models/DatabaseModels/EmailLog.d.ts +1 -0
  37. package/Models/DatabaseModels/EmailLog.js +35 -0
  38. package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
  39. package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
  40. package/Models/DatabaseModels/GlobalConfig.js +128 -0
  41. package/Models/DatabaseModels/GlobalOidc.d.mts +1 -0
  42. package/Models/DatabaseModels/GlobalOidc.d.ts +1 -0
  43. package/Models/DatabaseModels/GlobalOidc.js +29 -0
  44. package/Models/DatabaseModels/IncidentSeverity.js +12 -3
  45. package/Models/DatabaseModels/Index.js +6 -0
  46. package/Models/DatabaseModels/Monitor.js +18 -0
  47. package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
  48. package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
  49. package/Models/DatabaseModels/NetworkDevice.js +49 -0
  50. package/Models/DatabaseModels/NetworkDeviceAutoImportRule.js +2 -2
  51. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
  52. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +6 -0
  53. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +6 -0
  54. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +156 -1
  55. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +1 -1
  56. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +1 -1
  57. package/Models/DatabaseModels/Probe.d.mts +4 -0
  58. package/Models/DatabaseModels/Probe.d.ts +4 -0
  59. package/Models/DatabaseModels/Probe.js +100 -0
  60. package/Models/DatabaseModels/ProductFeedback.d.mts +2 -1
  61. package/Models/DatabaseModels/ProductFeedback.d.ts +2 -1
  62. package/Models/DatabaseModels/ProductFeedback.js +34 -2
  63. package/Models/DatabaseModels/Project.d.mts +4 -1
  64. package/Models/DatabaseModels/Project.d.ts +4 -1
  65. package/Models/DatabaseModels/Project.js +147 -7
  66. package/Models/DatabaseModels/ProjectCallSMSConfig.js +8 -2
  67. package/Models/DatabaseModels/ProjectOidc.d.mts +1 -0
  68. package/Models/DatabaseModels/ProjectOidc.d.ts +1 -0
  69. package/Models/DatabaseModels/ProjectOidc.js +46 -0
  70. package/Models/DatabaseModels/Reseller.js +8 -2
  71. package/Models/DatabaseModels/ResellerPlan.js +12 -3
  72. package/Models/DatabaseModels/RumApplication.d.mts +1 -0
  73. package/Models/DatabaseModels/RumApplication.d.ts +1 -0
  74. package/Models/DatabaseModels/RumApplication.js +58 -0
  75. package/Models/DatabaseModels/RumSessionErasureRequest.d.mts +1 -0
  76. package/Models/DatabaseModels/RumSessionErasureRequest.d.ts +1 -0
  77. package/Models/DatabaseModels/RumSessionErasureRequest.js +40 -0
  78. package/Models/DatabaseModels/SecurityCaseTask.d.mts +1 -0
  79. package/Models/DatabaseModels/SecurityCaseTask.d.ts +1 -0
  80. package/Models/DatabaseModels/SecurityCaseTask.js +27 -0
  81. package/Models/DatabaseModels/ServerEmailLog.d.mts +12 -0
  82. package/Models/DatabaseModels/ServerEmailLog.d.ts +12 -0
  83. package/Models/DatabaseModels/ServerEmailLog.js +206 -0
  84. package/Models/DatabaseModels/ServerEmailLog.mjs +2 -0
  85. package/Models/DatabaseModels/StatusPageGroup.js +1 -1
  86. package/Models/DatabaseModels/StatusPageResource.js +1 -1
  87. package/Models/DatabaseModels/TelemetryException.js +15 -2
  88. package/Models/DatabaseModels/TelemetryIngestionKey.js +10 -0
  89. package/Models/DatabaseModels/User.d.mts +3 -0
  90. package/Models/DatabaseModels/User.d.ts +3 -0
  91. package/Models/DatabaseModels/User.js +66 -0
  92. package/Models/DatabaseModels/UserSession.d.mts +1 -0
  93. package/Models/DatabaseModels/UserSession.d.ts +1 -0
  94. package/Models/DatabaseModels/UserSession.js +32 -0
  95. package/Models/DatabaseModels/WorkspaceLiveMessage.js +21 -15
  96. package/Models/DatabaseModels/WorkspaceNotificationLog.js +17 -9
  97. package/Models/DatabaseModels/WorkspaceNotificationRule.js +8 -2
  98. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
  99. package/Server/Services/DatabaseService.d.mts +6 -0
  100. package/Server/Services/DatabaseService.d.ts +6 -0
  101. package/Server/Utils/Workspace/WorkspaceBase.d.mts +1 -0
  102. package/Server/Utils/Workspace/WorkspaceBase.d.ts +1 -0
  103. package/Types/AI/AIActionWords.js +1 -0
  104. package/Types/AI/AIChatPageContext.d.mts +1 -0
  105. package/Types/AI/AIChatPageContext.d.ts +1 -0
  106. package/Types/AI/AIChatPageContext.js +6 -0
  107. package/Types/AI/AIRunProducts.d.mts +14 -0
  108. package/Types/AI/AIRunProducts.d.ts +14 -0
  109. package/Types/AI/AIRunProducts.js +40 -0
  110. package/Types/AI/AIRunProducts.mjs +2 -0
  111. package/Types/AI/AskAiRatings.d.mts +31 -0
  112. package/Types/AI/AskAiRatings.d.ts +31 -0
  113. package/Types/AI/AskAiRatings.js +173 -0
  114. package/Types/AI/AskAiRatings.mjs +13 -0
  115. package/Types/Accounts/SignUpInvitation.d.mts +12 -0
  116. package/Types/Accounts/SignUpInvitation.d.ts +12 -0
  117. package/Types/Accounts/SignUpInvitation.js +84 -0
  118. package/Types/Accounts/SignUpInvitation.mjs +5 -0
  119. package/Types/Analytics/ActivationMilestone.d.mts +2 -1
  120. package/Types/Analytics/ActivationMilestone.d.ts +2 -1
  121. package/Types/Analytics/ActivationMilestone.js +11 -0
  122. package/Types/Analytics/ProductEvent.d.mts +11 -0
  123. package/Types/Analytics/ProductEvent.d.ts +11 -0
  124. package/Types/Analytics/ProductEvent.js +166 -13
  125. package/Types/Analytics/ProductEvent.mjs +3 -0
  126. package/Types/Backup/BackupScriptRun.d.mts +17 -0
  127. package/Types/Backup/BackupScriptRun.d.ts +17 -0
  128. package/Types/Backup/BackupScriptRun.js +96 -0
  129. package/Types/Backup/BackupScriptRun.mjs +6 -0
  130. package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.mts +2 -0
  131. package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.ts +2 -0
  132. package/Types/BaseDatabase/ReadAudience.d.mts +9 -0
  133. package/Types/BaseDatabase/ReadAudience.d.ts +9 -0
  134. package/Types/BaseDatabase/ReadAudience.js +2 -0
  135. package/Types/BaseDatabase/ReadAudience.mjs +1 -0
  136. package/Types/Cloud/CloudKeyMetricGroup.d.mts +17 -0
  137. package/Types/Cloud/CloudKeyMetricGroup.d.ts +17 -0
  138. package/Types/Cloud/CloudKeyMetricGroup.js +84 -0
  139. package/Types/Cloud/CloudKeyMetricGroup.mjs +5 -0
  140. package/Types/Cloud/CloudKeyMetrics.d.mts +28 -1
  141. package/Types/Cloud/CloudKeyMetrics.d.ts +28 -1
  142. package/Types/Cloud/CloudKeyMetrics.js +1209 -206
  143. package/Types/Cloud/CloudKeyMetrics.mjs +6 -0
  144. package/Types/Cloud/CloudResourceCatalog.js +43 -12
  145. package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +1 -0
  146. package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +1 -0
  147. package/Types/CloudConnection/CloudConnectionSetupCommands.js +49 -6
  148. package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +1 -0
  149. package/Types/CloudConnection/CloudStreamTemplate.js +6 -2
  150. package/Types/CreateFormAddress.d.mts +3 -0
  151. package/Types/CreateFormAddress.d.ts +3 -0
  152. package/Types/CreateFormAddress.js +17 -0
  153. package/Types/CreateFormAddress.mjs +4 -0
  154. package/Types/DataObservability/DataAssetFreshness.d.mts +5 -0
  155. package/Types/DataObservability/DataAssetFreshness.d.ts +5 -0
  156. package/Types/DataObservability/DataAssetFreshness.js +28 -5
  157. package/Types/DataObservability/DataAssetFreshness.mjs +1 -0
  158. package/Types/DataObservability/DataBiLineage.d.mts +69 -0
  159. package/Types/DataObservability/DataBiLineage.d.ts +69 -0
  160. package/Types/DataObservability/DataBiLineage.js +198 -0
  161. package/Types/DataObservability/DataBiLineage.mjs +13 -0
  162. package/Types/DataObservability/DataLineageColumnTrail.d.mts +2 -1
  163. package/Types/DataObservability/DataLineageColumnTrail.d.ts +2 -1
  164. package/Types/DataObservability/DataLineageColumnTrail.js +41 -3
  165. package/Types/DataObservability/DataLineageColumnTrail.mjs +1 -0
  166. package/Types/DataObservability/DataLineageMap.d.mts +67 -1
  167. package/Types/DataObservability/DataLineageMap.d.ts +67 -1
  168. package/Types/DataObservability/DataLineageMap.js +335 -3
  169. package/Types/DataObservability/DataLineageMap.mjs +14 -0
  170. package/Types/DataObservability/DataObservabilityApiTypes.d.mts +42 -2
  171. package/Types/DataObservability/DataObservabilityApiTypes.d.ts +42 -2
  172. package/Types/DataObservability/DataObservabilityApiTypes.js +21 -1
  173. package/Types/DataObservability/DataObservabilityApiTypes.mjs +4 -0
  174. package/Types/DataObservability/DataObservabilityAttention.d.mts +5 -0
  175. package/Types/DataObservability/DataObservabilityAttention.d.ts +5 -0
  176. package/Types/DataObservability/DataObservabilityAttention.js +48 -1
  177. package/Types/DataObservability/DataObservabilityAttention.mjs +5 -0
  178. package/Types/DataObservability/DataPipelineSchedule.d.mts +4 -0
  179. package/Types/DataObservability/DataPipelineSchedule.d.ts +4 -0
  180. package/Types/DataObservability/DataPipelineSchedule.js +26 -6
  181. package/Types/DataObservability/DataPipelineSchedule.mjs +1 -0
  182. package/Types/DataObservability/DataTableLineage.d.mts +6 -0
  183. package/Types/DataObservability/DataTableLineage.d.ts +6 -0
  184. package/Types/DataSecurity/DataSecurityApiTypes.d.mts +24 -0
  185. package/Types/DataSecurity/DataSecurityApiTypes.d.ts +24 -0
  186. package/Types/DataSecurity/DataSecurityApiTypes.js +21 -1
  187. package/Types/DataSecurity/DataSecurityApiTypes.mjs +2 -0
  188. package/Types/DataSecurity/FindingSampleRecord.d.mts +16 -0
  189. package/Types/DataSecurity/FindingSampleRecord.d.ts +16 -0
  190. package/Types/DataSecurity/FindingSampleRecord.js +112 -0
  191. package/Types/DataSecurity/FindingSampleRecord.mjs +6 -0
  192. package/Types/Database/AccessControl/PermissionScopeNarrowing.js +6 -0
  193. package/Types/Database/MoveInList.d.mts +41 -0
  194. package/Types/Database/MoveInList.d.ts +41 -0
  195. package/Types/Database/MoveInList.js +177 -0
  196. package/Types/Database/MoveInList.mjs +4 -0
  197. package/Types/Email/ServerEmailLog.d.mts +41 -0
  198. package/Types/Email/ServerEmailLog.d.ts +41 -0
  199. package/Types/Email/ServerEmailLog.js +136 -0
  200. package/Types/Email/ServerEmailLog.mjs +11 -0
  201. package/Types/Exception/ProductSwitchedOffException.d.mts +12 -0
  202. package/Types/Exception/ProductSwitchedOffException.d.ts +12 -0
  203. package/Types/Exception/ProductSwitchedOffException.js +38 -0
  204. package/Types/Exception/ProductSwitchedOffException.mjs +2 -0
  205. package/Types/Exception/UnexplainedError.d.mts +7 -0
  206. package/Types/Exception/UnexplainedError.d.ts +7 -0
  207. package/Types/Exception/UnexplainedError.js +36 -1
  208. package/Types/Exception/UnexplainedError.mjs +2 -0
  209. package/Types/InstallationHealth/InstallationHealth.d.mts +39 -0
  210. package/Types/InstallationHealth/InstallationHealth.d.ts +39 -0
  211. package/Types/InstallationHealth/InstallationHealth.js +163 -0
  212. package/Types/Kubernetes/KubernetesHealth.d.mts +16 -0
  213. package/Types/Kubernetes/KubernetesHealth.d.ts +16 -0
  214. package/Types/Kubernetes/KubernetesHealth.js +128 -6
  215. package/Types/Kubernetes/KubernetesHealth.mjs +2 -0
  216. package/Types/Monitor/CloudAppAlertTemplates.d.mts +3 -13
  217. package/Types/Monitor/CloudAppAlertTemplates.d.ts +3 -13
  218. package/Types/Monitor/CloudAppAlertTemplates.js +13 -199
  219. package/Types/Monitor/CriteriaFilter.d.mts +2 -1
  220. package/Types/Monitor/CriteriaFilter.d.ts +2 -1
  221. package/Types/Monitor/CriteriaFilter.js +9 -1
  222. package/Types/Monitor/CriteriaFilterTerms.js +1 -0
  223. package/Types/Monitor/MessageQueueAlertTemplates.d.mts +6 -0
  224. package/Types/Monitor/MessageQueueAlertTemplates.d.ts +6 -0
  225. package/Types/Monitor/MessageQueueAlertTemplates.js +32 -0
  226. package/Types/Monitor/MessageQueueAlertTemplates.mjs +2 -0
  227. package/Types/Monitor/MonitorCriteriaInstance.d.mts +2 -0
  228. package/Types/Monitor/MonitorCriteriaInstance.d.ts +2 -0
  229. package/Types/Monitor/MonitorCriteriaInstance.js +52 -0
  230. package/Types/Monitor/MonitorMetricType.d.mts +2 -1
  231. package/Types/Monitor/MonitorMetricType.d.ts +2 -1
  232. package/Types/Monitor/MonitorMetricType.js +1 -0
  233. package/Types/Monitor/MonitorStepLimit.d.mts +8 -0
  234. package/Types/Monitor/MonitorStepLimit.d.ts +8 -0
  235. package/Types/Monitor/MonitorStepLimit.js +62 -0
  236. package/Types/Monitor/MonitorStepLimit.mjs +3 -0
  237. package/Types/Monitor/MonitorSteps.js +5 -0
  238. package/Types/Monitor/MonitorType.js +2 -1
  239. package/Types/Monitor/ProbeStatusMonitor/ProbeStatusMonitorResponse.d.mts +5 -0
  240. package/Types/Monitor/ProbeStatusMonitor/ProbeStatusMonitorResponse.d.ts +5 -0
  241. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.mts +1 -1
  242. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.ts +1 -1
  243. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +111 -1
  244. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +7 -1
  245. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +7 -1
  246. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.js +15 -0
  247. package/Types/Monitor/RequestHealthAlertTemplates.d.mts +66 -0
  248. package/Types/Monitor/RequestHealthAlertTemplates.d.ts +66 -0
  249. package/Types/Monitor/RequestHealthAlertTemplates.js +227 -0
  250. package/Types/Monitor/RequestHealthAlertTemplates.mjs +4 -0
  251. package/Types/Monitor/ServerlessAlertTemplates.d.mts +23 -0
  252. package/Types/Monitor/ServerlessAlertTemplates.d.ts +23 -0
  253. package/Types/Monitor/ServerlessAlertTemplates.js +111 -0
  254. package/Types/Monitor/ServerlessAlertTemplates.mjs +7 -0
  255. package/Types/Monitor/ServiceAlertTemplates.d.mts +3 -0
  256. package/Types/Monitor/ServiceAlertTemplates.d.ts +3 -0
  257. package/Types/Monitor/ServiceAlertTemplates.js +61 -0
  258. package/Types/Monitor/ServiceAlertTemplates.mjs +2 -0
  259. package/Types/Monitor/TelemetryRulePreview.js +18 -6
  260. package/Types/Monitor/WhoIsTold.d.mts +71 -0
  261. package/Types/Monitor/WhoIsTold.d.ts +71 -0
  262. package/Types/Monitor/WhoIsTold.js +348 -121
  263. package/Types/Monitor/WhoIsTold.mjs +7 -0
  264. package/Types/NetworkAutomation/RuleRunResult.js +9 -5
  265. package/Types/NetworkDevice/DiscoveredDevice.d.mts +40 -0
  266. package/Types/NetworkDevice/DiscoveredDevice.d.ts +40 -0
  267. package/Types/NetworkDevice/DiscoveredDevice.js +205 -1
  268. package/Types/NetworkDevice/DiscoveredDevice.mjs +9 -0
  269. package/Types/NetworkDevice/DiscoveryImport.js +8 -3
  270. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.mts +26 -3
  271. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.ts +26 -3
  272. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.js +75 -3
  273. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.mjs +2 -0
  274. package/Types/Notification/WhoWasTold.d.mts +190 -0
  275. package/Types/Notification/WhoWasTold.d.ts +190 -0
  276. package/Types/Notification/WhoWasTold.js +662 -0
  277. package/Types/Notification/WhoWasTold.mjs +16 -0
  278. package/Types/NotificationRule/PagingLadderDefault.d.mts +75 -0
  279. package/Types/NotificationRule/PagingLadderDefault.d.ts +75 -0
  280. package/Types/NotificationRule/PagingLadderDefault.js +529 -0
  281. package/Types/NotificationRule/PagingLadderDefault.mjs +24 -0
  282. package/Types/OnCallDutyPolicy/EveryNewEventRules.d.mts +7 -0
  283. package/Types/OnCallDutyPolicy/EveryNewEventRules.d.ts +7 -0
  284. package/Types/OnCallDutyPolicy/EveryNewEventRules.js +53 -2
  285. package/Types/OnCallDutyPolicy/EveryNewEventRules.mjs +3 -0
  286. package/Types/OnCallDutyPolicy/NotificationSetupToFinish.d.mts +6 -0
  287. package/Types/OnCallDutyPolicy/NotificationSetupToFinish.d.ts +6 -0
  288. package/Types/OnCallDutyPolicy/NotificationSetupToFinish.js +27 -0
  289. package/Types/OnCallDutyPolicy/NotificationSetupToFinish.mjs +3 -0
  290. package/Types/OnCallDutyPolicy/OnCallFireDrill.d.mts +83 -0
  291. package/Types/OnCallDutyPolicy/OnCallFireDrill.d.ts +83 -0
  292. package/Types/OnCallDutyPolicy/OnCallFireDrill.js +105 -0
  293. package/Types/OnCallDutyPolicy/OnCallFireDrill.mjs +9 -0
  294. package/Types/OnCallDutyPolicy/OnCallPagePassOn.js +12 -4
  295. package/Types/OnCallDutyPolicy/OnCallRunLevel.d.mts +12 -0
  296. package/Types/OnCallDutyPolicy/OnCallRunLevel.d.ts +12 -0
  297. package/Types/OnCallDutyPolicy/OnCallRunLevel.js +69 -8
  298. package/Types/OnCallDutyPolicy/OnCallRunLevel.mjs +3 -0
  299. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +4 -0
  300. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +4 -0
  301. package/Types/OnCallDutyPolicy/OnCallTestPage.js +20 -7
  302. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +2 -0
  303. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +2 -0
  304. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +2 -0
  305. package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +14 -1
  306. package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +2 -0
  307. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +7 -0
  308. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +7 -0
  309. package/Types/OnCallDutyPolicy/UserOverrideEdit.js +63 -1
  310. package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +4 -0
  311. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +21 -1
  312. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +21 -1
  313. package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +46 -2
  314. package/Types/Permission.d.mts +8 -0
  315. package/Types/Permission.d.ts +8 -0
  316. package/Types/Permission.js +84 -0
  317. package/Types/Probe/ProbeBehind.d.mts +48 -0
  318. package/Types/Probe/ProbeBehind.d.ts +48 -0
  319. package/Types/Probe/ProbeBehind.js +196 -0
  320. package/Types/Probe/ProbeBehind.mjs +6 -0
  321. package/Types/Product/ProductRecordTables.d.mts +8 -0
  322. package/Types/Product/ProductRecordTables.d.ts +8 -0
  323. package/Types/Product/ProductRecordTables.js +847 -0
  324. package/Types/Product/ProductRecordTables.mjs +5 -0
  325. package/Types/Product/ProductUsage.d.mts +2 -0
  326. package/Types/Product/ProductUsage.d.ts +2 -0
  327. package/Types/Product/ProductUsage.js +41 -6
  328. package/Types/Product/ProductUsage.mjs +2 -0
  329. package/Types/Product/ServerProductOffReason.d.mts +4 -0
  330. package/Types/Product/ServerProductOffReason.d.ts +4 -0
  331. package/Types/Product/ServerProductOffReason.js +19 -0
  332. package/Types/Product/ServerProductOffReason.mjs +2 -0
  333. package/Types/Product/ServerProducts.d.mts +2 -4
  334. package/Types/Product/ServerProducts.d.ts +2 -4
  335. package/Types/Product/ServerProducts.js +19 -17
  336. package/Types/ProductFeedback/ProductFeedback.d.mts +45 -1
  337. package/Types/ProductFeedback/ProductFeedback.d.ts +45 -1
  338. package/Types/ProductFeedback/ProductFeedback.js +185 -5
  339. package/Types/ProductFeedback/ProductFeedback.mjs +11 -0
  340. package/Types/PushNotification/PushNotificationCategory.d.mts +1 -0
  341. package/Types/PushNotification/PushNotificationCategory.d.ts +1 -0
  342. package/Types/PushNotification/PushNotificationCategory.js +17 -6
  343. package/Types/PushNotification/PushNotificationCategory.mjs +1 -0
  344. package/Types/Rules/RuleCriteriaFieldRegistry.d.mts +18 -0
  345. package/Types/Rules/RuleCriteriaFieldRegistry.d.ts +18 -0
  346. package/Types/Rules/RuleCriteriaFieldRegistry.js +34 -1
  347. package/Types/Rules/RuleCriteriaFieldRegistry.mjs +4 -0
  348. package/Types/Rum/ProductAnalytics.d.mts +9 -0
  349. package/Types/Rum/ProductAnalytics.d.ts +9 -0
  350. package/Types/Rum/ProductAnalytics.js +56 -8
  351. package/Types/Rum/ProductAnalytics.mjs +6 -0
  352. package/Types/Rum/ProductAnalyticsEvents.js +2 -1
  353. package/Types/Rum/SessionReplay.d.mts +3 -0
  354. package/Types/Rum/SessionReplay.d.ts +3 -0
  355. package/Types/Rum/SessionReplay.js +35 -1
  356. package/Types/Rum/SessionReplay.mjs +2 -0
  357. package/Types/Runbook/RunbookTriggerType.d.mts +1 -0
  358. package/Types/Runbook/RunbookTriggerType.d.ts +1 -0
  359. package/Types/Runbook/RunbookTriggerType.js +19 -1
  360. package/Types/Runbook/RunbookTriggerType.mjs +1 -0
  361. package/Types/SSO/IdentityProviderSignOut.d.mts +24 -0
  362. package/Types/SSO/IdentityProviderSignOut.d.ts +24 -0
  363. package/Types/SSO/IdentityProviderSignOut.js +124 -0
  364. package/Types/SSO/IdentityProviderSignOut.mjs +10 -0
  365. package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +4 -0
  366. package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +4 -0
  367. package/Types/SecurityCase/SecurityCaseEventEvidence.js +12 -0
  368. package/Types/SecurityCase/SecurityCaseMatches.d.mts +78 -0
  369. package/Types/SecurityCase/SecurityCaseMatches.d.ts +78 -0
  370. package/Types/SecurityCase/SecurityCaseMatches.js +252 -0
  371. package/Types/SecurityCase/SecurityCaseMatches.mjs +17 -0
  372. package/Types/ServerSending/ProjectCanSend.d.mts +10 -0
  373. package/Types/ServerSending/ProjectCanSend.d.ts +10 -0
  374. package/Types/ServerSending/ProjectCanSend.js +49 -0
  375. package/Types/ServerSending/ProjectCanSend.mjs +4 -0
  376. package/Types/ServerSending/ServerAlerts.d.mts +78 -0
  377. package/Types/ServerSending/ServerAlerts.d.ts +78 -0
  378. package/Types/ServerSending/ServerAlerts.js +393 -0
  379. package/Types/ServerSending/ServerAlerts.mjs +8 -0
  380. package/Types/ServerSending/ServerSendingStatus.d.mts +6 -0
  381. package/Types/ServerSending/ServerSendingStatus.d.ts +6 -0
  382. package/Types/ServerSending/ServerSendingStatus.js +23 -0
  383. package/Types/ServerSending/ServerSetUpProblem.d.mts +46 -0
  384. package/Types/ServerSending/ServerSetUpProblem.d.ts +46 -0
  385. package/Types/ServerSending/ServerSetUpProblem.js +164 -0
  386. package/Types/ServerSending/ServerSetUpProblem.mjs +6 -0
  387. package/Types/ServerSetup/ServerSetupChecklist.d.mts +35 -1
  388. package/Types/ServerSetup/ServerSetupChecklist.d.ts +35 -1
  389. package/Types/ServerSetup/ServerSetupChecklist.js +270 -33
  390. package/Types/ServerSetup/ServerSetupChecklist.mjs +5 -0
  391. package/Types/ServerSetup/ServerTestSend.d.mts +11 -0
  392. package/Types/ServerSetup/ServerTestSend.d.ts +11 -0
  393. package/Types/ServerSetup/ServerTestSend.js +60 -3
  394. package/Types/ServerSetup/ServerTestSend.mjs +2 -0
  395. package/Types/ServiceLevelObjective/SloStatus.d.mts +3 -0
  396. package/Types/ServiceLevelObjective/SloStatus.d.ts +3 -0
  397. package/Types/ServiceLevelObjective/SloStatus.js +38 -0
  398. package/Types/ServiceLevelObjective/SloStatus.mjs +2 -0
  399. package/Types/ServiceLevelObjective/SloStatusChange.d.mts +10 -0
  400. package/Types/ServiceLevelObjective/SloStatusChange.d.ts +10 -0
  401. package/Types/ServiceLevelObjective/SloStatusChange.js +71 -0
  402. package/Types/ServiceLevelObjective/SloStatusChange.mjs +5 -0
  403. package/Types/SetupHealth/SetupHealth.d.mts +31 -3
  404. package/Types/SetupHealth/SetupHealth.d.ts +31 -3
  405. package/Types/SetupHealth/SetupHealth.js +333 -4
  406. package/Types/SetupHealth/SetupHealth.mjs +5 -0
  407. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +8 -5
  408. package/Types/StatusPage/StatusPagePublicName.d.mts +6 -0
  409. package/Types/StatusPage/StatusPagePublicName.d.ts +6 -0
  410. package/Types/StatusPage/StatusPagePublicName.js +32 -0
  411. package/Types/StatusPage/StatusPagePublicName.mjs +3 -0
  412. package/Types/Team/InvitationEmailsNotSent.d.mts +28 -0
  413. package/Types/Team/InvitationEmailsNotSent.d.ts +28 -0
  414. package/Types/Team/InvitationEmailsNotSent.js +261 -0
  415. package/Types/Team/InvitationEmailsNotSent.mjs +13 -0
  416. package/Types/Team/ProjectMemberSearch.d.mts +15 -0
  417. package/Types/Team/ProjectMemberSearch.d.ts +15 -0
  418. package/Types/Team/ProjectMemberSearch.js +180 -0
  419. package/Types/Team/ProjectMemberSearch.mjs +10 -0
  420. package/Types/Team/ProjectRemovalReach.d.mts +15 -0
  421. package/Types/Team/ProjectRemovalReach.d.ts +15 -0
  422. package/Types/Team/ProjectRemovalReach.js +154 -0
  423. package/Types/Team/ProjectRemovalReach.mjs +8 -0
  424. package/Types/Team/ResendInvitation.d.mts +27 -0
  425. package/Types/Team/ResendInvitation.d.ts +27 -0
  426. package/Types/Team/ResendInvitation.js +123 -0
  427. package/Types/Team/ResendInvitation.mjs +12 -0
  428. package/Types/UsedBy/UsedBy.d.mts +1 -0
  429. package/Types/UsedBy/UsedBy.d.ts +1 -0
  430. package/Types/UsedBy/UsedBy.js +2 -0
  431. package/Types/UsedBy/UsedByServerProducts.js +1 -0
  432. package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +27 -4
  433. package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +27 -4
  434. package/Types/WelcomeChecklist/WelcomeChecklist.js +166 -42
  435. package/Types/WelcomeChecklist/WelcomeChecklist.mjs +8 -0
  436. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +4 -1
  437. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +4 -1
  438. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +175 -33
  439. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +1 -0
  440. package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +1 -0
  441. package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +1 -0
  442. package/Types/WelcomeChecklist/WelcomeChecklistState.js +30 -1
  443. package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +1 -0
  444. package/Types/Workflow/Component.d.mts +0 -1
  445. package/Types/Workflow/Component.d.ts +0 -1
  446. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +1 -1
  447. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +1 -1
  448. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +23 -0
  449. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +23 -0
  450. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +12 -0
  451. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +12 -0
  452. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +106 -4
  453. package/Types/Workspace/WorkspaceMessagePayload.d.mts +2 -0
  454. package/Types/Workspace/WorkspaceMessagePayload.d.ts +2 -0
  455. package/Types/Workspace/WorkspaceMessagePayload.js +6 -1
  456. package/Types/Workspace/WorkspaceMessagePayload.mjs +1 -0
  457. package/UI/Components/Dropdown/Dropdown.d.mts +2 -0
  458. package/UI/Components/Dropdown/Dropdown.d.ts +2 -0
  459. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +6 -1
  460. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +6 -1
  461. package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +4 -1
  462. package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +4 -1
  463. package/Utils/Dashboard/MonitorListWidgetFormat.js +9 -4
  464. package/Utils/DataSecurity/CustomDataTypeDetector.js +3 -1
  465. package/Utils/DataSecurity/DetectorPrefilter.d.mts +9 -0
  466. package/Utils/DataSecurity/DetectorPrefilter.d.ts +9 -0
  467. package/Utils/DataSecurity/DetectorPrefilter.js +471 -0
  468. package/Utils/DataSecurity/DetectorPrefilter.mjs +6 -0
  469. package/Utils/DataSecurity/FieldClassifier.d.mts +2 -0
  470. package/Utils/DataSecurity/FieldClassifier.d.ts +2 -0
  471. package/Utils/DataSecurity/FieldClassifier.js +38 -8
  472. package/Utils/DataSecurity/OccurrenceExcerpt.d.mts +22 -0
  473. package/Utils/DataSecurity/OccurrenceExcerpt.d.ts +22 -0
  474. package/Utils/DataSecurity/OccurrenceExcerpt.js +270 -0
  475. package/Utils/DataSecurity/OccurrenceExcerpt.mjs +5 -0
  476. package/Utils/DataSecurity/TextScanner.d.mts +4 -0
  477. package/Utils/DataSecurity/TextScanner.d.ts +4 -0
  478. package/Utils/Monitor/DeviceMonitorDuplicates.d.mts +34 -0
  479. package/Utils/Monitor/DeviceMonitorDuplicates.d.ts +34 -0
  480. package/Utils/Monitor/DeviceMonitorDuplicates.js +134 -0
  481. package/Utils/Monitor/DeviceMonitorDuplicates.mjs +7 -0
  482. package/Utils/Monitor/DeviceMonitorTemplateUtil.d.mts +4 -0
  483. package/Utils/Monitor/DeviceMonitorTemplateUtil.d.ts +4 -0
  484. package/Utils/Monitor/DeviceMonitorTemplateUtil.js +33 -6
  485. package/Utils/Monitor/MonitorMetricType.js +11 -1
  486. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +21 -3
  487. package/Utils/Monitor/ProbeFailureCauses.js +4 -1
  488. package/Utils/Monitor/ProbeStatusMonitorUtil.d.mts +5 -1
  489. package/Utils/Monitor/ProbeStatusMonitorUtil.d.ts +5 -1
  490. package/Utils/Monitor/ProbeStatusMonitorUtil.js +106 -0
  491. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.mts +3 -0
  492. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.ts +3 -0
  493. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.js +33 -4
  494. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.mjs +1 -0
  495. package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.d.mts +33 -0
  496. package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.d.ts +33 -0
  497. package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.js +105 -0
  498. package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.mjs +8 -0
  499. package/Utils/NetworkDevice/SnmpCredentialUtil.d.mts +5 -0
  500. package/Utils/NetworkDevice/SnmpCredentialUtil.d.ts +5 -0
  501. package/Utils/NetworkDevice/SnmpCredentialUtil.js +28 -3
  502. package/Utils/NetworkDevice/SnmpCredentialUtil.mjs +3 -0
  503. package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.mts +1 -0
  504. package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.ts +1 -0
  505. package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.js +20 -1
  506. package/Utils/Rules/RuleCriteriaMatcher.d.mts +1 -0
  507. package/Utils/Rules/RuleCriteriaMatcher.d.ts +1 -0
  508. package/Utils/Rules/RuleCriteriaMatcher.js +6 -0
  509. package/Utils/Rules/RuleCriteriaOwnerMatch.d.mts +10 -0
  510. package/Utils/Rules/RuleCriteriaOwnerMatch.d.ts +10 -0
  511. package/Utils/Rules/RuleCriteriaOwnerMatch.js +83 -0
  512. package/Utils/Rules/RuleCriteriaOwnerMatch.mjs +4 -0
  513. package/Utils/SecurityCase/SecurityCaseMatchRules.d.mts +27 -0
  514. package/Utils/SecurityCase/SecurityCaseMatchRules.d.ts +27 -0
  515. package/Utils/SecurityCase/SecurityCaseMatchRules.js +377 -0
  516. package/Utils/SecurityCase/SecurityCaseMatchRules.mjs +9 -0
  517. package/Utils/Slo/SloBulkRecommendedPolicy.d.mts +35 -0
  518. package/Utils/Slo/SloBulkRecommendedPolicy.d.ts +35 -0
  519. package/Utils/Slo/SloBulkRecommendedPolicy.js +168 -0
  520. package/Utils/Slo/SloBulkRecommendedPolicy.mjs +6 -0
  521. package/Utils/Slo/SloBurnRateRuleState.js +3 -6
  522. package/Utils/Slo/SloErrorBudgetPolicy.d.mts +17 -0
  523. package/Utils/Slo/SloErrorBudgetPolicy.d.ts +17 -0
  524. package/Utils/Slo/SloErrorBudgetPolicy.js +72 -1
  525. package/Utils/Slo/SloErrorBudgetPolicy.mjs +4 -0
  526. package/Utils/Slo/SloFeedMarkdown.d.mts +5 -2
  527. package/Utils/Slo/SloFeedMarkdown.d.ts +5 -2
  528. package/Utils/Slo/SloFeedMarkdown.js +19 -7
  529. package/Utils/Slo/SloFeedMarkdown.mjs +1 -0
  530. package/Utils/Slo/SloHealth.d.mts +5 -0
  531. package/Utils/Slo/SloHealth.d.ts +5 -0
  532. package/Utils/Slo/SloHealth.js +27 -0
  533. package/Utils/Slo/SloListWidgetFormat.js +5 -3
  534. package/Utils/Slo/SloMetricType.js +6 -5
  535. package/Utils/Slo/SloMonitorsFirstCheck.d.mts +13 -0
  536. package/Utils/Slo/SloMonitorsFirstCheck.d.ts +13 -0
  537. package/Utils/Slo/SloMonitorsFirstCheck.js +78 -0
  538. package/Utils/Slo/SloMonitorsFirstCheck.mjs +3 -0
  539. package/Utils/Slo/SloOverviewText.js +7 -0
  540. package/Utils/Slo/SloStatusColor.d.mts +3 -0
  541. package/Utils/Slo/SloStatusColor.d.ts +3 -0
  542. package/Utils/Slo/SloStatusColor.js +3 -0
  543. package/Utils/Slo/SloStatusPosts.d.mts +18 -0
  544. package/Utils/Slo/SloStatusPosts.d.ts +18 -0
  545. package/Utils/Slo/SloStatusPosts.js +95 -0
  546. package/Utils/Slo/SloStatusPosts.mjs +3 -0
  547. package/Utils/StatusPage/GridAxisValues.d.mts +2 -0
  548. package/Utils/StatusPage/GridAxisValues.d.ts +2 -0
  549. package/Utils/StatusPage/GridAxisValues.js +33 -0
  550. package/Utils/StatusPage/GridAxisValues.mjs +3 -0
  551. package/Utils/StatusPage/GroupHierarchyView.d.mts +2 -2
  552. package/Utils/StatusPage/GroupHierarchyView.d.ts +2 -2
  553. package/Utils/StatusPage/GroupHierarchyView.js +13 -12
  554. package/Utils/StatusPage/GroupNestingLayout.d.mts +1 -0
  555. package/Utils/StatusPage/GroupNestingLayout.d.ts +1 -0
  556. package/Utils/StatusPage/GroupNestingLayout.js +25 -5
  557. package/Utils/StatusPage/ResourceExplorer.d.mts +2 -2
  558. package/Utils/StatusPage/ResourceExplorer.d.ts +2 -2
  559. package/Utils/StatusPage/ResourceExplorer.js +15 -21
  560. package/Utils/StatusPage/StatusColorsOnDark.d.mts +5 -3
  561. package/Utils/StatusPage/StatusColorsOnDark.d.ts +5 -3
  562. package/Utils/StatusPage/StatusColorsOnDark.js +18 -6
  563. package/Utils/StatusPage/StatusColorsOnDark.mjs +1 -0
  564. package/Utils/Telemetry/MobileAppFaults.d.mts +8 -0
  565. package/Utils/Telemetry/MobileAppFaults.d.ts +8 -0
  566. package/Utils/Telemetry/MobileAppFaults.js +69 -0
  567. package/Utils/Telemetry/MobileAppFaults.mjs +6 -0
  568. package/Utils/Workspace/WorkspaceRefusal.d.mts +108 -0
  569. package/Utils/Workspace/WorkspaceRefusal.d.ts +108 -0
  570. package/Utils/Workspace/WorkspaceRefusal.js +769 -0
  571. package/Utils/Workspace/WorkspaceRefusal.mjs +50 -0
  572. package/package.json +4 -1
@@ -1580,9 +1580,9 @@ class MonitorOverviewPresentationUtil {
1580
1580
  }
1581
1581
  /*
1582
1582
  * A Probe Status monitor's newest evaluation, in the hero: which of its
1583
- * probes are disconnected, by name, or that they all are connected. It
1584
- * reads the same log row as the pulse's "Last evaluated", so the two
1585
- * never describe different evaluations.
1583
+ * probes are disconnected, by name; else which are behind (#9501); or
1584
+ * that they all are connected. It reads the same log row as the pulse's
1585
+ * "Last evaluated", so the two never describe different evaluations.
1586
1586
  */
1587
1587
  static getProbeStatusResultFact(input, context) {
1588
1588
  const t = context.t;
@@ -1641,6 +1641,24 @@ class MonitorOverviewPresentationUtil {
1641
1641
  tone: "danger",
1642
1642
  };
1643
1643
  }
1644
+ /*
1645
+ * Connected, but some do not keep up (#9501): which, by name - their
1646
+ * monitors checked, or network devices polled, later than set.
1647
+ */
1648
+ const behind = ProbeStatusMonitorUtil_1.default.getBehindProbes({ probes: probes });
1649
+ if (behind.length > 0) {
1650
+ return {
1651
+ ...base,
1652
+ value: total === 1
1653
+ ? t.translateTemplate("Behind")
1654
+ : t.translateTemplate("{{behind}} of {{total}} behind", {
1655
+ behind: t.formatNumber(behind.length),
1656
+ total: t.formatNumber(total),
1657
+ }),
1658
+ secondary: ProbeStatusMonitorUtil_1.default.joinProbeNames(behind),
1659
+ tone: "warning",
1660
+ };
1661
+ }
1644
1662
  return {
1645
1663
  ...base,
1646
1664
  value: total === 1
@@ -60,7 +60,10 @@ var ProbeFailureCause;
60
60
  ProbeFailureCause["NtpPortUnreachable"] = "NtpPortUnreachable";
61
61
  ProbeFailureCause["NtpRequestFailedWithCode"] = "NtpRequestFailedWithCode";
62
62
  ProbeFailureCause["NtpRequestFailed"] = "NtpRequestFailed";
63
- // NtpMonitor: an attempt's cause, after every attempt failed.
63
+ /*
64
+ * NtpMonitor: an attempt's cause, after every attempt failed. Dataverse's
65
+ * client (DataverseApi) says it of a request it asked again, too.
66
+ */
64
67
  ProbeFailureCause["TriedTimes"] = "TriedTimes";
65
68
  // ProbeNetworkFailureUtil.describe: a failure on the probe's own side.
66
69
  ProbeFailureCause["ProbeCouldNotOpenIPv6Connection"] = "ProbeCouldNotOpenIPv6Connection";
@@ -1,4 +1,5 @@
1
1
  import { ProbeConnectionStatus } from "../../Models/DatabaseModels/Probe.mjs";
2
+ import { ProbeBehindRead } from "../../Types/Probe/ProbeBehind.mjs";
2
3
  import ObjectID from "../../Types/ObjectID.mjs";
3
4
  import MonitorSteps from "../../Types/Monitor/MonitorSteps.mjs";
4
5
  import ProbeStatusMonitorResponse, { ProbeStatusMonitorProbe } from "../../Types/Monitor/ProbeStatusMonitor/ProbeStatusMonitorResponse.mjs";
@@ -6,7 +7,7 @@ export interface ProbeSilence {
6
7
  unit: "minute" | "hour" | "day";
7
8
  count: number;
8
9
  }
9
- export interface ProbeStatusSource {
10
+ export interface ProbeStatusSource extends ProbeBehindRead {
10
11
  id: string;
11
12
  name?: string | undefined;
12
13
  isGlobalProbe?: boolean | undefined;
@@ -29,7 +30,10 @@ export default class ProbeStatusMonitorUtil {
29
30
  private static readDate;
30
31
  static getConnectedProbes(response: Pick<ProbeStatusMonitorResponse, "probes">): Array<ProbeStatusMonitorProbe>;
31
32
  static getDisconnectedProbes(response: Pick<ProbeStatusMonitorResponse, "probes">): Array<ProbeStatusMonitorProbe>;
33
+ static getBehindProbes(response: Pick<ProbeStatusMonitorResponse, "probes">): Array<ProbeStatusMonitorProbe>;
34
+ static getBehindProbeCount(response: Pick<ProbeStatusMonitorResponse, "probes" | "behindProbeCount">): number;
32
35
  static joinProbeNames(probes: Array<ProbeStatusMonitorProbe>): string;
36
+ static describeBehindWork(probe: ProbeStatusMonitorProbe): string;
33
37
  static getSilence(data: {
34
38
  lastAliveAt?: Date | undefined;
35
39
  checkedAt?: Date | undefined;
@@ -1,4 +1,5 @@
1
1
  import { ProbeConnectionStatus } from "../../Models/DatabaseModels/Probe";
2
+ import { ProbeBehindRead } from "../../Types/Probe/ProbeBehind";
2
3
  import ObjectID from "../../Types/ObjectID";
3
4
  import MonitorSteps from "../../Types/Monitor/MonitorSteps";
4
5
  import ProbeStatusMonitorResponse, { ProbeStatusMonitorProbe } from "../../Types/Monitor/ProbeStatusMonitor/ProbeStatusMonitorResponse";
@@ -6,7 +7,7 @@ export interface ProbeSilence {
6
7
  unit: "minute" | "hour" | "day";
7
8
  count: number;
8
9
  }
9
- export interface ProbeStatusSource {
10
+ export interface ProbeStatusSource extends ProbeBehindRead {
10
11
  id: string;
11
12
  name?: string | undefined;
12
13
  isGlobalProbe?: boolean | undefined;
@@ -29,7 +30,10 @@ export default class ProbeStatusMonitorUtil {
29
30
  private static readDate;
30
31
  static getConnectedProbes(response: Pick<ProbeStatusMonitorResponse, "probes">): Array<ProbeStatusMonitorProbe>;
31
32
  static getDisconnectedProbes(response: Pick<ProbeStatusMonitorResponse, "probes">): Array<ProbeStatusMonitorProbe>;
33
+ static getBehindProbes(response: Pick<ProbeStatusMonitorResponse, "probes">): Array<ProbeStatusMonitorProbe>;
34
+ static getBehindProbeCount(response: Pick<ProbeStatusMonitorResponse, "probes" | "behindProbeCount">): number;
32
35
  static joinProbeNames(probes: Array<ProbeStatusMonitorProbe>): string;
36
+ static describeBehindWork(probe: ProbeStatusMonitorProbe): string;
33
37
  static getSilence(data: {
34
38
  lastAliveAt?: Date | undefined;
35
39
  checkedAt?: Date | undefined;
@@ -1,9 +1,43 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
37
  };
5
38
  Object.defineProperty(exports, "__esModule", { value: true });
6
39
  const Probe_1 = require("../../Models/DatabaseModels/Probe");
40
+ const ProbeBehind_1 = __importStar(require("../../Types/Probe/ProbeBehind"));
7
41
  const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
8
42
  const MonitorStepProbeStatusMonitor_1 = require("../../Types/Monitor/MonitorStepProbeStatusMonitor");
9
43
  const MINUTES_PER_HOUR = 60;
@@ -57,6 +91,18 @@ class ProbeStatusMonitorUtil {
57
91
  if (probe.lastAlive) {
58
92
  watchedProbe.lastAliveAt = probe.lastAlive;
59
93
  }
94
+ /*
95
+ * Behind only while connected (#9501): a probe that is not checks
96
+ * nothing, and Disconnected says more.
97
+ */
98
+ const behindSince = watchedProbe.isConnected
99
+ ? ProbeBehind_1.default.getProbeBehindSince(probe)
100
+ : null;
101
+ if (behindSince) {
102
+ watchedProbe.isBehind = true;
103
+ watchedProbe.behindSince = behindSince;
104
+ watchedProbe.behindOn = ProbeBehind_1.default.getBehindWork(probe);
105
+ }
60
106
  watched.push(watchedProbe);
61
107
  }
62
108
  const connectedProbeCount = watched.filter((probe) => {
@@ -69,6 +115,9 @@ class ProbeStatusMonitorUtil {
69
115
  probes: watched,
70
116
  connectedProbeCount: connectedProbeCount,
71
117
  disconnectedProbeCount: watched.length - connectedProbeCount,
118
+ behindProbeCount: ProbeStatusMonitorUtil.getBehindProbes({
119
+ probes: watched,
120
+ }).length,
72
121
  missingProbeIds: missingProbeIds,
73
122
  checkedAt: data.checkedAt,
74
123
  };
@@ -122,6 +171,22 @@ class ProbeStatusMonitorUtil {
122
171
  if (lastAliveAt) {
123
172
  probe.lastAliveAt = lastAliveAt;
124
173
  }
174
+ // Behind only while connected, as buildResponse says it.
175
+ if (probe.isConnected && probeJson["isBehind"] === true) {
176
+ probe.isBehind = true;
177
+ const behindSince = ProbeStatusMonitorUtil.readDate(probeJson["behindSince"]);
178
+ if (behindSince) {
179
+ probe.behindSince = behindSince;
180
+ }
181
+ const behindOn = Array.isArray(probeJson["behindOn"])
182
+ ? probeJson["behindOn"].filter((work) => {
183
+ return Object.values(ProbeBehind_1.ProbeBehindWork).includes(work);
184
+ })
185
+ : [];
186
+ if (behindOn.length > 0) {
187
+ probe.behindOn = behindOn;
188
+ }
189
+ }
125
190
  probes.push(probe);
126
191
  }
127
192
  const connectedProbeCount = probes.filter((probe) => {
@@ -134,6 +199,9 @@ class ProbeStatusMonitorUtil {
134
199
  probes: probes,
135
200
  connectedProbeCount: connectedProbeCount,
136
201
  disconnectedProbeCount: probes.length - connectedProbeCount,
202
+ behindProbeCount: ProbeStatusMonitorUtil.getBehindProbes({
203
+ probes: probes,
204
+ }).length,
137
205
  missingProbeIds: Array.isArray(json["missingProbeIds"])
138
206
  ? json["missingProbeIds"]
139
207
  .map((id) => {
@@ -187,6 +255,21 @@ class ProbeStatusMonitorUtil {
187
255
  return !probe.isConnected;
188
256
  });
189
257
  }
258
+ // The connected probes that are behind (#9501).
259
+ static getBehindProbes(response) {
260
+ return (response.probes || []).filter((probe) => {
261
+ return probe.isConnected && probe.isBehind === true;
262
+ });
263
+ }
264
+ /*
265
+ * How many of the probes are behind: the count the evaluation kept, or,
266
+ * for one from before #9501, read from its probes - none of them then.
267
+ */
268
+ static getBehindProbeCount(response) {
269
+ return typeof response.behindProbeCount === "number"
270
+ ? response.behindProbeCount
271
+ : ProbeStatusMonitorUtil.getBehindProbes(response).length;
272
+ }
190
273
  // "EU Probe, US Probe", or "" for none. Plain text: escape where shown.
191
274
  static joinProbeNames(probes) {
192
275
  return probes
@@ -195,6 +278,21 @@ class ProbeStatusMonitorUtil {
195
278
  })
196
279
  .join(", ");
197
280
  }
281
+ /*
282
+ * What a probe behind is behind on, as a clause: "its monitors are
283
+ * checked less often than set", and the same of its network devices.
284
+ */
285
+ static describeBehindWork(probe) {
286
+ const work = probe.behindOn || [];
287
+ const isOnMonitors = work.length === 0 || work.includes(ProbeBehind_1.ProbeBehindWork.MonitorChecks);
288
+ const isOnDevices = work.includes(ProbeBehind_1.ProbeBehindWork.DevicePolls);
289
+ if (isOnMonitors && isOnDevices) {
290
+ return "its monitors and network devices are checked less often than set";
291
+ }
292
+ return isOnDevices
293
+ ? "its network devices are polled less often than set"
294
+ : "its monitors are checked less often than set";
295
+ }
198
296
  /*
199
297
  * How long the probe had gone without a heartbeat when the evaluation
200
298
  * ran: measured to checkedAt, never to now, so an incident's stored
@@ -239,6 +337,14 @@ class ProbeStatusMonitorUtil {
239
337
  return "This monitor watches no probe that still exists.";
240
338
  }
241
339
  if (response.disconnectedProbeCount === 0) {
340
+ const behind = ProbeStatusMonitorUtil.getBehindProbes(response);
341
+ // Connected, but not keeping up (#9501): which, and on what.
342
+ if (behind.length > 0) {
343
+ if (total === 1) {
344
+ return `${ProbeStatusMonitorUtil.joinProbeNames(behind)} is connected, but behind: ${ProbeStatusMonitorUtil.describeBehindWork(behind[0])}.`;
345
+ }
346
+ return `All ${total} probes are connected; ${behind.length} ${behind.length === 1 ? "is" : "are"} behind: ${ProbeStatusMonitorUtil.joinProbeNames(behind)}.`;
347
+ }
242
348
  return total === 1
243
349
  ? `${ProbeStatusMonitorUtil.joinProbeNames(response.probes)} is connected.`
244
350
  : `All ${total} probes are connected.`;
@@ -109,6 +109,8 @@ export interface NetworkDeviceEffectiveInputs {
109
109
  controllerAddress: NetworkDeviceEffectiveInput;
110
110
  controllerProductType: NetworkDeviceEffectiveInput;
111
111
  controllerFirmwareVersion: NetworkDeviceEffectiveInput;
112
+ listVendor: NetworkDeviceEffectiveInput;
113
+ listClientName: NetworkDeviceEffectiveInput;
112
114
  details: NetworkDeviceDiscoveredDetails;
113
115
  }
114
116
  /**
@@ -158,6 +160,7 @@ export declare function getNetworkDeviceLocation(device: NetworkDeviceAssetSourc
158
160
  * discovery read when its poll has not.
159
161
  */
160
162
  export declare function getNetworkDeviceSystemDescription(device: NetworkDeviceAssetSource): string | undefined;
163
+ export declare const NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS: ReadonlyArray<keyof NetworkDeviceAssetSource>;
161
164
  /**
162
165
  * Every asset fact of one network device. See the header for where each one
163
166
  * comes from and what wins.
@@ -109,6 +109,8 @@ export interface NetworkDeviceEffectiveInputs {
109
109
  controllerAddress: NetworkDeviceEffectiveInput;
110
110
  controllerProductType: NetworkDeviceEffectiveInput;
111
111
  controllerFirmwareVersion: NetworkDeviceEffectiveInput;
112
+ listVendor: NetworkDeviceEffectiveInput;
113
+ listClientName: NetworkDeviceEffectiveInput;
112
114
  details: NetworkDeviceDiscoveredDetails;
113
115
  }
114
116
  /**
@@ -158,6 +160,7 @@ export declare function getNetworkDeviceLocation(device: NetworkDeviceAssetSourc
158
160
  * discovery read when its poll has not.
159
161
  */
160
162
  export declare function getNetworkDeviceSystemDescription(device: NetworkDeviceAssetSource): string | undefined;
163
+ export declare const NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS: ReadonlyArray<keyof NetworkDeviceAssetSource>;
161
164
  /**
162
165
  * Every asset fact of one network device. See the header for where each one
163
166
  * comes from and what wins.
@@ -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
+ exports.NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS = void 0;
6
7
  exports.readText = readText;
7
8
  exports.toOtelMacAddress = toOtelMacAddress;
8
9
  exports.isIpAddressLiteral = isIpAddressLiteral;
@@ -348,6 +349,8 @@ function getNetworkDeviceEffectiveInputs(device) {
348
349
  controllerAddress: controllerInput(controller, NetworkDeviceDiscoveredDetails_1.NetworkDeviceControllerField.Address),
349
350
  controllerProductType: controllerInput(controller, NetworkDeviceDiscoveredDetails_1.NetworkDeviceControllerField.ProductType),
350
351
  controllerFirmwareVersion: controllerInput(controller, NetworkDeviceDiscoveredDetails_1.NetworkDeviceControllerField.FirmwareVersion),
352
+ listVendor: readDiscoveredOnly(details.values[NetworkDeviceDiscoveredDetails_1.NetworkDeviceDiscoveredField.Vendor]),
353
+ listClientName: readDiscoveredOnly(details.values[NetworkDeviceDiscoveredDetails_1.NetworkDeviceDiscoveredField.ClientName]),
351
354
  details: details,
352
355
  };
353
356
  }
@@ -430,10 +433,14 @@ function getHostnameFact(device, inputs, dnsName) {
430
433
  if (!(choice === null || choice === void 0 ? void 0 : choice.name)) {
431
434
  /*
432
435
  * Nothing the device says names it: the name its controller files it
433
- * under (the Meraki dashboard's), when it has one. Still never its
434
- * address.
436
+ * under (the Meraki dashboard's), when it has one; else the name the
437
+ * Discovered Devices list knows it by - what a controller's client list
438
+ * calls it (issue #9305). Still never its address.
435
439
  */
436
- return fact(inputs.controllerName.value, inputs.controllerName);
440
+ if (inputs.controllerName.value) {
441
+ return fact(inputs.controllerName.value, inputs.controllerName);
442
+ }
443
+ return fact(inputs.listClientName.value, inputs.listClientName);
437
444
  }
438
445
  const from = choice.source === DeviceNameSource_1.DeviceNameSource.SystemName
439
446
  ? systemName
@@ -532,7 +539,12 @@ function getManufacturerFact(inputs, described) {
532
539
  }
533
540
  const candidate = stored || fromEnterprise;
534
541
  if (!candidate || isSnmpAgentVendor(candidate)) {
535
- return {};
542
+ /*
543
+ * Nothing the device reports or holds names its maker: the one its MAC
544
+ * address's prefix names, as the Discovered Devices list shows it (issue
545
+ * #9305) - a register or a camera that is only pinged has no other.
546
+ */
547
+ return fact(inputs.listVendor.value, inputs.listVendor);
536
548
  }
537
549
  return stored
538
550
  ? fact(candidate, inputs.vendor)
@@ -720,6 +732,23 @@ function getNetworkDeviceLocation(device) {
720
732
  function getNetworkDeviceSystemDescription(device) {
721
733
  return getNetworkDeviceEffectiveInputs(device).sysDescr.value;
722
734
  }
735
+ /*
736
+ * The columns the maker is worked out from (getNetworkDeviceManufacturer):
737
+ * the saved vendor, the SNMP identity, when the device's poll last read it,
738
+ * and what discovery and its controller read. The server keeps each device's
739
+ * maker in its `manufacturer` column, which the device lists' Vendor filter
740
+ * and sort read, and works it out again after a write of any of these
741
+ * (NetworkDeviceStoredManufacturer, issue #9363), so the filter and the
742
+ * Vendor / Model column name the same maker. A test fails when the maker
743
+ * starts reading another column without it being added here.
744
+ */
745
+ exports.NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS = [
746
+ "vendor",
747
+ "sysDescr",
748
+ "sysObjectId",
749
+ "lastSnmpSeenAt",
750
+ "discoveredDetails",
751
+ ];
723
752
  /**
724
753
  * Every asset fact of one network device. See the header for where each one
725
754
  * comes from and what wins.
@@ -1,5 +1,6 @@
1
1
  import commonJsModule from "./NetworkDeviceAssetFacts.js";
2
2
  export default commonJsModule.default;
3
+ export const NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS = commonJsModule.NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS;
3
4
  export const getNetworkDeviceAssetFacts = commonJsModule.getNetworkDeviceAssetFacts;
4
5
  export const getNetworkDeviceDnsName = commonJsModule.getNetworkDeviceDnsName;
5
6
  export const getNetworkDeviceEffectiveInputs = commonJsModule.getNetworkDeviceEffectiveInputs;
@@ -0,0 +1,33 @@
1
+ import { NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS, NetworkDeviceAssetSource } from "./NetworkDeviceAssetFacts.mjs";
2
+ export { NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS };
3
+ export declare const NETWORK_DEVICE_MANUFACTURER_DISCOVERED_KEYS: ReadonlyArray<string>;
4
+ export declare const MAX_STORED_MANUFACTURER_LENGTH: number;
5
+ /**
6
+ * The maker to keep on a device: exactly the one its Vendor / Model column,
7
+ * its page and its Inventory item name (getNetworkDeviceManufacturer), or
8
+ * null when nothing names one.
9
+ */
10
+ export declare function getStoredNetworkDeviceManufacturer(device: NetworkDeviceAssetSource): string | null;
11
+ /**
12
+ * Whether a write of these columns can change the maker: one of them is a
13
+ * column it is worked out from.
14
+ */
15
+ export declare function isNetworkDeviceManufacturerInputWrite(columns: Iterable<string>): boolean;
16
+ /**
17
+ * Whether a successful walk at `walkedAt` changes the device's maker though
18
+ * it reads nothing new: the walk moves its lastSnmpSeenAt on (to the later of
19
+ * the two, as the poll's verdict writes it), and of two automatic readings
20
+ * of its SNMP identity the newer wins - so a walk after a discovery scan
21
+ * makes the device's own reading the one its maker is read off again. A walk
22
+ * that read a different identity is written through the service, which works
23
+ * the maker out again by itself.
24
+ */
25
+ export declare function isNetworkDeviceManufacturerChangedByWalk(device: NetworkDeviceAssetSource, walkedAt: Date): boolean;
26
+ /**
27
+ * Whether a merge into a device's discovered details can change its maker:
28
+ * it sets or drops one of the keys the maker reads.
29
+ */
30
+ export declare function isNetworkDeviceManufacturerDiscoveredPatch(patch: {
31
+ set?: Record<string, unknown> | undefined;
32
+ unset?: ReadonlyArray<string> | undefined;
33
+ }): boolean;
@@ -0,0 +1,33 @@
1
+ import { NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS, NetworkDeviceAssetSource } from "./NetworkDeviceAssetFacts";
2
+ export { NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS };
3
+ export declare const NETWORK_DEVICE_MANUFACTURER_DISCOVERED_KEYS: ReadonlyArray<string>;
4
+ export declare const MAX_STORED_MANUFACTURER_LENGTH: number;
5
+ /**
6
+ * The maker to keep on a device: exactly the one its Vendor / Model column,
7
+ * its page and its Inventory item name (getNetworkDeviceManufacturer), or
8
+ * null when nothing names one.
9
+ */
10
+ export declare function getStoredNetworkDeviceManufacturer(device: NetworkDeviceAssetSource): string | null;
11
+ /**
12
+ * Whether a write of these columns can change the maker: one of them is a
13
+ * column it is worked out from.
14
+ */
15
+ export declare function isNetworkDeviceManufacturerInputWrite(columns: Iterable<string>): boolean;
16
+ /**
17
+ * Whether a successful walk at `walkedAt` changes the device's maker though
18
+ * it reads nothing new: the walk moves its lastSnmpSeenAt on (to the later of
19
+ * the two, as the poll's verdict writes it), and of two automatic readings
20
+ * of its SNMP identity the newer wins - so a walk after a discovery scan
21
+ * makes the device's own reading the one its maker is read off again. A walk
22
+ * that read a different identity is written through the service, which works
23
+ * the maker out again by itself.
24
+ */
25
+ export declare function isNetworkDeviceManufacturerChangedByWalk(device: NetworkDeviceAssetSource, walkedAt: Date): boolean;
26
+ /**
27
+ * Whether a merge into a device's discovered details can change its maker:
28
+ * it sets or drops one of the keys the maker reads.
29
+ */
30
+ export declare function isNetworkDeviceManufacturerDiscoveredPatch(patch: {
31
+ set?: Record<string, unknown> | undefined;
32
+ unset?: ReadonlyArray<string> | undefined;
33
+ }): boolean;
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MAX_STORED_MANUFACTURER_LENGTH = exports.NETWORK_DEVICE_MANUFACTURER_DISCOVERED_KEYS = exports.NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS = void 0;
4
+ exports.getStoredNetworkDeviceManufacturer = getStoredNetworkDeviceManufacturer;
5
+ exports.isNetworkDeviceManufacturerInputWrite = isNetworkDeviceManufacturerInputWrite;
6
+ exports.isNetworkDeviceManufacturerChangedByWalk = isNetworkDeviceManufacturerChangedByWalk;
7
+ exports.isNetworkDeviceManufacturerDiscoveredPatch = isNetworkDeviceManufacturerDiscoveredPatch;
8
+ const NetworkDeviceAssetFacts_1 = require("./NetworkDeviceAssetFacts");
9
+ Object.defineProperty(exports, "NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS", { enumerable: true, get: function () { return NetworkDeviceAssetFacts_1.NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS; } });
10
+ const NetworkDeviceDiscoveredDetails_1 = require("../../Types/NetworkDevice/NetworkDeviceDiscoveredDetails");
11
+ /*
12
+ * The keys of its discovered details the maker reads: the SNMP identity a
13
+ * discovery scan read, the maker the Discovered Devices list names, and the
14
+ * controller's reading (whose provider is a maker of its own). A merge of any
15
+ * other key - a MAC an ARP table gave it, the address its name resolves to,
16
+ * the links its controller reports - cannot change the maker, and costs the
17
+ * device nothing.
18
+ */
19
+ exports.NETWORK_DEVICE_MANUFACTURER_DISCOVERED_KEYS = [
20
+ NetworkDeviceDiscoveredDetails_1.NetworkDeviceDiscoveredField.SystemDescription,
21
+ NetworkDeviceDiscoveredDetails_1.NetworkDeviceDiscoveredField.SystemObjectId,
22
+ NetworkDeviceDiscoveredDetails_1.NetworkDeviceDiscoveredField.Vendor,
23
+ NetworkDeviceDiscoveredDetails_1.DISCOVERED_DETAILS_CONTROLLER_KEY,
24
+ ];
25
+ // As wide as the vendor column, and every value the maker is taken from.
26
+ exports.MAX_STORED_MANUFACTURER_LENGTH = 100;
27
+ /**
28
+ * The maker to keep on a device: exactly the one its Vendor / Model column,
29
+ * its page and its Inventory item name (getNetworkDeviceManufacturer), or
30
+ * null when nothing names one.
31
+ */
32
+ function getStoredNetworkDeviceManufacturer(device) {
33
+ const manufacturer = ((0, NetworkDeviceAssetFacts_1.getNetworkDeviceManufacturer)(device) || "").trim();
34
+ return manufacturer
35
+ ? manufacturer.substring(0, exports.MAX_STORED_MANUFACTURER_LENGTH)
36
+ : null;
37
+ }
38
+ /**
39
+ * Whether a write of these columns can change the maker: one of them is a
40
+ * column it is worked out from.
41
+ */
42
+ function isNetworkDeviceManufacturerInputWrite(columns) {
43
+ const inputs = NetworkDeviceAssetFacts_1.NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS;
44
+ for (const column of columns) {
45
+ if (inputs.includes(column)) {
46
+ return true;
47
+ }
48
+ }
49
+ return false;
50
+ }
51
+ /*
52
+ * A time out of a row - a Date, or a date string from the API - as epoch
53
+ * milliseconds, or undefined for anything else.
54
+ */
55
+ function readTime(value) {
56
+ if (value instanceof Date) {
57
+ const time = value.getTime();
58
+ return Number.isNaN(time) ? undefined : time;
59
+ }
60
+ if (typeof value === "string" && value.trim()) {
61
+ const time = new Date(value.trim()).getTime();
62
+ return Number.isNaN(time) ? undefined : time;
63
+ }
64
+ return undefined;
65
+ }
66
+ /**
67
+ * Whether a successful walk at `walkedAt` changes the device's maker though
68
+ * it reads nothing new: the walk moves its lastSnmpSeenAt on (to the later of
69
+ * the two, as the poll's verdict writes it), and of two automatic readings
70
+ * of its SNMP identity the newer wins - so a walk after a discovery scan
71
+ * makes the device's own reading the one its maker is read off again. A walk
72
+ * that read a different identity is written through the service, which works
73
+ * the maker out again by itself.
74
+ */
75
+ function isNetworkDeviceManufacturerChangedByWalk(device, walkedAt) {
76
+ const walkedAtTime = walkedAt.getTime();
77
+ if (Number.isNaN(walkedAtTime)) {
78
+ return false;
79
+ }
80
+ const lastWalkedAt = readTime(device.lastSnmpSeenAt);
81
+ const nextWalkedAt = lastWalkedAt === undefined
82
+ ? walkedAtTime
83
+ : Math.max(lastWalkedAt, walkedAtTime);
84
+ if (lastWalkedAt === nextWalkedAt) {
85
+ return false;
86
+ }
87
+ return (getStoredNetworkDeviceManufacturer(device) !==
88
+ getStoredNetworkDeviceManufacturer({
89
+ ...device,
90
+ lastSnmpSeenAt: new Date(nextWalkedAt),
91
+ }));
92
+ }
93
+ /**
94
+ * Whether a merge into a device's discovered details can change its maker:
95
+ * it sets or drops one of the keys the maker reads.
96
+ */
97
+ function isNetworkDeviceManufacturerDiscoveredPatch(patch) {
98
+ const keys = [
99
+ ...Object.keys(patch.set || {}),
100
+ ...(patch.unset || []),
101
+ ];
102
+ return keys.some((key) => {
103
+ return exports.NETWORK_DEVICE_MANUFACTURER_DISCOVERED_KEYS.includes(key);
104
+ });
105
+ }
@@ -0,0 +1,8 @@
1
+ import commonJsModule from "./NetworkDeviceStoredManufacturer.js";
2
+ export const MAX_STORED_MANUFACTURER_LENGTH = commonJsModule.MAX_STORED_MANUFACTURER_LENGTH;
3
+ export const NETWORK_DEVICE_MANUFACTURER_DISCOVERED_KEYS = commonJsModule.NETWORK_DEVICE_MANUFACTURER_DISCOVERED_KEYS;
4
+ export const NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS = commonJsModule.NETWORK_DEVICE_MANUFACTURER_INPUT_COLUMNS;
5
+ export const getStoredNetworkDeviceManufacturer = commonJsModule.getStoredNetworkDeviceManufacturer;
6
+ export const isNetworkDeviceManufacturerChangedByWalk = commonJsModule.isNetworkDeviceManufacturerChangedByWalk;
7
+ export const isNetworkDeviceManufacturerDiscoveredPatch = commonJsModule.isNetworkDeviceManufacturerDiscoveredPatch;
8
+ export const isNetworkDeviceManufacturerInputWrite = commonJsModule.isNetworkDeviceManufacturerInputWrite;
@@ -1,8 +1,13 @@
1
+ import { JSONObject } from "../../Types/JSON.mjs";
1
2
  export interface SnmpCredentialCarrier {
2
3
  snmpVersion?: string | null | undefined;
3
4
  snmpCommunityString?: string | null | undefined;
4
5
  snmpV3Username?: string | null | undefined;
6
+ snmpV3Auth?: JSONObject | null | undefined;
5
7
  }
6
8
  export type HasUsableCredentialsFunction = (carrier: SnmpCredentialCarrier) => boolean;
9
+ export declare function isNonEmptyCredential(value: unknown): value is string;
10
+ export declare function getLegacySnmpV3Username(snmpV3Auth: JSONObject | null | undefined): string | undefined;
11
+ export declare function readsLegacySnmpV3Auth(carrier: SnmpCredentialCarrier): boolean;
7
12
  export declare const hasUsableCredentials: HasUsableCredentialsFunction;
8
13
  export default hasUsableCredentials;
@@ -1,8 +1,13 @@
1
+ import { JSONObject } from "../../Types/JSON";
1
2
  export interface SnmpCredentialCarrier {
2
3
  snmpVersion?: string | null | undefined;
3
4
  snmpCommunityString?: string | null | undefined;
4
5
  snmpV3Username?: string | null | undefined;
6
+ snmpV3Auth?: JSONObject | null | undefined;
5
7
  }
6
8
  export type HasUsableCredentialsFunction = (carrier: SnmpCredentialCarrier) => boolean;
9
+ export declare function isNonEmptyCredential(value: unknown): value is string;
10
+ export declare function getLegacySnmpV3Username(snmpV3Auth: JSONObject | null | undefined): string | undefined;
11
+ export declare function readsLegacySnmpV3Auth(carrier: SnmpCredentialCarrier): boolean;
7
12
  export declare const hasUsableCredentials: HasUsableCredentialsFunction;
8
13
  export default hasUsableCredentials;
@@ -1,15 +1,40 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.hasUsableCredentials = void 0;
4
+ exports.isNonEmptyCredential = isNonEmptyCredential;
5
+ exports.getLegacySnmpV3Username = getLegacySnmpV3Username;
6
+ exports.readsLegacySnmpV3Auth = readsLegacySnmpV3Auth;
4
7
  const SnmpVersion_1 = require("../../Types/Monitor/SnmpMonitor/SnmpVersion");
5
- function isNonEmpty(value) {
8
+ // Whether a value is text with something in it besides whitespace.
9
+ function isNonEmptyCredential(value) {
6
10
  return typeof value === "string" && value.trim().length > 0;
7
11
  }
12
+ /*
13
+ * The username of a device's deprecated snmpV3Auth object, or undefined when
14
+ * it holds none: no object, not an object, or no username in it.
15
+ */
16
+ function getLegacySnmpV3Username(snmpV3Auth) {
17
+ if (!snmpV3Auth || typeof snmpV3Auth !== "object") {
18
+ return undefined;
19
+ }
20
+ const username = snmpV3Auth["username"];
21
+ return isNonEmptyCredential(username) ? username : undefined;
22
+ }
23
+ /*
24
+ * Whether a row's own v3 credentials are in its deprecated snmpV3Auth object
25
+ * rather than its snmpV3* columns: its columns hold no username, and the
26
+ * object does. Then the walk reads the object (buildSnmpV3Auth).
27
+ */
28
+ function readsLegacySnmpV3Auth(carrier) {
29
+ return (!isNonEmptyCredential(carrier.snmpV3Username) &&
30
+ getLegacySnmpV3Username(carrier.snmpV3Auth) !== undefined);
31
+ }
8
32
  const hasUsableCredentials = (carrier) => {
9
33
  if (SnmpVersion_1.SnmpVersionUtil.isV3(carrier.snmpVersion)) {
10
- return isNonEmpty(carrier.snmpV3Username);
34
+ return (isNonEmptyCredential(carrier.snmpV3Username) ||
35
+ readsLegacySnmpV3Auth(carrier));
11
36
  }
12
- return isNonEmpty(carrier.snmpCommunityString);
37
+ return isNonEmptyCredential(carrier.snmpCommunityString);
13
38
  };
14
39
  exports.hasUsableCredentials = hasUsableCredentials;
15
40
  exports.default = exports.hasUsableCredentials;
@@ -1,3 +1,6 @@
1
1
  import commonJsModule from "./SnmpCredentialUtil.js";
2
2
  export default commonJsModule.default;
3
+ export const getLegacySnmpV3Username = commonJsModule.getLegacySnmpV3Username;
3
4
  export const hasUsableCredentials = commonJsModule.hasUsableCredentials;
5
+ export const isNonEmptyCredential = commonJsModule.isNonEmptyCredential;
6
+ export const readsLegacySnmpV3Auth = commonJsModule.readsLegacySnmpV3Auth;
@@ -8,5 +8,6 @@ export declare function buildNetworkDeviceFromDiscoveredDevice(data: {
8
8
  facts: DiscoveredDeviceImportFacts;
9
9
  settings: DiscoveryImportSettings;
10
10
  name?: string | undefined;
11
+ readAt?: Date | undefined;
11
12
  }): NetworkDevice;
12
13
  export declare function buildDiscoveredDeviceFallbackName(name: string, ipAddress: string): string;