@oneuptime/common 14.0.98 → 14.0.99

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 (527) hide show
  1. package/Models/DatabaseModels/CloudAccount.d.mts +8 -0
  2. package/Models/DatabaseModels/CloudAccount.d.ts +8 -0
  3. package/Models/DatabaseModels/CloudAccount.js +167 -0
  4. package/Models/DatabaseModels/CloudAccountFeed.d.mts +27 -0
  5. package/Models/DatabaseModels/CloudAccountFeed.d.ts +27 -0
  6. package/Models/DatabaseModels/CloudAccountFeed.js +557 -0
  7. package/Models/DatabaseModels/CloudAccountFeed.mjs +3 -0
  8. package/Models/DatabaseModels/DataSecurityCheckSetting.d.mts +17 -0
  9. package/Models/DatabaseModels/DataSecurityCheckSetting.d.ts +17 -0
  10. package/Models/DatabaseModels/DataSecurityCheckSetting.js +304 -0
  11. package/Models/DatabaseModels/DataSecurityCheckSetting.mjs +2 -0
  12. package/Models/DatabaseModels/DataSecurityCustomDataType.d.mts +25 -0
  13. package/Models/DatabaseModels/DataSecurityCustomDataType.d.ts +25 -0
  14. package/Models/DatabaseModels/DataSecurityCustomDataType.js +431 -0
  15. package/Models/DatabaseModels/DataSecurityCustomDataType.mjs +2 -0
  16. package/Models/DatabaseModels/DataSecurityFlow.d.mts +26 -0
  17. package/Models/DatabaseModels/DataSecurityFlow.d.ts +26 -0
  18. package/Models/DatabaseModels/DataSecurityFlow.js +456 -0
  19. package/Models/DatabaseModels/DataSecurityFlow.mjs +2 -0
  20. package/Models/DatabaseModels/DataSecurityIssue.d.mts +49 -0
  21. package/Models/DatabaseModels/DataSecurityIssue.d.ts +49 -0
  22. package/Models/DatabaseModels/DataSecurityIssue.js +797 -0
  23. package/Models/DatabaseModels/DataSecurityIssue.mjs +2 -0
  24. package/Models/DatabaseModels/DataSecurityIssueFeed.d.mts +43 -0
  25. package/Models/DatabaseModels/DataSecurityIssueFeed.d.ts +43 -0
  26. package/Models/DatabaseModels/DataSecurityIssueFeed.js +382 -0
  27. package/Models/DatabaseModels/DataSecurityIssueFeed.mjs +3 -0
  28. package/Models/DatabaseModels/DataSecurityResidencyRule.d.mts +18 -0
  29. package/Models/DatabaseModels/DataSecurityResidencyRule.d.ts +18 -0
  30. package/Models/DatabaseModels/DataSecurityResidencyRule.js +331 -0
  31. package/Models/DatabaseModels/DataSecurityResidencyRule.mjs +2 -0
  32. package/Models/DatabaseModels/DataSecurityScan.d.mts +29 -0
  33. package/Models/DatabaseModels/DataSecurityScan.d.ts +29 -0
  34. package/Models/DatabaseModels/DataSecurityScan.js +520 -0
  35. package/Models/DatabaseModels/DataSecurityScan.mjs +2 -0
  36. package/Models/DatabaseModels/DataSecuritySetting.d.mts +35 -0
  37. package/Models/DatabaseModels/DataSecuritySetting.d.ts +35 -0
  38. package/Models/DatabaseModels/DataSecuritySetting.js +631 -0
  39. package/Models/DatabaseModels/DataSecuritySetting.mjs +2 -0
  40. package/Models/DatabaseModels/DataStore.d.mts +83 -0
  41. package/Models/DatabaseModels/DataStore.d.ts +83 -0
  42. package/Models/DatabaseModels/DataStore.js +1343 -0
  43. package/Models/DatabaseModels/DataStore.mjs +2 -0
  44. package/Models/DatabaseModels/DataStoreAccess.d.mts +22 -0
  45. package/Models/DatabaseModels/DataStoreAccess.d.ts +22 -0
  46. package/Models/DatabaseModels/DataStoreAccess.js +407 -0
  47. package/Models/DatabaseModels/DataStoreAccess.mjs +2 -0
  48. package/Models/DatabaseModels/DataStoreFeed.d.mts +36 -0
  49. package/Models/DatabaseModels/DataStoreFeed.d.ts +36 -0
  50. package/Models/DatabaseModels/DataStoreFeed.js +613 -0
  51. package/Models/DatabaseModels/DataStoreFeed.mjs +3 -0
  52. package/Models/DatabaseModels/DataStoreFinding.d.mts +38 -0
  53. package/Models/DatabaseModels/DataStoreFinding.d.ts +38 -0
  54. package/Models/DatabaseModels/DataStoreFinding.js +683 -0
  55. package/Models/DatabaseModels/DataStoreFinding.mjs +2 -0
  56. package/Models/DatabaseModels/DataStoreLabelRule.d.mts +21 -0
  57. package/Models/DatabaseModels/DataStoreLabelRule.d.ts +21 -0
  58. package/Models/DatabaseModels/DataStoreLabelRule.js +623 -0
  59. package/Models/DatabaseModels/DataStoreLabelRule.mjs +2 -0
  60. package/Models/DatabaseModels/DataStoreOwnerRule.d.mts +24 -0
  61. package/Models/DatabaseModels/DataStoreOwnerRule.d.ts +24 -0
  62. package/Models/DatabaseModels/DataStoreOwnerRule.js +714 -0
  63. package/Models/DatabaseModels/DataStoreOwnerRule.mjs +2 -0
  64. package/Models/DatabaseModels/DataStoreOwnerTeam.d.mts +19 -0
  65. package/Models/DatabaseModels/DataStoreOwnerTeam.d.ts +19 -0
  66. package/Models/DatabaseModels/DataStoreOwnerTeam.js +477 -0
  67. package/Models/DatabaseModels/DataStoreOwnerTeam.mjs +2 -0
  68. package/Models/DatabaseModels/DataStoreOwnerUser.d.mts +18 -0
  69. package/Models/DatabaseModels/DataStoreOwnerUser.d.ts +18 -0
  70. package/Models/DatabaseModels/DataStoreOwnerUser.js +476 -0
  71. package/Models/DatabaseModels/DataStoreOwnerUser.mjs +2 -0
  72. package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
  73. package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
  74. package/Models/DatabaseModels/GlobalConfig.js +110 -0
  75. package/Models/DatabaseModels/Index.js +35 -0
  76. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +1 -0
  77. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +1 -0
  78. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +43 -0
  79. package/Models/DatabaseModels/ResourceAiAgent.js +3 -1
  80. package/Models/DatabaseModels/SecurityEntityCriticality.js +7 -6
  81. package/Models/DatabaseModels/SecurityEntityRisk.js +2 -2
  82. package/Models/DatabaseModels/TelemetryException.d.mts +5 -0
  83. package/Models/DatabaseModels/TelemetryException.d.ts +5 -0
  84. package/Models/DatabaseModels/TelemetryException.js +170 -8
  85. package/Types/AI/AIChatPageContext.d.mts +4 -1
  86. package/Types/AI/AIChatPageContext.d.ts +4 -1
  87. package/Types/AI/AIChatPageContext.js +7 -0
  88. package/Types/AI/AIChatTypes.d.mts +6 -1
  89. package/Types/AI/AIChatTypes.d.ts +6 -1
  90. package/Types/AI/AIChatTypes.js +9 -0
  91. package/Types/AI/AiAffectedResources.js +5 -3
  92. package/Types/AI/CodeFixTaskContext.d.mts +21 -0
  93. package/Types/AI/CodeFixTaskContext.d.ts +21 -0
  94. package/Types/AI/CodeFixTaskContext.js +61 -4
  95. package/Types/AI/CodeFixTaskContext.mjs +2 -0
  96. package/Types/AI/CodeTask.d.mts +2 -0
  97. package/Types/AI/CodeTask.d.ts +2 -0
  98. package/Types/AI/CodeTask.js +4 -0
  99. package/Types/AI/ResourceAiAccessApi.d.mts +1 -0
  100. package/Types/AI/ResourceAiAccessApi.d.ts +1 -0
  101. package/Types/AI/ResourceAiAccessPermissions.js +6 -0
  102. package/Types/AutoRemediation/AiRemediationCommandPlan.d.mts +19 -0
  103. package/Types/AutoRemediation/AiRemediationCommandPlan.d.ts +19 -0
  104. package/Types/AutoRemediation/AiRemediationCommandPlan.js +85 -10
  105. package/Types/AutoRemediation/AiRemediationCommandPlan.mjs +4 -0
  106. package/Types/AutoRemediation/RemediationTryAgain.d.mts +17 -0
  107. package/Types/AutoRemediation/RemediationTryAgain.d.ts +17 -0
  108. package/Types/AutoRemediation/RemediationTryAgain.js +104 -0
  109. package/Types/AutoRemediation/RemediationTryAgain.mjs +6 -0
  110. package/Types/CloudConnection/CloudAiAgentCost.d.mts +19 -0
  111. package/Types/CloudConnection/CloudAiAgentCost.d.ts +19 -0
  112. package/Types/CloudConnection/CloudAiAgentCost.js +95 -0
  113. package/Types/CloudConnection/CloudAiAgentCost.mjs +15 -0
  114. package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +70 -0
  115. package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +70 -0
  116. package/Types/CloudConnection/CloudAiAgentSetupCommands.js +1107 -0
  117. package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +37 -0
  118. package/Types/CloudConnection/CloudConnectionCatalog.d.mts +8 -0
  119. package/Types/CloudConnection/CloudConnectionCatalog.d.ts +8 -0
  120. package/Types/CloudConnection/CloudConnectionCatalog.js +75 -1
  121. package/Types/CloudConnection/CloudConnectionCatalog.mjs +6 -0
  122. package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +48 -4
  123. package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +48 -4
  124. package/Types/CloudConnection/CloudConnectionSetupCommands.js +410 -16
  125. package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +21 -0
  126. package/Types/CodeRepository/CodeHost.d.mts +2 -1
  127. package/Types/CodeRepository/CodeHost.d.ts +2 -1
  128. package/Types/CodeRepository/CodeHost.js +12 -5
  129. package/Types/CodeRepository/ProductionReview.d.mts +7 -0
  130. package/Types/CodeRepository/ProductionReview.d.ts +7 -0
  131. package/Types/CodeRepository/ProductionReview.js +67 -1
  132. package/Types/CodeRepository/ProductionReview.mjs +1 -0
  133. package/Types/DataSecurity/ComplianceFramework.d.mts +21 -0
  134. package/Types/DataSecurity/ComplianceFramework.d.ts +21 -0
  135. package/Types/DataSecurity/ComplianceFramework.js +97 -0
  136. package/Types/DataSecurity/ComplianceFramework.mjs +5 -0
  137. package/Types/DataSecurity/ComplianceRequirementCatalog.d.mts +41 -0
  138. package/Types/DataSecurity/ComplianceRequirementCatalog.d.ts +41 -0
  139. package/Types/DataSecurity/ComplianceRequirementCatalog.js +199 -0
  140. package/Types/DataSecurity/ComplianceRequirementCatalog.mjs +7 -0
  141. package/Types/DataSecurity/DataCategory.d.mts +15 -0
  142. package/Types/DataSecurity/DataCategory.d.ts +15 -0
  143. package/Types/DataSecurity/DataCategory.js +61 -0
  144. package/Types/DataSecurity/DataCategory.mjs +7 -0
  145. package/Types/DataSecurity/DataConfidence.d.mts +11 -0
  146. package/Types/DataSecurity/DataConfidence.d.ts +11 -0
  147. package/Types/DataSecurity/DataConfidence.js +49 -0
  148. package/Types/DataSecurity/DataConfidence.mjs +7 -0
  149. package/Types/DataSecurity/DataSecurityApiTypes.d.mts +106 -0
  150. package/Types/DataSecurity/DataSecurityApiTypes.d.ts +106 -0
  151. package/Types/DataSecurity/DataSecurityApiTypes.js +53 -0
  152. package/Types/DataSecurity/DataSecurityApiTypes.mjs +3 -0
  153. package/Types/DataSecurity/DataSecurityCheckCatalog.d.mts +93 -0
  154. package/Types/DataSecurity/DataSecurityCheckCatalog.d.ts +93 -0
  155. package/Types/DataSecurity/DataSecurityCheckCatalog.js +1183 -0
  156. package/Types/DataSecurity/DataSecurityCheckCatalog.mjs +10 -0
  157. package/Types/DataSecurity/DataSecurityIssueStatus.d.mts +10 -0
  158. package/Types/DataSecurity/DataSecurityIssueStatus.d.ts +10 -0
  159. package/Types/DataSecurity/DataSecurityIssueStatus.js +38 -0
  160. package/Types/DataSecurity/DataSecurityIssueStatus.mjs +5 -0
  161. package/Types/DataSecurity/DataSecurityResidency.d.mts +21 -0
  162. package/Types/DataSecurity/DataSecurityResidency.d.ts +21 -0
  163. package/Types/DataSecurity/DataSecurityResidency.js +92 -0
  164. package/Types/DataSecurity/DataSecurityResidency.mjs +5 -0
  165. package/Types/DataSecurity/DataSecurityResponseAction.d.mts +14 -0
  166. package/Types/DataSecurity/DataSecurityResponseAction.d.ts +14 -0
  167. package/Types/DataSecurity/DataSecurityResponseAction.js +115 -0
  168. package/Types/DataSecurity/DataSecurityResponseAction.mjs +11 -0
  169. package/Types/DataSecurity/DataSecurityRisk.d.mts +38 -0
  170. package/Types/DataSecurity/DataSecurityRisk.d.ts +38 -0
  171. package/Types/DataSecurity/DataSecurityRisk.js +138 -0
  172. package/Types/DataSecurity/DataSecurityRisk.mjs +7 -0
  173. package/Types/DataSecurity/DataSensitivity.d.mts +13 -0
  174. package/Types/DataSecurity/DataSensitivity.d.ts +13 -0
  175. package/Types/DataSecurity/DataSensitivity.js +68 -0
  176. package/Types/DataSecurity/DataSensitivity.mjs +8 -0
  177. package/Types/DataSecurity/DataStoreAccess.d.mts +27 -0
  178. package/Types/DataSecurity/DataStoreAccess.d.ts +27 -0
  179. package/Types/DataSecurity/DataStoreAccess.js +35 -0
  180. package/Types/DataSecurity/DataStoreAccess.mjs +4 -0
  181. package/Types/DataSecurity/DataStoreEnvironment.d.mts +11 -0
  182. package/Types/DataSecurity/DataStoreEnvironment.d.ts +11 -0
  183. package/Types/DataSecurity/DataStoreEnvironment.js +80 -0
  184. package/Types/DataSecurity/DataStoreEnvironment.mjs +5 -0
  185. package/Types/DataSecurity/DataStoreKey.d.mts +18 -0
  186. package/Types/DataSecurity/DataStoreKey.d.ts +18 -0
  187. package/Types/DataSecurity/DataStoreKey.js +49 -0
  188. package/Types/DataSecurity/DataStoreKey.mjs +7 -0
  189. package/Types/DataSecurity/DataStoreKind.d.mts +67 -0
  190. package/Types/DataSecurity/DataStoreKind.d.ts +67 -0
  191. package/Types/DataSecurity/DataStoreKind.js +230 -0
  192. package/Types/DataSecurity/DataStoreKind.mjs +10 -0
  193. package/Types/DataSecurity/DataStorePosture.d.mts +40 -0
  194. package/Types/DataSecurity/DataStorePosture.d.ts +40 -0
  195. package/Types/DataSecurity/DataStorePosture.js +100 -0
  196. package/Types/DataSecurity/DataStorePosture.mjs +7 -0
  197. package/Types/DataSecurity/DataTypeCatalog.d.mts +17 -0
  198. package/Types/DataSecurity/DataTypeCatalog.d.ts +17 -0
  199. package/Types/DataSecurity/DataTypeCatalog.js +434 -0
  200. package/Types/DataSecurity/DataTypeCatalog.mjs +4 -0
  201. package/Types/Email/EmailTemplateType.d.mts +1 -0
  202. package/Types/Email/EmailTemplateType.d.ts +1 -0
  203. package/Types/Email/EmailTemplateType.js +6 -0
  204. package/Types/Monitor/CephAlertTemplates.d.mts +2 -1
  205. package/Types/Monitor/CephAlertTemplates.d.ts +2 -1
  206. package/Types/Monitor/CephAlertTemplates.js +49 -0
  207. package/Types/Monitor/CephAlertTemplates.mjs +1 -0
  208. package/Types/Monitor/DockerAlertTemplates.d.mts +2 -1
  209. package/Types/Monitor/DockerAlertTemplates.d.ts +2 -1
  210. package/Types/Monitor/DockerAlertTemplates.js +109 -37
  211. package/Types/Monitor/DockerAlertTemplates.mjs +1 -0
  212. package/Types/Monitor/DockerMetricCatalog.d.mts +1 -0
  213. package/Types/Monitor/DockerMetricCatalog.d.ts +1 -0
  214. package/Types/Monitor/DockerMetricCatalog.js +26 -52
  215. package/Types/Monitor/DockerSwarmAlertTemplates.d.mts +1 -0
  216. package/Types/Monitor/DockerSwarmAlertTemplates.d.ts +1 -0
  217. package/Types/Monitor/DockerSwarmAlertTemplates.js +65 -8
  218. package/Types/Monitor/DockerSwarmAlertTemplates.mjs +1 -0
  219. package/Types/Monitor/DockerSwarmMetricCatalog.js +7 -4
  220. package/Types/Monitor/HostAlertTemplates.d.mts +2 -1
  221. package/Types/Monitor/HostAlertTemplates.d.ts +2 -1
  222. package/Types/Monitor/HostAlertTemplates.js +48 -0
  223. package/Types/Monitor/HostAlertTemplates.mjs +1 -0
  224. package/Types/Monitor/IotAlertTemplates.d.mts +1 -0
  225. package/Types/Monitor/IotAlertTemplates.d.ts +1 -0
  226. package/Types/Monitor/IotAlertTemplates.js +11 -0
  227. package/Types/Monitor/IotAlertTemplates.mjs +1 -0
  228. package/Types/Monitor/KubernetesAlertTemplates.d.mts +49 -1
  229. package/Types/Monitor/KubernetesAlertTemplates.d.ts +49 -1
  230. package/Types/Monitor/KubernetesAlertTemplates.js +392 -75
  231. package/Types/Monitor/KubernetesAlertTemplates.mjs +2 -0
  232. package/Types/Monitor/KubernetesMetricCatalog.js +12 -2
  233. package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.mts +4 -4
  234. package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.ts +4 -4
  235. package/Types/Monitor/MonitorCriteriaInstance.js +107 -10
  236. package/Types/Monitor/MonitorStep.js +50 -3
  237. package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.mts +33 -11
  238. package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.ts +33 -11
  239. package/Types/Monitor/MonitorStepDockerSwarmMonitor.js +65 -0
  240. package/Types/Monitor/MonitorStepKubernetesMonitor.d.mts +6 -0
  241. package/Types/Monitor/MonitorStepKubernetesMonitor.d.ts +6 -0
  242. package/Types/Monitor/MonitorStepKubernetesMonitor.js +38 -1
  243. package/Types/Monitor/MonitorStepKubernetesMonitor.mjs +2 -0
  244. package/Types/Monitor/MonitorType.d.mts +1 -0
  245. package/Types/Monitor/MonitorType.d.ts +1 -0
  246. package/Types/Monitor/MonitorType.js +18 -0
  247. package/Types/Monitor/PodmanAlertTemplates.d.mts +12 -1
  248. package/Types/Monitor/PodmanAlertTemplates.d.ts +12 -1
  249. package/Types/Monitor/PodmanAlertTemplates.js +161 -33
  250. package/Types/Monitor/PodmanAlertTemplates.mjs +2 -0
  251. package/Types/Monitor/PodmanMetricCatalog.d.mts +1 -0
  252. package/Types/Monitor/PodmanMetricCatalog.d.ts +1 -0
  253. package/Types/Monitor/PodmanMetricCatalog.js +26 -52
  254. package/Types/Monitor/ProxmoxAlertTemplates.d.mts +1 -0
  255. package/Types/Monitor/ProxmoxAlertTemplates.d.ts +1 -0
  256. package/Types/Monitor/ProxmoxAlertTemplates.js +49 -0
  257. package/Types/Monitor/ProxmoxAlertTemplates.mjs +1 -0
  258. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.mts +19 -0
  259. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.ts +19 -0
  260. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.js +50 -2
  261. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.mjs +2 -0
  262. package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.mts +2 -0
  263. package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.ts +2 -0
  264. package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.js +31 -2
  265. package/Types/Monitor/StorageArrayAlertTemplates.d.mts +2 -1
  266. package/Types/Monitor/StorageArrayAlertTemplates.d.ts +2 -1
  267. package/Types/Monitor/StorageArrayAlertTemplates.js +69 -0
  268. package/Types/Monitor/StorageArrayAlertTemplates.mjs +1 -0
  269. package/Types/Monitor/VMwareAlertTemplates.d.mts +2 -1
  270. package/Types/Monitor/VMwareAlertTemplates.d.ts +2 -1
  271. package/Types/Monitor/VMwareAlertTemplates.js +50 -0
  272. package/Types/Monitor/VMwareAlertTemplates.mjs +1 -0
  273. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +44 -0
  274. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +44 -0
  275. package/Types/OnCallDutyPolicy/OnCallPersonPage.js +171 -0
  276. package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +14 -0
  277. package/Types/Permission.d.mts +51 -0
  278. package/Types/Permission.d.ts +51 -0
  279. package/Types/Permission.js +542 -0
  280. package/Types/Probe/ProbeCapability.d.mts +2 -1
  281. package/Types/Probe/ProbeCapability.d.ts +2 -1
  282. package/Types/Probe/ProbeCapability.js +8 -0
  283. package/Types/ProviderLogo/ProviderLogo.d.mts +2 -0
  284. package/Types/ProviderLogo/ProviderLogo.d.ts +2 -0
  285. package/Types/ProviderLogo/ProviderLogo.js +4 -0
  286. package/Types/ResourceAiAgent/AiResourceType.d.mts +7 -1
  287. package/Types/ResourceAiAgent/AiResourceType.d.ts +7 -1
  288. package/Types/ResourceAiAgent/AiResourceType.js +76 -2
  289. package/Types/ResourceAiAgent/AiResourceType.mjs +3 -0
  290. package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +19 -0
  291. package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +19 -0
  292. package/Types/ResourceAiAgent/CloudAiAgentNames.js +75 -0
  293. package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +16 -0
  294. package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +12 -1
  295. package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +12 -1
  296. package/Types/ResourceAiAgent/ResourceAiAccess.js +28 -1
  297. package/Types/ResourceAiAgent/ResourceAiAccess.mjs +6 -0
  298. package/Types/Rules/RuleCriteriaFieldRegistry.js +13 -0
  299. package/Types/Rules/RuleCriteriaSubject.d.mts +2 -1
  300. package/Types/Rules/RuleCriteriaSubject.d.ts +2 -1
  301. package/Types/Rules/RuleCriteriaSubject.js +3 -0
  302. package/Types/Rules/RuleRun.d.mts +2 -0
  303. package/Types/Rules/RuleRun.d.ts +2 -0
  304. package/Types/Rules/RuleRun.js +4 -0
  305. package/Types/SecurityCase/SecurityDetectionSource.d.mts +2 -1
  306. package/Types/SecurityCase/SecurityDetectionSource.d.ts +2 -1
  307. package/Types/SecurityCase/SecurityDetectionSource.js +5 -2
  308. package/Types/SecurityCase/SecurityEntity.d.mts +5 -0
  309. package/Types/SecurityCase/SecurityEntity.d.ts +5 -0
  310. package/Types/SecurityCase/SecurityEntity.js +39 -1
  311. package/Types/SecurityCase/SecurityEntity.mjs +4 -0
  312. package/Types/SecurityCase/SecurityEntityRisk.js +14 -6
  313. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.mts +2 -0
  314. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.ts +2 -0
  315. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +124 -1
  316. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.mjs +2 -0
  317. package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.d.mts +3 -1
  318. package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.d.ts +3 -1
  319. package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.js +4 -0
  320. package/Types/SecurityEvent/DataSecuritySignal.d.mts +33 -0
  321. package/Types/SecurityEvent/DataSecuritySignal.d.ts +33 -0
  322. package/Types/SecurityEvent/DataSecuritySignal.js +114 -0
  323. package/Types/SecurityEvent/DataSecuritySignal.mjs +14 -0
  324. package/Types/SecurityEvent/DetectionRuleDataKind.d.mts +7 -1
  325. package/Types/SecurityEvent/DetectionRuleDataKind.d.ts +7 -1
  326. package/Types/SecurityEvent/DetectionRuleDataKind.js +74 -0
  327. package/Types/SecurityEvent/DetectionRuleLibrary.d.mts +2 -1
  328. package/Types/SecurityEvent/DetectionRuleLibrary.d.ts +2 -1
  329. package/Types/SecurityEvent/DetectionRuleLibrary.js +730 -0
  330. package/Types/SecurityEvent/OcsfEventClass.js +31 -2
  331. package/Types/SecurityEvent/SecurityLogFormat.d.mts +15 -0
  332. package/Types/SecurityEvent/SecurityLogFormat.d.ts +15 -0
  333. package/Types/SecurityEvent/SecurityLogFormat.js +123 -10
  334. package/Types/SecurityEvent/SecurityLogFormat.mjs +4 -0
  335. package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +3 -0
  336. package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +3 -0
  337. package/Types/SecurityPlaybook/SecurityPlaybookAction.js +37 -0
  338. package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +3 -0
  339. package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +3 -0
  340. package/Types/SecurityPlaybook/SecurityPlaybookStep.js +9 -0
  341. package/Types/SecurityPlaybook/SecurityProtectedEntity.js +8 -1
  342. package/Types/Telemetry/ExceptionAIDigest.d.mts +31 -0
  343. package/Types/Telemetry/ExceptionAIDigest.d.ts +31 -0
  344. package/Types/Telemetry/ExceptionAIDigest.js +131 -0
  345. package/Types/Telemetry/ExceptionAIDigest.mjs +13 -0
  346. package/Types/Telemetry/ExceptionAIExplanation.d.mts +37 -0
  347. package/Types/Telemetry/ExceptionAIExplanation.d.ts +37 -0
  348. package/Types/Telemetry/ExceptionAIExplanation.js +110 -0
  349. package/Types/Telemetry/ExceptionAIExplanation.mjs +12 -0
  350. package/Types/Telemetry/TraceSpanType.d.mts +1 -1
  351. package/Types/Telemetry/TraceSpanType.d.ts +1 -1
  352. package/Types/Telemetry/TraceSpanType.js +33 -8
  353. package/Types/Telemetry/TraceSpanType.mjs +1 -1
  354. package/Types/UpdateCheck/SecurityAdvisory.d.mts +39 -0
  355. package/Types/UpdateCheck/SecurityAdvisory.d.ts +39 -0
  356. package/Types/UpdateCheck/SecurityAdvisory.js +221 -0
  357. package/Types/UpdateCheck/SecurityAdvisory.mjs +7 -0
  358. package/Types/UpdateCheck/UpdateCheckFailure.d.mts +9 -0
  359. package/Types/UpdateCheck/UpdateCheckFailure.d.ts +9 -0
  360. package/Types/UpdateCheck/UpdateCheckFailure.js +32 -0
  361. package/Types/UpdateCheck/UpdateCheckFailure.mjs +3 -0
  362. package/Types/UpdateCheck/UpdateStatus.d.mts +44 -0
  363. package/Types/UpdateCheck/UpdateStatus.d.ts +44 -0
  364. package/Types/UpdateCheck/UpdateStatus.js +195 -0
  365. package/Types/UpdateCheck/UpdateStatus.mjs +3 -0
  366. package/Types/Workspace/WorkspaceMessagePayload.d.mts +1 -0
  367. package/Types/Workspace/WorkspaceMessagePayload.d.ts +1 -0
  368. package/Utils/AiRemediation/CloudChangeDryRunPlan.d.mts +17 -0
  369. package/Utils/AiRemediation/CloudChangeDryRunPlan.d.ts +17 -0
  370. package/Utils/AiRemediation/CloudChangeDryRunPlan.js +122 -0
  371. package/Utils/AiRemediation/CloudChangeDryRunPlan.mjs +7 -0
  372. package/Utils/AiRemediation/Resource/CloudCommandPolicy.d.mts +4 -0
  373. package/Utils/AiRemediation/Resource/CloudCommandPolicy.d.ts +4 -0
  374. package/Utils/AiRemediation/Resource/CloudCommandPolicy.js +177 -0
  375. package/Utils/AiRemediation/Resource/CloudCommandPolicy.mjs +4 -0
  376. package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +144 -0
  377. package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +144 -0
  378. package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +1964 -0
  379. package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +48 -0
  380. package/Utils/AiRemediation/Resource/ResourceCommandPolicy.js +4 -0
  381. package/Utils/DataSecurity/CustomDataTypeDetector.d.mts +23 -0
  382. package/Utils/DataSecurity/CustomDataTypeDetector.d.ts +23 -0
  383. package/Utils/DataSecurity/CustomDataTypeDetector.js +130 -0
  384. package/Utils/DataSecurity/CustomDataTypeDetector.mjs +8 -0
  385. package/Utils/DataSecurity/Detector.d.mts +26 -0
  386. package/Utils/DataSecurity/Detector.d.ts +26 -0
  387. package/Utils/DataSecurity/Detector.js +83 -0
  388. package/Utils/DataSecurity/Detector.mjs +8 -0
  389. package/Utils/DataSecurity/Detectors/ContactDetectors.d.mts +12 -0
  390. package/Utils/DataSecurity/Detectors/ContactDetectors.d.ts +12 -0
  391. package/Utils/DataSecurity/Detectors/ContactDetectors.js +915 -0
  392. package/Utils/DataSecurity/Detectors/ContactDetectors.mjs +12 -0
  393. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.d.mts +3 -0
  394. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.d.ts +3 -0
  395. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.js +52 -0
  396. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.mjs +3 -0
  397. package/Utils/DataSecurity/Detectors/FinancialDetectors.d.mts +8 -0
  398. package/Utils/DataSecurity/Detectors/FinancialDetectors.d.ts +8 -0
  399. package/Utils/DataSecurity/Detectors/FinancialDetectors.js +566 -0
  400. package/Utils/DataSecurity/Detectors/FinancialDetectors.mjs +8 -0
  401. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.d.mts +3 -0
  402. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.d.ts +3 -0
  403. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.js +2415 -0
  404. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.mjs +3 -0
  405. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.d.mts +3 -0
  406. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.d.ts +3 -0
  407. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.js +258 -0
  408. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.mjs +3 -0
  409. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.d.mts +3 -0
  410. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.d.ts +3 -0
  411. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.js +115 -0
  412. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.mjs +3 -0
  413. package/Utils/DataSecurity/Detectors/Index.d.mts +4 -0
  414. package/Utils/DataSecurity/Detectors/Index.d.ts +4 -0
  415. package/Utils/DataSecurity/Detectors/Index.js +47 -0
  416. package/Utils/DataSecurity/Detectors/Index.mjs +4 -0
  417. package/Utils/DataSecurity/Detectors/SecretDetectors.d.mts +11 -0
  418. package/Utils/DataSecurity/Detectors/SecretDetectors.d.ts +11 -0
  419. package/Utils/DataSecurity/Detectors/SecretDetectors.js +1733 -0
  420. package/Utils/DataSecurity/Detectors/SecretDetectors.mjs +11 -0
  421. package/Utils/DataSecurity/FieldClassifier.d.mts +20 -0
  422. package/Utils/DataSecurity/FieldClassifier.d.ts +20 -0
  423. package/Utils/DataSecurity/FieldClassifier.js +247 -0
  424. package/Utils/DataSecurity/FieldClassifier.mjs +5 -0
  425. package/Utils/DataSecurity/FieldCollector.d.mts +23 -0
  426. package/Utils/DataSecurity/FieldCollector.d.ts +23 -0
  427. package/Utils/DataSecurity/FieldCollector.js +81 -0
  428. package/Utils/DataSecurity/FieldCollector.mjs +3 -0
  429. package/Utils/DataSecurity/FieldNameHints.d.mts +9 -0
  430. package/Utils/DataSecurity/FieldNameHints.d.ts +9 -0
  431. package/Utils/DataSecurity/FieldNameHints.js +184 -0
  432. package/Utils/DataSecurity/FieldNameHints.mjs +6 -0
  433. package/Utils/DataSecurity/FindingTally.d.mts +44 -0
  434. package/Utils/DataSecurity/FindingTally.d.ts +44 -0
  435. package/Utils/DataSecurity/FindingTally.js +138 -0
  436. package/Utils/DataSecurity/FindingTally.mjs +6 -0
  437. package/Utils/DataSecurity/Masking.d.mts +6 -0
  438. package/Utils/DataSecurity/Masking.d.ts +6 -0
  439. package/Utils/DataSecurity/Masking.js +159 -0
  440. package/Utils/DataSecurity/Masking.mjs +7 -0
  441. package/Utils/DataSecurity/PathPattern.d.mts +3 -0
  442. package/Utils/DataSecurity/PathPattern.d.ts +3 -0
  443. package/Utils/DataSecurity/PathPattern.js +55 -0
  444. package/Utils/DataSecurity/PathPattern.mjs +4 -0
  445. package/Utils/DataSecurity/Sha256.d.mts +1 -0
  446. package/Utils/DataSecurity/Sha256.d.ts +1 -0
  447. package/Utils/DataSecurity/Sha256.js +94 -0
  448. package/Utils/DataSecurity/Sha256.mjs +2 -0
  449. package/Utils/DataSecurity/TextScanner.d.mts +35 -0
  450. package/Utils/DataSecurity/TextScanner.d.ts +35 -0
  451. package/Utils/DataSecurity/TextScanner.js +303 -0
  452. package/Utils/DataSecurity/TextScanner.mjs +8 -0
  453. package/Utils/DataSecurity/Validators.d.mts +16 -0
  454. package/Utils/DataSecurity/Validators.d.ts +16 -0
  455. package/Utils/DataSecurity/Validators.js +339 -0
  456. package/Utils/DataSecurity/Validators.mjs +17 -0
  457. package/Utils/Exceptions/ExceptionIssueState.d.mts +18 -0
  458. package/Utils/Exceptions/ExceptionIssueState.d.ts +18 -0
  459. package/Utils/Exceptions/ExceptionIssueState.js +131 -0
  460. package/Utils/Exceptions/ExceptionIssueState.mjs +8 -0
  461. package/Utils/HostCollector/HostCollectorDefaultConfig.d.mts +2 -0
  462. package/Utils/HostCollector/HostCollectorDefaultConfig.d.ts +2 -0
  463. package/Utils/HostCollector/HostCollectorDefaultConfig.js +39 -1
  464. package/Utils/HostCollector/HostCollectorDefaultConfig.mjs +2 -0
  465. package/Utils/LabelRuleImportExport.js +17 -3
  466. package/Utils/Monitor/PlatformResourceIdentity.js +7 -4
  467. package/Utils/SecurityAdvisoryMatcher.d.mts +33 -0
  468. package/Utils/SecurityAdvisoryMatcher.d.ts +33 -0
  469. package/Utils/SecurityAdvisoryMatcher.js +291 -0
  470. package/Utils/SecurityAdvisoryMatcher.mjs +2 -0
  471. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.mts +24 -0
  472. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.ts +24 -0
  473. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.js +380 -0
  474. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.mjs +15 -0
  475. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.mts +29 -0
  476. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.ts +29 -0
  477. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.js +527 -0
  478. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.mjs +13 -0
  479. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.d.mts +21 -0
  480. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.d.ts +21 -0
  481. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.js +365 -0
  482. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.mjs +11 -0
  483. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.mts +17 -0
  484. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.ts +17 -0
  485. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.js +344 -0
  486. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.mjs +12 -0
  487. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.mts +27 -0
  488. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.ts +27 -0
  489. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.js +326 -0
  490. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.mjs +10 -0
  491. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.d.mts +38 -0
  492. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.d.ts +38 -0
  493. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.js +629 -0
  494. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.mjs +13 -0
  495. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +9 -0
  496. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +9 -0
  497. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +63 -3
  498. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +4 -0
  499. package/Utils/SecurityEvent/LogParsers/SecurityLogParser.js +54 -0
  500. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.mts +26 -0
  501. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.ts +26 -0
  502. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.js +1046 -0
  503. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.mjs +11 -0
  504. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.mts +19 -0
  505. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.ts +19 -0
  506. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.js +724 -0
  507. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.mjs +7 -0
  508. package/Utils/SecurityEvent/SecurityRecordReading.d.mts +32 -0
  509. package/Utils/SecurityEvent/SecurityRecordReading.d.ts +32 -0
  510. package/Utils/SecurityEvent/SecurityRecordReading.js +78 -0
  511. package/Utils/SecurityEvent/SecurityRecordReading.mjs +2 -0
  512. package/Utils/Sms/OnCallPageSms.d.mts +1 -0
  513. package/Utils/Sms/OnCallPageSms.d.ts +1 -0
  514. package/Utils/Sms/OnCallPageSms.js +16 -2
  515. package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.mts +44 -0
  516. package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.ts +44 -0
  517. package/Utils/Suggestions/InvestigationCodeFixSuggestion.js +223 -0
  518. package/Utils/Suggestions/InvestigationCodeFixSuggestion.mjs +8 -0
  519. package/Utils/Syslog/LeefParser.d.mts +28 -0
  520. package/Utils/Syslog/LeefParser.d.ts +28 -0
  521. package/Utils/Syslog/LeefParser.js +326 -0
  522. package/Utils/Syslog/LeefParser.mjs +10 -0
  523. package/Utils/VersionRange.d.mts +34 -0
  524. package/Utils/VersionRange.d.ts +34 -0
  525. package/Utils/VersionRange.js +422 -0
  526. package/Utils/VersionRange.mjs +5 -0
  527. package/package.json +1 -1
@@ -11,6 +11,7 @@ exports.buildDockerDeltaMonitorConfig = buildDockerDeltaMonitorConfig;
11
11
  exports.getAllDockerAlertTemplates = getAllDockerAlertTemplates;
12
12
  exports.getDockerAlertTemplatesByCategory = getDockerAlertTemplatesByCategory;
13
13
  exports.getDockerAlertTemplateById = getDockerAlertTemplateById;
14
+ exports.getDockerDefaultAlertTemplateId = getDockerDefaultAlertTemplateId;
14
15
  const ObjectID_1 = __importDefault(require("../ObjectID"));
15
16
  const MonitorStep_1 = __importDefault(require("./MonitorStep"));
16
17
  const MonitorCriteria_1 = __importDefault(require("./MonitorCriteria"));
@@ -57,14 +58,13 @@ function dockerTitleSuffix(args) {
57
58
  *
58
59
  * The Docker SWARM agent runs the SAME docker_stats receiver with no
59
60
  * attribute-moving transform (DockerSwarmAgent/otel-collector-config.yaml:
60
- * receivers `[docker_stats]`, processors `[memory_limiter, resource,
61
- * batch]`, where `resource` only upserts `docker.swarm.cluster.name` and
61
+ * its `resource` processor only upserts `docker.swarm.cluster.name` and
62
62
  * `oneuptime.agent.version`), so Swarm container identity is stored
63
- * `resource.`-prefixed too. DockerSwarmAlertTemplates.ts groups by the bare
64
- * `container.name`; that key matches no stored attribute, and
65
- * aggregatePerSeriesFromRawMetrics labels a missing key "" — collapsing
66
- * every Swarm container into ONE series with an empty label. Do not copy
67
- * that spelling.
63
+ * `resource.`-prefixed too, and DockerSwarmAlertTemplates.ts groups by
64
+ * `resource.container.name` like these do. The bare `container.name`
65
+ * matches no stored attribute: aggregatePerSeriesFromRawMetrics labels a
66
+ * missing key "", which would collapse every container into ONE series
67
+ * with an empty label.
68
68
  */
69
69
  function buildDockerMonitorStep(args) {
70
70
  const monitorStep = new MonitorStep_1.default();
@@ -252,6 +252,46 @@ function buildDockerDeltaMonitorConfig(args) {
252
252
  };
253
253
  }
254
254
  // --- Template Definitions ---
255
+ const hostStoppedReportingTemplate = {
256
+ id: "docker-host-stopped-reporting",
257
+ name: "Host Stopped Reporting",
258
+ summary: "The Docker host sends no container metrics for 10 minutes.",
259
+ description: "Alert when the Docker host sends no container metrics for ten minutes: the host is down, or the Docker agent stopped, lost its route to OneUptime or had its token revoked. A host with no other containers still reports, because the agent runs as a container itself and reports its own.",
260
+ category: "Availability",
261
+ severity: "Critical",
262
+ getMonitorStep: (args) => {
263
+ const metricAlias = RecommendationCriteriaBuilder_1.STOPPED_REPORTING_METRIC_ALIAS;
264
+ return buildDockerMonitorStep(Object.assign({ dockerMonitor: buildDockerMonitorConfig({
265
+ hostIdentifier: args.hostIdentifier,
266
+ /*
267
+ * The heartbeat. docker_stats reports RUNNING containers only, so a
268
+ * host with nothing else running would look silent - except that
269
+ * the agent itself runs as a container (`oneuptime-docker-agent`,
270
+ * DockerAgent/docker-compose.yml, also under its systemd unit,
271
+ * which runs `docker compose up`) and the receiver excludes no
272
+ * image, so its own container.memory.percent arrives every 30s for
273
+ * as long as the agent runs. Ungrouped and counted: only a window
274
+ * with no row from any container is the breach.
275
+ */
276
+ metricName: "container.memory.percent",
277
+ metricAlias,
278
+ rollingTime: RollingTime_1.default.Past10Minutes,
279
+ aggregationType: MetricsAggregationType_1.default.Count,
280
+ }) }, (0, RecommendationCriteriaBuilder_1.buildStoppedReportingCriteriaInstances)({
281
+ onlineMonitorStatusId: args.onlineMonitorStatusId,
282
+ offlineMonitorStatusId: args.offlineMonitorStatusId,
283
+ incidentSeverityId: args.defaultIncidentSeverityId,
284
+ alertSeverityId: args.defaultAlertSeverityId,
285
+ monitorName: args.monitorName,
286
+ metricAlias,
287
+ resourceNoun: "Docker host",
288
+ incidentTitle: `[Docker] Host Stopped Reporting${dockerTitleSuffix(args)}`,
289
+ incidentDescription: `OneUptime has received no container metrics from this Docker host for ten minutes, so its other monitors have nothing to evaluate either. Check, in order: whether the host is up, whether the \`oneuptime-docker-agent\` container is running and what its logs say (\`docker logs oneuptime-docker-agent\`), and whether the host can reach OneUptime with the agent's token. The incident resolves on its own once metrics arrive again.`,
290
+ criteriaName: "Host Stopped Reporting - No data for 10 minutes",
291
+ criteriaDescription: "Triggers when the Docker host sends no container metrics for the whole ten-minute window.",
292
+ })));
293
+ },
294
+ };
255
295
  const highCpuTemplate = {
256
296
  id: "docker-high-cpu",
257
297
  name: "High Container CPU Usage",
@@ -346,7 +386,7 @@ const containerRestartLoopTemplate = {
346
386
  id: "docker-restart-loop",
347
387
  name: "Container Restart Loop",
348
388
  summary: "A container restarts more than 3 times in 15 minutes.",
349
- description: "Alert when a container's restart count climbs by more than 3 within fifteen minutes, indicating a crash loop. One alert per container.",
389
+ description: "Alert when a container's restart count climbs by more than 3 within fifteen minutes, indicating a crash loop. The count only grows between two samples of the same minute, and the agent samples running containers only, so a container that exits the moment it starts is rarely seen at all: Container Restarted (Low Uptime) catches every restart the agent does see. One alert per container.",
350
390
  category: "Container",
351
391
  severity: "Critical",
352
392
  getMonitorStep: (args) => {
@@ -381,6 +421,16 @@ const containerRestartLoopTemplate = {
381
421
  * Docker's restart backoff (doubling, capped at 60s) puts a real
382
422
  * crash loop at ~20 restarts per fifteen minutes, so the threshold
383
423
  * below still clears with room to spare.
424
+ *
425
+ * What it cannot see: docker_stats samples RUNNING containers only,
426
+ * so a container that exits the moment it starts is almost never
427
+ * sampled, twice in a minute or at all. Taking the counter's growth
428
+ * across the WHOLE window instead would need the alerting path to
429
+ * difference values across buckets, which it cannot (no rate or
430
+ * delta in AggregationType or EvaluateOverTimeType, and formulas
431
+ * are evaluated point by point); and even that would need two
432
+ * samples of the container. Container Restarted (Low Uptime) fires
433
+ * on every restart the agent does sample.
384
434
  */
385
435
  rollingTime: RollingTime_1.default.Past15Minutes,
386
436
  groupByAttributeKey: "resource.container.name",
@@ -534,32 +584,33 @@ const highProcessCountTemplate = {
534
584
  },
535
585
  };
536
586
  /*
537
- * KNOWN INERT — do not copy this shape, and do not assume it gives adopters
538
- * container-down coverage.
587
+ * A container that RESTARTED, not one that stopped: the id still says
588
+ * "down" and deliberately stays that way, because it is the stable key the
589
+ * recommendation catalog and the already-created-monitor diff match on
590
+ * (MonitorRecommendationCatalog.buildRecommendationId).
539
591
  *
540
- * `container.uptime` is seconds-since-start from the docker_stats receiver,
541
- * which only scrapes RUNNING containers, so the value is a positive double
542
- * and `= 0` is unreachable. Absence cannot substitute either: a stopped
543
- * container emits no datapoint, so it produces no series, and
544
- * MonitorCriteriaEvaluator discards a grouped criteria whose per-series
545
- * match list is empty — `onNoDataPolicy: Trigger` would be inert too. The
546
- * worker's only absent-series injectors are host- and IoT-device-scoped
547
- * (injectExpectedAbsentHostSeries / injectExpectedAbsentIoTDeviceSeries,
548
- * gated by HostAbsenceSeries.getHostAbsenceGroupByKey).
592
+ * This used to fire on `container.uptime = 0`, which can never match:
593
+ * uptime is seconds-since-start from the docker_stats receiver, which only
594
+ * scrapes RUNNING containers, so the value is a positive double and is
595
+ * never sampled at the instant a container starts. Absence cannot
596
+ * substitute either: a stopped container emits no datapoint, so it
597
+ * produces no series, and MonitorCriteriaEvaluator discards a grouped
598
+ * criteria whose per-series match list is empty - the worker's only
599
+ * absent-series injectors are host- and IoT-device-scoped
600
+ * (injectExpectedAbsentHostSeries / injectExpectedAbsentIoTDeviceSeries).
601
+ * A container that stops and stays stopped therefore cannot be detected
602
+ * per container from this data; Host Stopped Reporting covers the host
603
+ * going silent.
549
604
  *
550
- * Real per-container down detection needs an absent-CONTAINER injector in
551
- * App/FeatureSet/Workers/Jobs/TelemetryMonitor/MonitorTelemetryMonitor.ts.
552
- * Until that exists this template cannot fire. Removing it is the honest
553
- * alternative, but that also touches TemplateGroupByKeys.test.ts and six
554
- * localised docs tables, so it is deliberately left for a follow-up rather
555
- * than half-done here. PodmanAlertTemplates and DockerSwarmAlertTemplates
556
- * carry the identical inert design.
605
+ * A LOW uptime is the signal the metric can carry: the container started
606
+ * again recently - the restart policy brought it back after a crash, or it
607
+ * was redeployed. Same shape as PodmanAlertTemplates' podman-container-down.
557
608
  */
558
609
  const containerUptimeTemplate = {
559
610
  id: "docker-container-down",
560
- name: "Container Down (Low Uptime)",
561
- summary: "A container stops or crashes.",
562
- description: "Alert when a container's uptime drops to zero, indicating it has stopped or crashed. One alert per container.",
611
+ name: "Container Restarted (Low Uptime)",
612
+ summary: "A container restarted, crashed or was redeployed in the last 2 minutes.",
613
+ description: "Alert when a container's uptime resets, meaning it restarted, crashed and was brought back by its restart policy, or was redeployed in the last two minutes. A container that stops and stays stopped sends no data, so this catches restarts, not a permanent shutdown. One alert per container.",
563
614
  category: "Container",
564
615
  severity: "Critical",
565
616
  getMonitorStep: (args) => {
@@ -570,6 +621,11 @@ const containerUptimeTemplate = {
570
621
  metricName: "container.uptime",
571
622
  metricAlias,
572
623
  rollingTime: RollingTime_1.default.Past1Minute,
624
+ /*
625
+ * Min WITHIN each container's series: the low sample taken just
626
+ * after a restart survives instead of being averaged away by the
627
+ * scrapes around it.
628
+ */
573
629
  aggregationType: MetricsAggregationType_1.default.Min,
574
630
  groupByAttributeKey: "resource.container.name",
575
631
  }),
@@ -579,24 +635,32 @@ const containerUptimeTemplate = {
579
635
  alertSeverityId: args.defaultAlertSeverityId,
580
636
  monitorName: args.monitorName,
581
637
  metricAlias,
582
- filterType: CriteriaFilter_1.FilterType.EqualTo,
583
- value: 0,
584
- incidentTitle: `[Docker] Container Down${dockerTitleSuffix(args)}`,
585
- incidentDescription: `A Docker container has stopped running. The container uptime is zero, indicating it has crashed, been stopped, or been removed. Check the container status and logs for details.`,
586
- criteriaName: "Container Down - Uptime = 0",
587
- criteriaDescription: "Triggers when container uptime drops to zero.",
638
+ /*
639
+ * Two minutes is deliberately wider than the 30 s scrape interval
640
+ * and the 60 s evaluation interval, so the once-a-minute evaluator
641
+ * sees the whole Past1Minute window under the threshold whatever
642
+ * the phase of the scrapes; a 60 s threshold on a 60 s window can
643
+ * miss a restart entirely.
644
+ */
645
+ filterType: CriteriaFilter_1.FilterType.LessThan,
646
+ value: 120,
647
+ incidentTitle: `[Docker] Container Restarted (uptime < 2m)${dockerTitleSuffix(args)}`,
648
+ incidentDescription: `A Docker container's uptime counter has reset, so it crashed and was restarted by its restart policy, was restarted by hand, or was redeployed within the last two minutes. On the host, \`docker inspect\` shows why the last run ended and \`docker logs --since 5m\` what it printed. A container that stops and stays stopped reports no metrics at all, so this alert detects restarts rather than a permanent shutdown, and a container that is meant to run for less than two minutes stays in this state for its whole life. Check the root cause for the container and the observed uptime.`,
649
+ criteriaName: "Container Restarted - Uptime < 120s",
650
+ criteriaDescription: "Triggers when a container's uptime stays under 120 seconds for the whole window, which means it started or restarted within the last two minutes.",
588
651
  }),
589
652
  onlineCriteriaInstance: buildDockerOnlineCriteriaInstance({
590
653
  onlineMonitorStatusId: args.onlineMonitorStatusId,
591
654
  metricAlias,
592
- filterType: CriteriaFilter_1.FilterType.GreaterThan,
593
- value: 0,
655
+ filterType: CriteriaFilter_1.FilterType.GreaterThanOrEqualTo,
656
+ value: 120,
594
657
  }),
595
658
  });
596
659
  },
597
660
  };
598
661
  function getAllDockerAlertTemplates() {
599
662
  return [
663
+ hostStoppedReportingTemplate,
600
664
  highCpuTemplate,
601
665
  highMemoryTemplate,
602
666
  containerRestartLoopTemplate,
@@ -615,3 +679,11 @@ function getDockerAlertTemplateById(id) {
615
679
  return template.id === id;
616
680
  });
617
681
  }
682
+ /*
683
+ * The template a NEW Docker monitor starts on: the host going silent. It is
684
+ * the one template that still speaks when every other one has stopped being
685
+ * evaluated, and it has no threshold to tune.
686
+ */
687
+ function getDockerDefaultAlertTemplateId() {
688
+ return hostStoppedReportingTemplate.id;
689
+ }
@@ -7,3 +7,4 @@ export const buildDockerOnlineCriteriaInstance = commonJsModule.buildDockerOnlin
7
7
  export const getAllDockerAlertTemplates = commonJsModule.getAllDockerAlertTemplates;
8
8
  export const getDockerAlertTemplateById = commonJsModule.getDockerAlertTemplateById;
9
9
  export const getDockerAlertTemplatesByCategory = commonJsModule.getDockerAlertTemplatesByCategory;
10
+ export const getDockerDefaultAlertTemplateId = commonJsModule.getDockerDefaultAlertTemplateId;
@@ -8,6 +8,7 @@ export interface DockerMetricDefinition {
8
8
  category: DockerMetricCategory;
9
9
  defaultAggregation: MetricsAggregationType;
10
10
  unit?: string;
11
+ attributes?: Record<string, string> | undefined;
11
12
  }
12
13
  export declare function getAllDockerMetrics(): Array<DockerMetricDefinition>;
13
14
  export declare function getDockerMetricsByCategory(category: DockerMetricCategory): Array<DockerMetricDefinition>;
@@ -8,6 +8,7 @@ export interface DockerMetricDefinition {
8
8
  category: DockerMetricCategory;
9
9
  defaultAggregation: MetricsAggregationType;
10
10
  unit?: string;
11
+ attributes?: Record<string, string> | undefined;
11
12
  }
12
13
  export declare function getAllDockerMetrics(): Array<DockerMetricDefinition>;
13
14
  export declare function getDockerMetricsByCategory(category: DockerMetricCategory): Array<DockerMetricDefinition>;
@@ -9,6 +9,19 @@ exports.getDockerMetricById = getDockerMetricById;
9
9
  exports.getDockerMetricByMetricName = getDockerMetricByMetricName;
10
10
  exports.getAllDockerMetricCategories = getAllDockerMetricCategories;
11
11
  const MetricsAggregationType_1 = __importDefault(require("../Metrics/MetricsAggregationType"));
12
+ /*
13
+ * Only what the shipped Docker Agent sends
14
+ * (agents/DockerAgent/otel-collector-config.yaml). The docker_stats
15
+ * receiver's optional metrics stay off there - per-core CPU
16
+ * (container.cpu.usage.percpu), container.memory.rss and
17
+ * container.memory.cache (cgroup v1 only, too) and the network packet
18
+ * counters - and there is no `container.blockio.io_service_bytes_recursive
19
+ * .read` / `.write`: the receiver emits one
20
+ * container.blockio.io_service_bytes_recursive, with an `operation`
21
+ * attribute (lower-cased: `read`, `write`) and the device's major/minor
22
+ * numbers. An entry for a metric that never arrives is a monitor that
23
+ * never fires.
24
+ */
12
25
  const dockerMetricCatalog = [
13
26
  // CPU Metrics
14
27
  {
@@ -29,15 +42,6 @@ const dockerMetricCatalog = [
29
42
  defaultAggregation: MetricsAggregationType_1.default.Avg,
30
43
  unit: "%",
31
44
  },
32
- {
33
- id: "container-cpu-usage-percpu",
34
- friendlyName: "Container CPU Usage (Per Core)",
35
- description: "Per-core CPU usage of the container",
36
- metricName: "container.cpu.usage.percpu",
37
- category: "CPU",
38
- defaultAggregation: MetricsAggregationType_1.default.Avg,
39
- unit: "ns",
40
- },
41
45
  {
42
46
  id: "container-cpu-throttled-time",
43
47
  friendlyName: "Container CPU Throttled Time",
@@ -75,24 +79,6 @@ const dockerMetricCatalog = [
75
79
  defaultAggregation: MetricsAggregationType_1.default.Avg,
76
80
  unit: "%",
77
81
  },
78
- {
79
- id: "container-memory-rss",
80
- friendlyName: "Container Memory RSS",
81
- description: "Resident set size (non-swapped physical memory) used",
82
- metricName: "container.memory.rss",
83
- category: "Memory",
84
- defaultAggregation: MetricsAggregationType_1.default.Avg,
85
- unit: "bytes",
86
- },
87
- {
88
- id: "container-memory-cache",
89
- friendlyName: "Container Memory Cache",
90
- description: "Amount of memory used as page cache",
91
- metricName: "container.memory.cache",
92
- category: "Memory",
93
- defaultAggregation: MetricsAggregationType_1.default.Avg,
94
- unit: "bytes",
95
- },
96
82
  // Network Metrics
97
83
  {
98
84
  id: "container-network-rx-bytes",
@@ -112,41 +98,29 @@ const dockerMetricCatalog = [
112
98
  defaultAggregation: MetricsAggregationType_1.default.Sum,
113
99
  unit: "bytes",
114
100
  },
115
- {
116
- id: "container-network-rx-packets",
117
- friendlyName: "Container Network Packets Received",
118
- description: "Packets received over the network by the container",
119
- metricName: "container.network.io.usage.rx_packets",
120
- category: "Network",
121
- defaultAggregation: MetricsAggregationType_1.default.Sum,
122
- unit: "count",
123
- },
124
- {
125
- id: "container-network-tx-packets",
126
- friendlyName: "Container Network Packets Transmitted",
127
- description: "Packets transmitted over the network by the container",
128
- metricName: "container.network.io.usage.tx_packets",
129
- category: "Network",
130
- defaultAggregation: MetricsAggregationType_1.default.Sum,
131
- unit: "count",
132
- },
133
101
  // Block I/O Metrics
134
102
  {
135
103
  id: "container-blockio-read",
136
104
  friendlyName: "Container Block I/O Read",
137
- description: "Bytes read from block devices by the container",
138
- metricName: "container.blockio.io_service_bytes_recursive.read",
105
+ description: "Bytes the container has read from each block device since it started. A lifetime counter, per device: chart it as a rate.",
106
+ metricName: "container.blockio.io_service_bytes_recursive",
107
+ attributes: { operation: "read" },
139
108
  category: "BlockIO",
140
- defaultAggregation: MetricsAggregationType_1.default.Sum,
109
+ /*
110
+ * Max, not Sum: a minute's rows are the same lifetime total sampled
111
+ * twice (and once per device), so a Sum doubles it.
112
+ */
113
+ defaultAggregation: MetricsAggregationType_1.default.Max,
141
114
  unit: "bytes",
142
115
  },
143
116
  {
144
117
  id: "container-blockio-write",
145
118
  friendlyName: "Container Block I/O Write",
146
- description: "Bytes written to block devices by the container",
147
- metricName: "container.blockio.io_service_bytes_recursive.write",
119
+ description: "Bytes the container has written to each block device since it started. A lifetime counter, per device: chart it as a rate.",
120
+ metricName: "container.blockio.io_service_bytes_recursive",
121
+ attributes: { operation: "write" },
148
122
  category: "BlockIO",
149
- defaultAggregation: MetricsAggregationType_1.default.Sum,
123
+ defaultAggregation: MetricsAggregationType_1.default.Max,
150
124
  unit: "bytes",
151
125
  },
152
126
  // Container Info Metrics
@@ -171,7 +145,7 @@ const dockerMetricCatalog = [
171
145
  {
172
146
  id: "container-pids-count",
173
147
  friendlyName: "Container Process Count",
174
- description: "Number of processes running inside the container",
148
+ description: "Tasks in the container: processes and their threads, as the cgroup pids controller counts them.",
175
149
  metricName: "container.pids.count",
176
150
  category: "Container",
177
151
  defaultAggregation: MetricsAggregationType_1.default.Avg,
@@ -65,3 +65,4 @@ export declare function buildDockerSwarmMonitorConfig(args: {
65
65
  export declare function getAllDockerSwarmAlertTemplates(): Array<DockerSwarmAlertTemplate>;
66
66
  export declare function getDockerSwarmAlertTemplatesByCategory(category: DockerSwarmAlertTemplateCategory): Array<DockerSwarmAlertTemplate>;
67
67
  export declare function getDockerSwarmAlertTemplateById(id: string): DockerSwarmAlertTemplate | undefined;
68
+ export declare function getDockerSwarmDefaultAlertTemplateId(): string;
@@ -65,3 +65,4 @@ export declare function buildDockerSwarmMonitorConfig(args: {
65
65
  export declare function getAllDockerSwarmAlertTemplates(): Array<DockerSwarmAlertTemplate>;
66
66
  export declare function getDockerSwarmAlertTemplatesByCategory(category: DockerSwarmAlertTemplateCategory): Array<DockerSwarmAlertTemplate>;
67
67
  export declare function getDockerSwarmAlertTemplateById(id: string): DockerSwarmAlertTemplate | undefined;
68
+ export declare function getDockerSwarmDefaultAlertTemplateId(): string;
@@ -10,6 +10,7 @@ exports.buildDockerSwarmMonitorConfig = buildDockerSwarmMonitorConfig;
10
10
  exports.getAllDockerSwarmAlertTemplates = getAllDockerSwarmAlertTemplates;
11
11
  exports.getDockerSwarmAlertTemplatesByCategory = getDockerSwarmAlertTemplatesByCategory;
12
12
  exports.getDockerSwarmAlertTemplateById = getDockerSwarmAlertTemplateById;
13
+ exports.getDockerSwarmDefaultAlertTemplateId = getDockerSwarmDefaultAlertTemplateId;
13
14
  const ObjectID_1 = __importDefault(require("../ObjectID"));
14
15
  const MonitorStep_1 = __importDefault(require("./MonitorStep"));
15
16
  const MonitorCriteria_1 = __importDefault(require("./MonitorCriteria"));
@@ -113,6 +114,47 @@ function buildDockerSwarmMonitorConfig(args) {
113
114
  * always adds the cluster scope (`resource.docker.swarm.cluster.name`)
114
115
  * from the step's clusterIdentifier; no container.runtime filter.
115
116
  */
117
+ const clusterStoppedReportingTemplate = {
118
+ id: "docker-swarm-cluster-stopped-reporting",
119
+ name: "Cluster Stopped Reporting",
120
+ summary: "The cluster sends no container metrics for 10 minutes.",
121
+ description: "Alert when no node of the Swarm cluster sends container metrics for ten minutes: the nodes running the agent are down, or the agent stopped, lost its route to OneUptime or had its token revoked. A node with no tasks still reports, because the agent runs as a container itself and reports its own. One incident for the whole cluster.",
122
+ category: "Availability",
123
+ severity: "Critical",
124
+ getMonitorStep: (args) => {
125
+ const metricAlias = RecommendationCriteriaBuilder_1.STOPPED_REPORTING_METRIC_ALIAS;
126
+ return buildDockerSwarmMonitorStep(Object.assign({ dockerSwarmMonitor: buildDockerSwarmMonitorConfig({
127
+ clusterIdentifier: args.clusterIdentifier,
128
+ /*
129
+ * The heartbeat. docker_stats reports RUNNING containers only, but
130
+ * on every node the agent itself runs as one
131
+ * (`oneuptime-docker-swarm-agent`, DockerSwarmAgent/
132
+ * docker-compose.yml) and the receiver excludes no image, so its
133
+ * own container.memory.percent - stamped with the cluster name
134
+ * like every other row of the pipeline - arrives every 30s for as
135
+ * long as any node's agent runs. NOT grouped: a node that leaves
136
+ * the cluster takes its series with it, and the whole-cluster
137
+ * silence is the one this template is for.
138
+ */
139
+ metricName: "container.memory.percent",
140
+ metricAlias,
141
+ rollingTime: RollingTime_1.default.Past10Minutes,
142
+ aggregationType: MetricsAggregationType_1.default.Count,
143
+ }) }, (0, RecommendationCriteriaBuilder_1.buildStoppedReportingCriteriaInstances)({
144
+ onlineMonitorStatusId: args.onlineMonitorStatusId,
145
+ offlineMonitorStatusId: args.offlineMonitorStatusId,
146
+ incidentSeverityId: args.defaultIncidentSeverityId,
147
+ alertSeverityId: args.defaultAlertSeverityId,
148
+ monitorName: args.monitorName,
149
+ metricAlias,
150
+ resourceNoun: "Docker Swarm cluster",
151
+ incidentTitle: `[Docker Swarm] Cluster Stopped Reporting - ${args.monitorName}`,
152
+ incidentDescription: `OneUptime has received no container metrics from this Docker Swarm cluster for ten minutes, so its other monitors have nothing to evaluate either. Check, in order: whether the nodes running the agent are up, whether the \`oneuptime-docker-swarm-agent\` container is running on them and what its logs say (\`docker logs oneuptime-docker-swarm-agent\`), and whether they can reach OneUptime with the agent's token. The incident resolves on its own once metrics arrive again.`,
153
+ criteriaName: "Cluster Stopped Reporting - No data for 10 minutes",
154
+ criteriaDescription: "Triggers when no node of the Swarm cluster sends container metrics for the whole ten-minute window.",
155
+ })));
156
+ },
157
+ };
116
158
  const highCpuTemplate = {
117
159
  id: "docker-swarm-high-cpu",
118
160
  name: "High Task CPU Usage",
@@ -219,8 +261,8 @@ const highMemoryTemplate = {
219
261
  const highProcessCountTemplate = {
220
262
  id: "docker-swarm-high-pids",
221
263
  name: "High Task Process Count",
222
- summary: "A task runs more than 500 processes.",
223
- description: "Alert when any Swarm task's container has an unusually high number of processes (container.pids.count > 500), which may indicate a fork bomb or resource leak. One incident per task.",
264
+ summary: "A task runs more than 2000 processes and threads.",
265
+ description: "Alert when any Swarm task's container holds more than 2000 tasks — processes PLUS threads (container.pids.count > 2000) — which may indicate a fork bomb, a thread leak, or an unbounded worker pool. One incident per task.",
224
266
  category: "Container",
225
267
  severity: "Warning",
226
268
  getMonitorStep: (args) => {
@@ -241,18 +283,24 @@ const highProcessCountTemplate = {
241
283
  alertSeverityId: args.defaultAlertSeverityId,
242
284
  monitorName: args.monitorName,
243
285
  metricAlias,
286
+ /*
287
+ * 2000, as Docker's docker-high-pids. container.pids.count reads
288
+ * the cgroup pids controller, which counts TASKS - threads as well
289
+ * as processes - so 500 was ordinary for a JVM or a Go service and
290
+ * the alert called a task working as designed a fork bomb.
291
+ */
244
292
  filterType: CriteriaFilter_1.FilterType.GreaterThan,
245
- value: 500,
246
- incidentTitle: `[Docker Swarm] High Task Process Count (>500) - ${args.monitorName}`,
247
- incidentDescription: `A Docker Swarm task's container has an unusually high number of processes (>500). This may indicate a fork bomb, a thread/connection leak, or a misconfigured application. Check the root cause for the affected task container and inspect it for runaway processes.`,
248
- criteriaName: "High Task PIDs - Count > 500",
249
- criteriaDescription: "Triggers when any task's process count exceeds 500 over the monitoring window.",
293
+ value: 2000,
294
+ incidentTitle: `[Docker Swarm] High Task Process/Thread Count (>2000) - ${args.monitorName}`,
295
+ incidentDescription: `A Docker Swarm task's container held more than 2000 tasks for the whole evaluation window. container.pids.count reads the cgroup pids controller, which counts TASKS — threads as well as processes — so a JVM or a Go service sits far above its process count. Sustained above 2000 usually means a fork bomb, a thread leak, or a pool sized without a ceiling. Check the root cause for the affected task container and inspect it for runaway processes and threads.`,
296
+ criteriaName: "High Task PIDs - Task Count > 2000",
297
+ criteriaDescription: "Triggers when any task's task (process + thread) count stays above 2000 over the monitoring window.",
250
298
  }),
251
299
  onlineCriteriaInstance: buildDockerSwarmOnlineCriteriaInstance({
252
300
  onlineMonitorStatusId: args.onlineMonitorStatusId,
253
301
  metricAlias,
254
302
  filterType: CriteriaFilter_1.FilterType.LessThanOrEqualTo,
255
- value: 500,
303
+ value: 2000,
256
304
  }),
257
305
  });
258
306
  },
@@ -334,6 +382,7 @@ const taskDownTemplate = {
334
382
  };
335
383
  function getAllDockerSwarmAlertTemplates() {
336
384
  return [
385
+ clusterStoppedReportingTemplate,
337
386
  taskDownTemplate,
338
387
  highCpuTemplate,
339
388
  highMemoryTemplate,
@@ -350,3 +399,11 @@ function getDockerSwarmAlertTemplateById(id) {
350
399
  return template.id === id;
351
400
  });
352
401
  }
402
+ /*
403
+ * The template a NEW Docker Swarm monitor starts on: the cluster going
404
+ * silent. It is the one template that still speaks when every other one has
405
+ * stopped being evaluated, and it has no threshold to tune.
406
+ */
407
+ function getDockerSwarmDefaultAlertTemplateId() {
408
+ return clusterStoppedReportingTemplate.id;
409
+ }
@@ -6,3 +6,4 @@ export const buildDockerSwarmOnlineCriteriaInstance = commonJsModule.buildDocker
6
6
  export const getAllDockerSwarmAlertTemplates = commonJsModule.getAllDockerSwarmAlertTemplates;
7
7
  export const getDockerSwarmAlertTemplateById = commonJsModule.getDockerSwarmAlertTemplateById;
8
8
  export const getDockerSwarmAlertTemplatesByCategory = commonJsModule.getDockerSwarmAlertTemplatesByCategory;
9
+ export const getDockerSwarmDefaultAlertTemplateId = commonJsModule.getDockerSwarmDefaultAlertTemplateId;
@@ -14,9 +14,12 @@ const MetricsAggregationType_1 = __importDefault(require("../Metrics/MetricsAggr
14
14
  * scheme. The OneUptime Docker Swarm Agent runs the docker_stats receiver
15
15
  * against the Swarm manager node, so the series that actually arrive are
16
16
  * the standard `container.*` container-runtime metrics — there are NO
17
- * `docker_swarm_*` or `pve_*` metrics. Each datapoint carries the owning
18
- * container's identity labels (`container.name`,
19
- * `container.image.name`); for a Swarm service task the container name is
17
+ * `docker_swarm_*` or `pve_*` metrics. The receiver emits one
18
+ * ResourceMetrics per container and carries the container's identity
19
+ * (`container.name`, `container.image.name`) as RESOURCE attributes, which
20
+ * ClickHouse stores `resource.`-prefixed: group and filter by
21
+ * `resource.container.name`, never the bare key, which matches nothing.
22
+ * For a Swarm service task the container name is
20
23
  * `<service>.<slot>.<taskid>`. The whole batch is scoped by the
21
24
  * `docker.swarm.cluster.name` resource attribute the agent stamps.
22
25
  */
@@ -73,7 +76,7 @@ const dockerSwarmMetricCatalog = [
73
76
  {
74
77
  id: "container-pids-count",
75
78
  friendlyName: "Container Process Count",
76
- description: "Number of processes running inside a Swarm task's container. A sudden spike can indicate a fork bomb or resource leak.",
79
+ description: "Tasks in a Swarm task's container: processes and their threads, as the cgroup pids controller counts them. A sudden spike can indicate a fork bomb or a thread leak.",
77
80
  metricName: "container.pids.count",
78
81
  category: "Container",
79
82
  defaultAggregation: MetricsAggregationType_1.default.Avg,
@@ -5,7 +5,7 @@ import { FilterType, EvaluateOverTimeType } from "./CriteriaFilter.mjs";
5
5
  import MonitorStepHostMonitor from "./MonitorStepHostMonitor.mjs";
6
6
  import RollingTime from "../RollingTime/RollingTime.mjs";
7
7
  import MetricsAggregationType from "../Metrics/MetricsAggregationType.mjs";
8
- export type HostAlertTemplateCategory = "Resource" | "Host";
8
+ export type HostAlertTemplateCategory = "Availability" | "Resource" | "Host";
9
9
  export type HostAlertTemplateSeverity = "Critical" | "Warning";
10
10
  export interface HostAlertTemplateArgs {
11
11
  hostIdentifier: string;
@@ -127,3 +127,4 @@ export declare function buildHostFormulaMonitorConfig(args: {
127
127
  export declare function getAllHostAlertTemplates(): Array<HostAlertTemplate>;
128
128
  export declare function getHostAlertTemplatesByCategory(category: HostAlertTemplateCategory): Array<HostAlertTemplate>;
129
129
  export declare function getHostAlertTemplateById(id: string): HostAlertTemplate | undefined;
130
+ export declare function getHostDefaultAlertTemplateId(): string;
@@ -5,7 +5,7 @@ import { FilterType, EvaluateOverTimeType } from "./CriteriaFilter";
5
5
  import MonitorStepHostMonitor from "./MonitorStepHostMonitor";
6
6
  import RollingTime from "../RollingTime/RollingTime";
7
7
  import MetricsAggregationType from "../Metrics/MetricsAggregationType";
8
- export type HostAlertTemplateCategory = "Resource" | "Host";
8
+ export type HostAlertTemplateCategory = "Availability" | "Resource" | "Host";
9
9
  export type HostAlertTemplateSeverity = "Critical" | "Warning";
10
10
  export interface HostAlertTemplateArgs {
11
11
  hostIdentifier: string;
@@ -127,3 +127,4 @@ export declare function buildHostFormulaMonitorConfig(args: {
127
127
  export declare function getAllHostAlertTemplates(): Array<HostAlertTemplate>;
128
128
  export declare function getHostAlertTemplatesByCategory(category: HostAlertTemplateCategory): Array<HostAlertTemplate>;
129
129
  export declare function getHostAlertTemplateById(id: string): HostAlertTemplate | undefined;
130
+ export declare function getHostDefaultAlertTemplateId(): string;
@@ -12,6 +12,7 @@ exports.buildHostFormulaMonitorConfig = buildHostFormulaMonitorConfig;
12
12
  exports.getAllHostAlertTemplates = getAllHostAlertTemplates;
13
13
  exports.getHostAlertTemplatesByCategory = getHostAlertTemplatesByCategory;
14
14
  exports.getHostAlertTemplateById = getHostAlertTemplateById;
15
+ exports.getHostDefaultAlertTemplateId = getHostDefaultAlertTemplateId;
15
16
  const ObjectID_1 = __importDefault(require("../ObjectID"));
16
17
  const MonitorStep_1 = __importDefault(require("./MonitorStep"));
17
18
  const MonitorCriteria_1 = __importDefault(require("./MonitorCriteria"));
@@ -204,6 +205,44 @@ function buildHostFormulaMonitorConfig(args) {
204
205
  };
205
206
  }
206
207
  // --- Template Definitions ---
208
+ const hostStoppedReportingTemplate = {
209
+ id: "host-stopped-reporting",
210
+ name: "Host Stopped Reporting",
211
+ summary: "The host sends no metrics for 10 minutes.",
212
+ description: "Alert when the host sends no metrics for ten minutes: the machine is down or unreachable, or its OpenTelemetry Collector stopped, lost its route to OneUptime or had its token revoked. Reads system.memory.usage, which the collector's memory scraper reports on every collection on Linux, macOS and Windows.",
213
+ category: "Availability",
214
+ severity: "Critical",
215
+ getMonitorStep: (args) => {
216
+ const metricAlias = RecommendationCriteriaBuilder_1.STOPPED_REPORTING_METRIC_ALIAS;
217
+ return buildHostMonitorStep(Object.assign({ hostMonitor: buildHostMonitorConfig({
218
+ hostIdentifier: args.hostIdentifier,
219
+ /*
220
+ * The heartbeat. The hostmetrics memory scraper reports
221
+ * system.memory.usage (once per memory `state`) on every
222
+ * collection, with no optional metric to enable and on every
223
+ * platform the receiver supports, so it is never missing while
224
+ * the collector runs. Ungrouped and counted: only a window with no
225
+ * row at all is the breach.
226
+ */
227
+ metricName: "system.memory.usage",
228
+ metricAlias,
229
+ rollingTime: RollingTime_1.default.Past10Minutes,
230
+ aggregationType: MetricsAggregationType_1.default.Count,
231
+ }) }, (0, RecommendationCriteriaBuilder_1.buildStoppedReportingCriteriaInstances)({
232
+ onlineMonitorStatusId: args.onlineMonitorStatusId,
233
+ offlineMonitorStatusId: args.offlineMonitorStatusId,
234
+ incidentSeverityId: args.defaultIncidentSeverityId,
235
+ alertSeverityId: args.defaultAlertSeverityId,
236
+ monitorName: args.monitorName,
237
+ metricAlias,
238
+ resourceNoun: "host",
239
+ incidentTitle: `[Host] Host Stopped Reporting${hostTitleSuffix(args)}`,
240
+ incidentDescription: `OneUptime has received no metrics from this host for ten minutes, so its other monitors have nothing to evaluate either. Check, in order: whether the machine is up and reachable, whether its OpenTelemetry Collector is running and what its log says, and whether the collector can still reach OneUptime with its token. The incident resolves on its own once metrics arrive again.`,
241
+ criteriaName: "Host Stopped Reporting - No data for 10 minutes",
242
+ criteriaDescription: "Triggers when the host sends no memory metrics for the whole ten-minute window.",
243
+ })));
244
+ },
245
+ };
207
246
  const highCpuTemplate = {
208
247
  id: "host-high-cpu",
209
248
  name: "High CPU Utilization",
@@ -514,6 +553,7 @@ const highProcessCountTemplate = {
514
553
  };
515
554
  function getAllHostAlertTemplates() {
516
555
  return [
556
+ hostStoppedReportingTemplate,
517
557
  highCpuTemplate,
518
558
  highMemoryTemplate,
519
559
  highFilesystemUsageTemplate,
@@ -531,3 +571,11 @@ function getHostAlertTemplateById(id) {
531
571
  return template.id === id;
532
572
  });
533
573
  }
574
+ /*
575
+ * The template a NEW Host monitor starts on: the host going silent. It is
576
+ * the one template that still speaks when every other one has stopped being
577
+ * evaluated, and it has no threshold to tune.
578
+ */
579
+ function getHostDefaultAlertTemplateId() {
580
+ return hostStoppedReportingTemplate.id;
581
+ }