@oneuptime/common 17.0.0 → 17.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1035) hide show
  1. package/Models/AnalyticsModels/AuditLog.d.mts +10 -0
  2. package/Models/AnalyticsModels/AuditLog.d.ts +10 -0
  3. package/Models/AnalyticsModels/AuditLog.js +110 -0
  4. package/Models/AnalyticsModels/KubernetesCostAllocation.d.mts +14 -0
  5. package/Models/AnalyticsModels/KubernetesCostAllocation.d.ts +14 -0
  6. package/Models/AnalyticsModels/KubernetesCostAllocation.js +169 -0
  7. package/Models/DatabaseModels/AIPostmortemRule.js +1 -1
  8. package/Models/DatabaseModels/AIRun.d.mts +3 -0
  9. package/Models/DatabaseModels/AIRun.d.ts +3 -0
  10. package/Models/DatabaseModels/AIRun.js +64 -0
  11. package/Models/DatabaseModels/AlertGroupingRule.js +1 -1
  12. package/Models/DatabaseModels/AlertIncidentRule.js +1 -1
  13. package/Models/DatabaseModels/AlertMeasurement.js +1 -1
  14. package/Models/DatabaseModels/AlertReminderRule.js +1 -1
  15. package/Models/DatabaseModels/AlertSeverity.js +1 -1
  16. package/Models/DatabaseModels/AlertState.js +1 -1
  17. package/Models/DatabaseModels/CloudConnection.d.mts +1 -0
  18. package/Models/DatabaseModels/CloudConnection.d.ts +1 -0
  19. package/Models/DatabaseModels/CloudConnection.js +20 -0
  20. package/Models/DatabaseModels/DataAsset.d.mts +1 -0
  21. package/Models/DatabaseModels/DataAsset.d.ts +1 -0
  22. package/Models/DatabaseModels/DataAsset.js +17 -0
  23. package/Models/DatabaseModels/DataBiConnection.d.mts +1 -0
  24. package/Models/DatabaseModels/DataBiConnection.d.ts +1 -0
  25. package/Models/DatabaseModels/DataBiConnection.js +23 -0
  26. package/Models/DatabaseModels/DataPipeline.d.mts +5 -0
  27. package/Models/DatabaseModels/DataPipeline.d.ts +5 -0
  28. package/Models/DatabaseModels/DataPipeline.js +88 -0
  29. package/Models/DatabaseModels/DataPipelineOwnerRule.d.mts +21 -0
  30. package/Models/DatabaseModels/DataPipelineOwnerRule.d.ts +21 -0
  31. package/Models/DatabaseModels/DataPipelineOwnerRule.js +635 -0
  32. package/Models/DatabaseModels/DataPipelineOwnerRule.mjs +2 -0
  33. package/Models/DatabaseModels/DataSecurityComplianceSetting.d.mts +24 -0
  34. package/Models/DatabaseModels/DataSecurityComplianceSetting.d.ts +24 -0
  35. package/Models/DatabaseModels/DataSecurityComplianceSetting.js +454 -0
  36. package/Models/DatabaseModels/DataSecurityComplianceSetting.mjs +2 -0
  37. package/Models/DatabaseModels/DataStore.d.mts +1 -0
  38. package/Models/DatabaseModels/DataStore.d.ts +1 -0
  39. package/Models/DatabaseModels/DataStore.js +24 -0
  40. package/Models/DatabaseModels/DetectionRule.d.mts +2 -0
  41. package/Models/DatabaseModels/DetectionRule.d.ts +2 -0
  42. package/Models/DatabaseModels/DetectionRule.js +29 -0
  43. package/Models/DatabaseModels/DeviceManagementConnection.d.mts +25 -0
  44. package/Models/DatabaseModels/DeviceManagementConnection.d.ts +25 -0
  45. package/Models/DatabaseModels/DeviceManagementConnection.js +438 -0
  46. package/Models/DatabaseModels/DeviceManagementConnection.mjs +2 -0
  47. package/Models/DatabaseModels/GlobalConfig.d.mts +1 -0
  48. package/Models/DatabaseModels/GlobalConfig.d.ts +1 -0
  49. package/Models/DatabaseModels/GlobalConfig.js +31 -0
  50. package/Models/DatabaseModels/GlobalSso.d.mts +2 -0
  51. package/Models/DatabaseModels/GlobalSso.d.ts +2 -0
  52. package/Models/DatabaseModels/GlobalSso.js +56 -0
  53. package/Models/DatabaseModels/HostCollectorConfig.js +1 -1
  54. package/Models/DatabaseModels/HostLogSession.d.mts +22 -0
  55. package/Models/DatabaseModels/HostLogSession.d.ts +22 -0
  56. package/Models/DatabaseModels/HostLogSession.js +352 -0
  57. package/Models/DatabaseModels/HostLogSession.mjs +2 -0
  58. package/Models/DatabaseModels/IncidentCustomField.js +1 -1
  59. package/Models/DatabaseModels/IncidentFeed.d.mts +1 -0
  60. package/Models/DatabaseModels/IncidentFeed.d.ts +1 -0
  61. package/Models/DatabaseModels/IncidentFeed.js +6 -0
  62. package/Models/DatabaseModels/IncidentGroupingRule.js +1 -1
  63. package/Models/DatabaseModels/IncidentMeasurement.js +1 -1
  64. package/Models/DatabaseModels/IncidentPostmortemStatus.js +1 -1
  65. package/Models/DatabaseModels/IncidentReminderRule.js +1 -1
  66. package/Models/DatabaseModels/IncidentSeverity.js +1 -1
  67. package/Models/DatabaseModels/IncidentSlaRule.js +1 -1
  68. package/Models/DatabaseModels/IncidentState.js +1 -1
  69. package/Models/DatabaseModels/IncidentTemplateOwnerTeam.d.mts +0 -1
  70. package/Models/DatabaseModels/IncidentTemplateOwnerTeam.d.ts +0 -1
  71. package/Models/DatabaseModels/IncidentTemplateOwnerTeam.js +0 -35
  72. package/Models/DatabaseModels/IncidentTemplateOwnerUser.d.mts +0 -1
  73. package/Models/DatabaseModels/IncidentTemplateOwnerUser.d.ts +0 -1
  74. package/Models/DatabaseModels/IncidentTemplateOwnerUser.js +0 -40
  75. package/Models/DatabaseModels/IncidentVideoCall.d.mts +3 -0
  76. package/Models/DatabaseModels/IncidentVideoCall.d.ts +3 -0
  77. package/Models/DatabaseModels/IncidentVideoCall.js +105 -0
  78. package/Models/DatabaseModels/IncomingCallPolicyEscalationRule.js +1 -1
  79. package/Models/DatabaseModels/Index.js +16 -0
  80. package/Models/DatabaseModels/InstanceSamlSigningKey.d.mts +5 -0
  81. package/Models/DatabaseModels/InstanceSamlSigningKey.d.ts +5 -0
  82. package/Models/DatabaseModels/InstanceSamlSigningKey.js +108 -0
  83. package/Models/DatabaseModels/InstanceSamlSigningKey.mjs +2 -0
  84. package/Models/DatabaseModels/KubernetesResource.d.mts +9 -0
  85. package/Models/DatabaseModels/KubernetesResource.d.ts +9 -0
  86. package/Models/DatabaseModels/KubernetesResource.js +233 -1
  87. package/Models/DatabaseModels/LogDropFilter.js +1 -1
  88. package/Models/DatabaseModels/LogPipeline.js +1 -1
  89. package/Models/DatabaseModels/LogPipelineProcessor.js +1 -1
  90. package/Models/DatabaseModels/LogScrubRule.js +1 -1
  91. package/Models/DatabaseModels/ManagedDevice.d.mts +44 -0
  92. package/Models/DatabaseModels/ManagedDevice.d.ts +44 -0
  93. package/Models/DatabaseModels/ManagedDevice.js +698 -0
  94. package/Models/DatabaseModels/ManagedDevice.mjs +2 -0
  95. package/Models/DatabaseModels/ManagedDeviceApp.d.mts +20 -0
  96. package/Models/DatabaseModels/ManagedDeviceApp.d.ts +20 -0
  97. package/Models/DatabaseModels/ManagedDeviceApp.js +320 -0
  98. package/Models/DatabaseModels/ManagedDeviceApp.mjs +2 -0
  99. package/Models/DatabaseModels/MarketplaceSubscription.js +1 -1
  100. package/Models/DatabaseModels/MetricPipelineRule.js +1 -1
  101. package/Models/DatabaseModels/Monitor.d.mts +2 -0
  102. package/Models/DatabaseModels/Monitor.d.ts +2 -0
  103. package/Models/DatabaseModels/Monitor.js +127 -0
  104. package/Models/DatabaseModels/MonitorSecret.d.mts +2 -0
  105. package/Models/DatabaseModels/MonitorSecret.d.ts +2 -0
  106. package/Models/DatabaseModels/MonitorSecret.js +51 -1
  107. package/Models/DatabaseModels/MonitorStatus.js +1 -1
  108. package/Models/DatabaseModels/NetworkDevice.js +2 -1
  109. package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.mts +1 -0
  110. package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.ts +1 -0
  111. package/Models/DatabaseModels/NetworkDeviceNamingRule.js +1 -1
  112. package/Models/DatabaseModels/NetworkDeviceRole.js +1 -1
  113. package/Models/DatabaseModels/NetworkSiteAssignmentRule.js +1 -1
  114. package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +28 -1
  115. package/Models/DatabaseModels/Probe.d.mts +1 -0
  116. package/Models/DatabaseModels/Probe.d.ts +1 -0
  117. package/Models/DatabaseModels/Probe.js +32 -0
  118. package/Models/DatabaseModels/Project.d.mts +3 -0
  119. package/Models/DatabaseModels/Project.d.ts +3 -0
  120. package/Models/DatabaseModels/Project.js +131 -0
  121. package/Models/DatabaseModels/ProjectOidc.d.mts +2 -0
  122. package/Models/DatabaseModels/ProjectOidc.d.ts +2 -0
  123. package/Models/DatabaseModels/ProjectOidc.js +57 -0
  124. package/Models/DatabaseModels/ProjectSso.d.mts +4 -0
  125. package/Models/DatabaseModels/ProjectSso.d.ts +4 -0
  126. package/Models/DatabaseModels/ProjectSso.js +147 -0
  127. package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
  128. package/Models/DatabaseModels/RumApplication.d.mts +3 -0
  129. package/Models/DatabaseModels/RumApplication.d.ts +3 -0
  130. package/Models/DatabaseModels/RumApplication.js +154 -0
  131. package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +1 -1
  132. package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +1 -1
  133. package/Models/DatabaseModels/ScheduledMaintenanceState.js +1 -1
  134. package/Models/DatabaseModels/SecurityCasePriority.js +1 -1
  135. package/Models/DatabaseModels/SecurityCaseStatus.js +1 -1
  136. package/Models/DatabaseModels/SecurityDetection.d.mts +2 -1
  137. package/Models/DatabaseModels/SecurityDetection.d.ts +2 -1
  138. package/Models/DatabaseModels/SecurityDetection.js +32 -0
  139. package/Models/DatabaseModels/ServiceAINote.d.mts +22 -0
  140. package/Models/DatabaseModels/ServiceAINote.d.ts +22 -0
  141. package/Models/DatabaseModels/ServiceAINote.js +331 -0
  142. package/Models/DatabaseModels/ServiceAINote.mjs +7 -0
  143. package/Models/DatabaseModels/ServiceOwnerTeam.d.mts +1 -0
  144. package/Models/DatabaseModels/ServiceOwnerTeam.d.ts +1 -0
  145. package/Models/DatabaseModels/ServiceOwnerTeam.js +40 -0
  146. package/Models/DatabaseModels/ServiceOwnerUser.d.mts +1 -0
  147. package/Models/DatabaseModels/ServiceOwnerUser.d.ts +1 -0
  148. package/Models/DatabaseModels/ServiceOwnerUser.js +40 -0
  149. package/Models/DatabaseModels/StatusPageFooterLink.js +1 -1
  150. package/Models/DatabaseModels/StatusPageHeaderLink.js +1 -1
  151. package/Models/DatabaseModels/StatusPageHistoryChartBarColorRule.js +1 -1
  152. package/Models/DatabaseModels/StorageArrayResource.js +2 -1
  153. package/Models/DatabaseModels/Team.d.mts +1 -0
  154. package/Models/DatabaseModels/Team.d.ts +1 -0
  155. package/Models/DatabaseModels/Team.js +42 -0
  156. package/Models/DatabaseModels/TeamMember.d.mts +1 -0
  157. package/Models/DatabaseModels/TeamMember.d.ts +1 -0
  158. package/Models/DatabaseModels/TeamMember.js +47 -0
  159. package/Models/DatabaseModels/TraceDropFilter.js +1 -1
  160. package/Models/DatabaseModels/TracePipeline.js +1 -1
  161. package/Models/DatabaseModels/TracePipelineProcessor.js +1 -1
  162. package/Models/DatabaseModels/TraceScrubRule.js +1 -1
  163. package/Models/DatabaseModels/UserSession.js +12 -8
  164. package/Models/DatabaseModels/Workflow.d.mts +11 -0
  165. package/Models/DatabaseModels/Workflow.d.ts +11 -0
  166. package/Models/DatabaseModels/Workflow.js +316 -0
  167. package/Models/DatabaseModels/WorkflowLog.d.mts +7 -0
  168. package/Models/DatabaseModels/WorkflowLog.d.ts +7 -0
  169. package/Models/DatabaseModels/WorkflowLog.js +211 -0
  170. package/Server/Services/DatabaseService.d.mts +26 -0
  171. package/Server/Services/DatabaseService.d.ts +26 -0
  172. package/Server/Types/Database/DeleteById.d.mts +2 -0
  173. package/Server/Types/Database/DeleteById.d.ts +2 -0
  174. package/Server/Types/Database/DeleteOneBy.d.mts +2 -0
  175. package/Server/Types/Database/DeleteOneBy.d.ts +2 -0
  176. package/Server/Utils/Workspace/WorkspaceBase.d.mts +6 -0
  177. package/Server/Utils/Workspace/WorkspaceBase.d.ts +6 -0
  178. package/Types/AI/AIActionWords.d.mts +35 -0
  179. package/Types/AI/AIActionWords.d.ts +35 -0
  180. package/Types/AI/AIActionWords.js +133 -1
  181. package/Types/AI/AIActionWords.mjs +2 -0
  182. package/Types/AI/AIAgentRunLimits.d.mts +7 -0
  183. package/Types/AI/AIAgentRunLimits.d.ts +7 -0
  184. package/Types/AI/AIAgentRunLimits.js +39 -2
  185. package/Types/AI/AIAgentRunLimits.mjs +3 -0
  186. package/Types/AI/AIChatTestPage.d.mts +11 -0
  187. package/Types/AI/AIChatTestPage.d.ts +11 -0
  188. package/Types/AI/AIChatTestPage.js +107 -0
  189. package/Types/AI/AIChatTestPage.mjs +6 -0
  190. package/Types/AI/AIChatTypes.d.mts +6 -0
  191. package/Types/AI/AIChatTypes.d.ts +6 -0
  192. package/Types/AI/AIReadTableWords.d.mts +6 -0
  193. package/Types/AI/AIReadTableWords.d.ts +6 -0
  194. package/Types/AI/AIReadTableWords.js +13 -0
  195. package/Types/AI/AIRunAttempt.d.mts +2 -0
  196. package/Types/AI/AIRunAttempt.d.ts +2 -0
  197. package/Types/AI/AIRunAttempt.js +14 -1
  198. package/Types/AI/AIRunAttempt.mjs +1 -0
  199. package/Types/AI/AISetupActions.d.mts +17 -0
  200. package/Types/AI/AISetupActions.d.ts +17 -0
  201. package/Types/AI/AISetupActions.js +55 -2
  202. package/Types/AI/AISetupActions.mjs +7 -0
  203. package/Types/AI/AiActivityInsights.d.mts +11 -0
  204. package/Types/AI/AiActivityInsights.d.ts +11 -0
  205. package/Types/AI/AiActivityInsights.js +7 -2
  206. package/Types/AI/AiActivityInsights.mjs +1 -0
  207. package/Types/AI/AiOutcomes.d.mts +61 -0
  208. package/Types/AI/AiOutcomes.d.ts +61 -0
  209. package/Types/AI/AiOutcomes.js +71 -2
  210. package/Types/AI/AiOutcomes.mjs +12 -0
  211. package/Types/AI/CodeAgentRunLimits.d.mts +1 -0
  212. package/Types/AI/CodeAgentRunLimits.d.ts +1 -0
  213. package/Types/AI/CodeAgentRunLimits.js +6 -1
  214. package/Types/AI/CodeFixTaskType.d.mts +3 -0
  215. package/Types/AI/CodeFixTaskType.d.ts +3 -0
  216. package/Types/AI/CodeFixTaskType.js +43 -0
  217. package/Types/AI/CodeTask.d.mts +8 -0
  218. package/Types/AI/CodeTask.d.ts +8 -0
  219. package/Types/AI/CodeTask.js +3 -1
  220. package/Types/AI/CodeTask.mjs +1 -0
  221. package/Types/AI/CodeTaskTryAgain.d.mts +9 -0
  222. package/Types/AI/CodeTaskTryAgain.d.ts +9 -0
  223. package/Types/AI/CodeTaskTryAgain.js +56 -0
  224. package/Types/AI/CodeTaskTryAgain.mjs +10 -0
  225. package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.d.mts +10 -0
  226. package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.d.ts +10 -0
  227. package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.js +33 -0
  228. package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.mjs +2 -0
  229. package/Types/AI/InvestigationRecording.d.mts +1 -0
  230. package/Types/AI/InvestigationRecording.d.ts +1 -0
  231. package/Types/AI/ProjectAiRunLimits.d.mts +4 -1
  232. package/Types/AI/ProjectAiRunLimits.d.ts +4 -1
  233. package/Types/AI/ProjectAiRunLimits.js +26 -5
  234. package/Types/AI/ProjectAiRunLimits.mjs +2 -0
  235. package/Types/AI/ServiceKnowledgeSummary.d.mts +27 -0
  236. package/Types/AI/ServiceKnowledgeSummary.d.ts +27 -0
  237. package/Types/AI/ServiceKnowledgeSummary.js +68 -0
  238. package/Types/AI/ServiceKnowledgeSummary.mjs +4 -0
  239. package/Types/Accounts/SecondStepEnrolment.d.mts +16 -0
  240. package/Types/Accounts/SecondStepEnrolment.d.ts +16 -0
  241. package/Types/Accounts/SecondStepEnrolment.js +96 -0
  242. package/Types/Accounts/SecondStepEnrolment.mjs +14 -0
  243. package/Types/Accounts/SecurityKeySignIn.d.mts +1 -0
  244. package/Types/Accounts/SecurityKeySignIn.d.ts +1 -0
  245. package/Types/Accounts/SecurityKeySignIn.js +33 -0
  246. package/Types/Accounts/SecurityKeySignIn.mjs +2 -0
  247. package/Types/Accounts/SignInMessages.d.mts +1 -0
  248. package/Types/Accounts/SignInMessages.d.ts +1 -0
  249. package/Types/Accounts/SignInMessages.js +14 -2
  250. package/Types/Accounts/SignInMessages.mjs +1 -0
  251. package/Types/Accounts/SignUpInvitation.d.mts +5 -0
  252. package/Types/Accounts/SignUpInvitation.d.ts +5 -0
  253. package/Types/Accounts/SignUpInvitation.js +26 -0
  254. package/Types/Analytics/ProductEvent.d.mts +2 -0
  255. package/Types/Analytics/ProductEvent.d.ts +2 -0
  256. package/Types/Analytics/ProductEvent.js +17 -1
  257. package/Types/AuditLog/AuditLogCoverage.d.mts +1 -0
  258. package/Types/AuditLog/AuditLogCoverage.d.ts +1 -0
  259. package/Types/AuditLog/AuditLogCoverage.js +14 -2
  260. package/Types/AuditLog/AuditLogCoverage.mjs +1 -0
  261. package/Types/AuditLog/AuditLogSessionEvent.js +1 -0
  262. package/Types/AuditLog/AuditLogSignInSettingsCleared.d.mts +17 -0
  263. package/Types/AuditLog/AuditLogSignInSettingsCleared.d.ts +17 -0
  264. package/Types/AuditLog/AuditLogSignInSettingsCleared.js +87 -0
  265. package/Types/AuditLog/AuditLogSignInSettingsCleared.mjs +4 -0
  266. package/Types/AuditLog/Export/AuditLogExportRecord.d.mts +9 -1
  267. package/Types/AuditLog/Export/AuditLogExportRecord.d.ts +9 -1
  268. package/Types/AuditLog/Export/AuditLogExportRecord.js +55 -9
  269. package/Types/AuditLog/Export/AuditLogExportRecord.mjs +3 -0
  270. package/Types/AutoRemediation/RemediationRound.d.mts +10 -1
  271. package/Types/AutoRemediation/RemediationRound.d.ts +10 -1
  272. package/Types/AutoRemediation/RemediationRound.js +37 -6
  273. package/Types/AutoRemediation/RemediationRound.mjs +3 -0
  274. package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.mts +3 -0
  275. package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.ts +3 -0
  276. package/Types/Call/CallStatus.d.mts +2 -1
  277. package/Types/Call/CallStatus.d.ts +2 -1
  278. package/Types/Call/CallStatus.js +6 -0
  279. package/Types/Cloud/CloudAddedMetrics.d.mts +68 -0
  280. package/Types/Cloud/CloudAddedMetrics.d.ts +68 -0
  281. package/Types/Cloud/CloudAddedMetrics.js +402 -0
  282. package/Types/Cloud/CloudAddedMetrics.mjs +18 -0
  283. package/Types/Cloud/CloudKeyMetricCondition.d.mts +10 -0
  284. package/Types/Cloud/CloudKeyMetricCondition.d.ts +10 -0
  285. package/Types/Cloud/CloudKeyMetricCondition.js +65 -0
  286. package/Types/Cloud/CloudKeyMetricCondition.mjs +4 -0
  287. package/Types/Cloud/CloudKeyMetrics.d.mts +53 -4
  288. package/Types/Cloud/CloudKeyMetrics.d.ts +53 -4
  289. package/Types/Cloud/CloudKeyMetrics.js +781 -211
  290. package/Types/Cloud/CloudKeyMetrics.mjs +19 -0
  291. package/Types/Cloud/CloudMonitoredResource.js +16 -2
  292. package/Types/Cloud/CloudPublishedMetrics.d.mts +40 -0
  293. package/Types/Cloud/CloudPublishedMetrics.d.ts +40 -0
  294. package/Types/Cloud/CloudPublishedMetrics.js +165 -0
  295. package/Types/Cloud/CloudPublishedMetrics.mjs +6 -0
  296. package/Types/Cloud/CloudReadingKeys.d.mts +10 -0
  297. package/Types/Cloud/CloudReadingKeys.d.ts +10 -0
  298. package/Types/Cloud/CloudReadingKeys.js +37 -0
  299. package/Types/Cloud/CloudReadingKeys.mjs +3 -0
  300. package/Types/Cloud/CloudResourceCatalog.d.mts +1 -0
  301. package/Types/Cloud/CloudResourceCatalog.d.ts +1 -0
  302. package/Types/Cloud/CloudResourceCatalog.js +33 -2
  303. package/Types/Cloud/CloudResourceHealth.d.mts +93 -1
  304. package/Types/Cloud/CloudResourceHealth.d.ts +93 -1
  305. package/Types/Cloud/CloudResourceHealth.js +671 -33
  306. package/Types/Cloud/CloudResourceHealth.mjs +41 -0
  307. package/Types/Cloud/CloudRightSizing.js +9 -3
  308. package/Types/Cloud/CloudUnreportedKeyMetrics.d.mts +84 -0
  309. package/Types/Cloud/CloudUnreportedKeyMetrics.d.ts +84 -0
  310. package/Types/Cloud/CloudUnreportedKeyMetrics.js +448 -0
  311. package/Types/Cloud/CloudUnreportedKeyMetrics.mjs +15 -0
  312. package/Types/CloudConnection/CloudConnectionCost.d.mts +18 -0
  313. package/Types/CloudConnection/CloudConnectionCost.d.ts +18 -0
  314. package/Types/CloudConnection/CloudConnectionCost.js +89 -4
  315. package/Types/CloudConnection/CloudConnectionCost.mjs +3 -0
  316. package/Types/CloudConnection/CloudConnectionSetupCommands.js +14 -0
  317. package/Types/CloudConnection/CloudStream.d.mts +5 -0
  318. package/Types/CloudConnection/CloudStream.d.ts +5 -0
  319. package/Types/CloudConnection/CloudStream.js +46 -2
  320. package/Types/CloudConnection/CloudStream.mjs +3 -0
  321. package/Types/CloudConnection/CloudStreamOrganization.d.mts +6 -0
  322. package/Types/CloudConnection/CloudStreamOrganization.d.ts +6 -0
  323. package/Types/CloudConnection/CloudStreamOrganization.js +36 -1
  324. package/Types/CloudConnection/CloudStreamOrganization.mjs +2 -0
  325. package/Types/CloudConnection/CloudStreamStack.d.mts +48 -0
  326. package/Types/CloudConnection/CloudStreamStack.d.ts +48 -0
  327. package/Types/CloudConnection/CloudStreamStack.js +198 -0
  328. package/Types/CloudConnection/CloudStreamStack.mjs +15 -0
  329. package/Types/CloudConnection/CloudStreamTemplate.d.mts +14 -1
  330. package/Types/CloudConnection/CloudStreamTemplate.d.ts +14 -1
  331. package/Types/CloudConnection/CloudStreamTemplate.js +147 -16
  332. package/Types/CloudConnection/CloudStreamTemplate.mjs +10 -0
  333. package/Types/DataObservability/DataBiLineage.d.mts +5 -0
  334. package/Types/DataObservability/DataBiLineage.d.ts +5 -0
  335. package/Types/DataObservability/DataBiLineage.js +29 -1
  336. package/Types/DataObservability/DataCircuitBreaker.d.mts +78 -0
  337. package/Types/DataObservability/DataCircuitBreaker.d.ts +78 -0
  338. package/Types/DataObservability/DataCircuitBreaker.js +262 -0
  339. package/Types/DataObservability/DataCircuitBreaker.mjs +12 -0
  340. package/Types/DataObservability/DataLineageMap.d.mts +3 -0
  341. package/Types/DataObservability/DataLineageMap.d.ts +3 -0
  342. package/Types/DataObservability/DataLineageMap.js +22 -0
  343. package/Types/DataObservability/DataLineageMap.mjs +2 -0
  344. package/Types/DataObservability/DataObservabilityApiTypes.d.mts +18 -0
  345. package/Types/DataObservability/DataObservabilityApiTypes.d.ts +18 -0
  346. package/Types/DataObservability/DataObservabilityApiTypes.js +10 -0
  347. package/Types/DataObservability/DataObservabilityAttention.d.mts +1 -0
  348. package/Types/DataObservability/DataObservabilityAttention.d.ts +1 -0
  349. package/Types/DataObservability/DataObservabilityAttention.js +12 -6
  350. package/Types/DataObservability/DataPipelineMetric.d.mts +2 -1
  351. package/Types/DataObservability/DataPipelineMetric.d.ts +2 -1
  352. package/Types/DataObservability/DataPipelineMetric.js +12 -2
  353. package/Types/DataObservability/SkippedTables.d.mts +24 -0
  354. package/Types/DataObservability/SkippedTables.d.ts +24 -0
  355. package/Types/DataObservability/SkippedTables.js +147 -0
  356. package/Types/DataObservability/SkippedTables.mjs +9 -0
  357. package/Types/DataSecurity/ComplianceRequirementCatalog.d.mts +9 -2
  358. package/Types/DataSecurity/ComplianceRequirementCatalog.d.ts +9 -2
  359. package/Types/DataSecurity/ComplianceRequirementCatalog.js +46 -10
  360. package/Types/DataSecurity/ComplianceRequirementCatalog.mjs +1 -0
  361. package/Types/DataSecurity/ComplianceScope.d.mts +29 -0
  362. package/Types/DataSecurity/ComplianceScope.d.ts +29 -0
  363. package/Types/DataSecurity/ComplianceScope.js +120 -0
  364. package/Types/DataSecurity/ComplianceScope.mjs +7 -0
  365. package/Types/DataSecurity/ComplianceSettingFramework.d.mts +5 -0
  366. package/Types/DataSecurity/ComplianceSettingFramework.d.ts +5 -0
  367. package/Types/DataSecurity/ComplianceSettingFramework.js +10 -0
  368. package/Types/DataSecurity/ComplianceSettingFramework.mjs +3 -0
  369. package/Types/DataSecurity/DataSecurityApiTypes.d.mts +77 -2
  370. package/Types/DataSecurity/DataSecurityApiTypes.d.ts +77 -2
  371. package/Types/DataSecurity/DataSecurityApiTypes.js +45 -1
  372. package/Types/DataSecurity/DataSecurityApiTypes.mjs +3 -0
  373. package/Types/DataSecurity/DataSecurityCheckCatalog.js +2 -2
  374. package/Types/DataSecurity/DataStoreKind.d.mts +2 -1
  375. package/Types/DataSecurity/DataStoreKind.d.ts +2 -1
  376. package/Types/DataSecurity/DataStoreKind.js +8 -1
  377. package/Types/DataSecurity/DataStoreResource.d.mts +32 -0
  378. package/Types/DataSecurity/DataStoreResource.d.ts +32 -0
  379. package/Types/DataSecurity/DataStoreResource.js +142 -0
  380. package/Types/DataSecurity/DataStoreResource.mjs +11 -0
  381. package/Types/DataSecurity/FindingSampleRecord.d.mts +5 -0
  382. package/Types/DataSecurity/FindingSampleRecord.d.ts +5 -0
  383. package/Types/DataSecurity/FindingSampleRecord.js +62 -11
  384. package/Types/DataSecurity/FindingSampleRecord.mjs +1 -0
  385. package/Types/DataSecurity/TelemetryScrubTarget.d.mts +28 -0
  386. package/Types/DataSecurity/TelemetryScrubTarget.d.ts +28 -0
  387. package/Types/DataSecurity/TelemetryScrubTarget.js +125 -0
  388. package/Types/DataSecurity/TelemetryScrubTarget.mjs +12 -0
  389. package/Types/Database/AccessControl/AccountDateColumns.d.mts +3 -0
  390. package/Types/Database/AccessControl/AccountDateColumns.d.ts +3 -0
  391. package/Types/Database/AccessControl/AccountDateColumns.js +32 -0
  392. package/Types/Database/AccessControl/AccountDateColumns.mjs +4 -0
  393. package/Types/Database/AccessControl/PermissionScopeNarrowing.js +9 -0
  394. package/Types/Database/MoveInList.d.mts +11 -2
  395. package/Types/Database/MoveInList.d.ts +11 -2
  396. package/Types/Database/MoveInList.js +74 -23
  397. package/Types/Database/MoveInList.mjs +2 -0
  398. package/Types/Database/SharedNames.d.mts +15 -0
  399. package/Types/Database/SharedNames.d.ts +15 -0
  400. package/Types/Database/SharedNames.js +80 -0
  401. package/Types/Database/SharedNames.mjs +8 -0
  402. package/Types/Database/TableColumn.d.mts +1 -0
  403. package/Types/Database/TableColumn.d.ts +1 -0
  404. package/Types/Database/UniqueName.d.mts +41 -0
  405. package/Types/Database/UniqueName.d.ts +41 -0
  406. package/Types/Database/UniqueName.js +242 -0
  407. package/Types/Database/UniqueName.mjs +25 -0
  408. package/Types/DeviceManagement/DeviceManagementConnectionHealth.d.mts +25 -0
  409. package/Types/DeviceManagement/DeviceManagementConnectionHealth.d.ts +25 -0
  410. package/Types/DeviceManagement/DeviceManagementConnectionHealth.js +98 -0
  411. package/Types/DeviceManagement/DeviceManagementConnectionHealth.mjs +5 -0
  412. package/Types/DeviceManagement/DeviceManagementConnectionSettings.d.mts +27 -0
  413. package/Types/DeviceManagement/DeviceManagementConnectionSettings.d.ts +27 -0
  414. package/Types/DeviceManagement/DeviceManagementConnectionSettings.js +254 -0
  415. package/Types/DeviceManagement/DeviceManagementConnectionSettings.mjs +21 -0
  416. package/Types/DeviceManagement/DeviceManagementConnectionTest.d.mts +14 -0
  417. package/Types/DeviceManagement/DeviceManagementConnectionTest.d.ts +14 -0
  418. package/Types/DeviceManagement/DeviceManagementConnectionTest.js +5 -0
  419. package/Types/DeviceManagement/DeviceManagementConnectionTest.mjs +2 -0
  420. package/Types/DeviceManagement/DeviceManagementProvider.d.mts +7 -0
  421. package/Types/DeviceManagement/DeviceManagementProvider.d.ts +7 -0
  422. package/Types/DeviceManagement/DeviceManagementProvider.js +37 -0
  423. package/Types/DeviceManagement/DeviceManagementProvider.mjs +5 -0
  424. package/Types/DeviceManagement/DeviceManagementReadSummary.d.mts +28 -0
  425. package/Types/DeviceManagement/DeviceManagementReadSummary.d.ts +28 -0
  426. package/Types/DeviceManagement/DeviceManagementReadSummary.js +67 -0
  427. package/Types/DeviceManagement/DeviceManagementReadSummary.mjs +4 -0
  428. package/Types/DeviceManagement/ManagedDeviceCheckIn.d.mts +43 -0
  429. package/Types/DeviceManagement/ManagedDeviceCheckIn.d.ts +43 -0
  430. package/Types/DeviceManagement/ManagedDeviceCheckIn.js +173 -0
  431. package/Types/DeviceManagement/ManagedDeviceCheckIn.mjs +8 -0
  432. package/Types/DeviceManagement/ManagedDeviceIdentity.d.mts +23 -0
  433. package/Types/DeviceManagement/ManagedDeviceIdentity.d.ts +23 -0
  434. package/Types/DeviceManagement/ManagedDeviceIdentity.js +148 -0
  435. package/Types/DeviceManagement/ManagedDeviceIdentity.mjs +16 -0
  436. package/Types/DeviceManagement/ManagedDeviceStatus.d.mts +45 -0
  437. package/Types/DeviceManagement/ManagedDeviceStatus.d.ts +45 -0
  438. package/Types/DeviceManagement/ManagedDeviceStatus.js +161 -0
  439. package/Types/DeviceManagement/ManagedDeviceStatus.mjs +9 -0
  440. package/Types/DockerSwarm/DockerSwarmInventoryExtractor.js +20 -1
  441. package/Types/Domain.d.mts +1 -0
  442. package/Types/Domain.d.ts +1 -0
  443. package/Types/Domain.js +30 -0
  444. package/Types/Email/EmailTemplateType.d.mts +8 -0
  445. package/Types/Email/EmailTemplateType.d.ts +8 -0
  446. package/Types/Email/EmailTemplateType.js +27 -0
  447. package/Types/HeldPermissions.d.mts +10 -0
  448. package/Types/HeldPermissions.d.ts +10 -0
  449. package/Types/HeldPermissions.js +63 -0
  450. package/Types/Host/HostHealth.d.mts +2 -0
  451. package/Types/Host/HostHealth.d.ts +2 -0
  452. package/Types/Host/HostHealth.js +10 -1
  453. package/Types/Host/HostHealth.mjs +1 -0
  454. package/Types/Host/HostLogSession.d.mts +30 -0
  455. package/Types/Host/HostLogSession.d.ts +30 -0
  456. package/Types/Host/HostLogSession.js +117 -0
  457. package/Types/Host/HostLogSession.mjs +12 -0
  458. package/Types/HostCollector/HostCollector.js +1 -1
  459. package/Types/Icon/IconProp.d.mts +1 -0
  460. package/Types/Icon/IconProp.d.ts +1 -0
  461. package/Types/Icon/IconProp.js +2 -0
  462. package/Types/IncomingCall/IncomingCallEscalationOrder.d.mts +16 -0
  463. package/Types/IncomingCall/IncomingCallEscalationOrder.d.ts +16 -0
  464. package/Types/IncomingCall/IncomingCallEscalationOrder.js +59 -0
  465. package/Types/IncomingCall/IncomingCallEscalationOrder.mjs +3 -0
  466. package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.d.mts +26 -0
  467. package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.d.ts +26 -0
  468. package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.js +482 -0
  469. package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.mjs +12 -0
  470. package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.d.mts +32 -0
  471. package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.d.ts +32 -0
  472. package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.js +14 -0
  473. package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.mjs +2 -0
  474. package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.d.mts +35 -0
  475. package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.d.ts +35 -0
  476. package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.js +470 -0
  477. package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.mjs +13 -0
  478. package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.d.mts +24 -0
  479. package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.d.ts +24 -0
  480. package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.js +17 -0
  481. package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.mjs +3 -0
  482. package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.d.mts +8 -0
  483. package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.d.ts +8 -0
  484. package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.js +38 -0
  485. package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.mjs +5 -0
  486. package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.d.mts +50 -0
  487. package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.d.ts +50 -0
  488. package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.js +318 -0
  489. package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.mjs +6 -0
  490. package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.d.mts +39 -0
  491. package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.d.ts +39 -0
  492. package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.js +13 -0
  493. package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.mjs +2 -0
  494. package/Types/Kubernetes/Compliance/KubernetesRbac.d.mts +43 -0
  495. package/Types/Kubernetes/Compliance/KubernetesRbac.d.ts +43 -0
  496. package/Types/Kubernetes/Compliance/KubernetesRbac.js +165 -0
  497. package/Types/Kubernetes/Compliance/KubernetesRbac.mjs +20 -0
  498. package/Types/Kubernetes/Compliance/KubernetesVersion.d.mts +11 -0
  499. package/Types/Kubernetes/Compliance/KubernetesVersion.d.ts +11 -0
  500. package/Types/Kubernetes/Compliance/KubernetesVersion.js +79 -0
  501. package/Types/Kubernetes/Compliance/KubernetesVersion.mjs +8 -0
  502. package/Types/Kubernetes/Compliance/PodSecurityStandards.d.mts +58 -0
  503. package/Types/Kubernetes/Compliance/PodSecurityStandards.d.ts +58 -0
  504. package/Types/Kubernetes/Compliance/PodSecurityStandards.js +638 -0
  505. package/Types/Kubernetes/Compliance/PodSecurityStandards.mjs +20 -0
  506. package/Types/Kubernetes/KubernetesCostEfficiency.d.mts +16 -0
  507. package/Types/Kubernetes/KubernetesCostEfficiency.d.ts +16 -0
  508. package/Types/Kubernetes/KubernetesCostEfficiency.js +74 -0
  509. package/Types/Kubernetes/KubernetesCostEfficiency.mjs +7 -0
  510. package/Types/Kubernetes/KubernetesCostIngest.d.mts +5 -0
  511. package/Types/Kubernetes/KubernetesCostIngest.d.ts +5 -0
  512. package/Types/Kubernetes/KubernetesCostIngest.js +14 -16
  513. package/Types/Kubernetes/KubernetesCostIngest.mjs +3 -0
  514. package/Types/Kubernetes/KubernetesCostMetrics.d.mts +47 -0
  515. package/Types/Kubernetes/KubernetesCostMetrics.d.ts +47 -0
  516. package/Types/Kubernetes/KubernetesCostMetrics.js +296 -0
  517. package/Types/Kubernetes/KubernetesCostMetrics.mjs +19 -0
  518. package/Types/Kubernetes/KubernetesCostPricing.d.mts +20 -0
  519. package/Types/Kubernetes/KubernetesCostPricing.d.ts +20 -0
  520. package/Types/Kubernetes/KubernetesCostPricing.js +114 -0
  521. package/Types/Kubernetes/KubernetesCostPricing.mjs +7 -0
  522. package/Types/Kubernetes/KubernetesHealth.d.mts +26 -3
  523. package/Types/Kubernetes/KubernetesHealth.d.ts +26 -3
  524. package/Types/Kubernetes/KubernetesHealth.js +424 -37
  525. package/Types/Kubernetes/KubernetesHealth.mjs +2 -0
  526. package/Types/Kubernetes/KubernetesInventoryExtractor.js +11 -3
  527. package/Types/Kubernetes/KubernetesObjectParser.d.mts +8 -0
  528. package/Types/Kubernetes/KubernetesObjectParser.d.ts +8 -0
  529. package/Types/Kubernetes/KubernetesObjectParser.js +45 -0
  530. package/Types/Kubernetes/KubernetesObjectParser.mjs +1 -0
  531. package/Types/Kubernetes/KubernetesPodSecurity.d.mts +63 -0
  532. package/Types/Kubernetes/KubernetesPodSecurity.d.ts +63 -0
  533. package/Types/Kubernetes/KubernetesPodSecurity.js +399 -0
  534. package/Types/Kubernetes/KubernetesPodSecurity.mjs +6 -0
  535. package/Types/Kubernetes/KubernetesPolicyObjects.d.mts +62 -0
  536. package/Types/Kubernetes/KubernetesPolicyObjects.d.ts +62 -0
  537. package/Types/Kubernetes/KubernetesPolicyObjects.js +239 -0
  538. package/Types/Kubernetes/KubernetesPolicyObjects.mjs +16 -0
  539. package/Types/Kubernetes/KubernetesStorageHealth.d.mts +52 -0
  540. package/Types/Kubernetes/KubernetesStorageHealth.d.ts +52 -0
  541. package/Types/Kubernetes/KubernetesStorageHealth.js +353 -0
  542. package/Types/Kubernetes/KubernetesStorageHealth.mjs +17 -0
  543. package/Types/MeaningKeys.js +33 -0
  544. package/Types/Monitor/CloudAlertTemplates.d.mts +23 -0
  545. package/Types/Monitor/CloudAlertTemplates.d.ts +23 -0
  546. package/Types/Monitor/CloudAlertTemplates.js +575 -4
  547. package/Types/Monitor/CloudAlertTemplates.mjs +11 -0
  548. package/Types/Monitor/CriteriaFilter.d.mts +2 -0
  549. package/Types/Monitor/CriteriaFilter.d.ts +2 -0
  550. package/Types/Monitor/CriteriaFilter.js +9 -0
  551. package/Types/Monitor/CriteriaFilterTerms.js +2 -0
  552. package/Types/Monitor/DataPipelineAlertTemplates.js +34 -1
  553. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.mts +7 -0
  554. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.ts +7 -0
  555. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.js +45 -2
  556. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.mjs +3 -0
  557. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.mts +3 -0
  558. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.ts +3 -0
  559. package/Types/Monitor/HostAlertTemplates.d.mts +13 -0
  560. package/Types/Monitor/HostAlertTemplates.d.ts +13 -0
  561. package/Types/Monitor/HostAlertTemplates.js +352 -2
  562. package/Types/Monitor/HostAlertTemplates.mjs +4 -0
  563. package/Types/Monitor/KubernetesAlertTemplates.d.mts +5 -1
  564. package/Types/Monitor/KubernetesAlertTemplates.d.ts +5 -1
  565. package/Types/Monitor/KubernetesAlertTemplates.js +317 -27
  566. package/Types/Monitor/KubernetesAlertTemplates.mjs +3 -0
  567. package/Types/Monitor/KubernetesMetricCatalog.d.mts +1 -1
  568. package/Types/Monitor/KubernetesMetricCatalog.d.ts +1 -1
  569. package/Types/Monitor/KubernetesMetricCatalog.js +105 -1
  570. package/Types/Monitor/ManagedDeviceAlertTemplates.d.mts +33 -0
  571. package/Types/Monitor/ManagedDeviceAlertTemplates.d.ts +33 -0
  572. package/Types/Monitor/ManagedDeviceAlertTemplates.js +191 -0
  573. package/Types/Monitor/ManagedDeviceAlertTemplates.mjs +8 -0
  574. package/Types/Monitor/MonitorSecretType.d.mts +11 -0
  575. package/Types/Monitor/MonitorSecretType.d.ts +11 -0
  576. package/Types/Monitor/MonitorSecretType.js +37 -0
  577. package/Types/Monitor/MonitorSecretType.mjs +3 -0
  578. package/Types/Monitor/MonitorStep.d.mts +4 -0
  579. package/Types/Monitor/MonitorStep.d.ts +4 -0
  580. package/Types/Monitor/MonitorStep.js +27 -1
  581. package/Types/Monitor/MonitorStepExceptionMonitor.d.mts +7 -0
  582. package/Types/Monitor/MonitorStepExceptionMonitor.d.ts +7 -0
  583. package/Types/Monitor/MonitorStepExceptionMonitor.js +82 -3
  584. package/Types/Monitor/MonitorStepIoTMonitor.js +4 -17
  585. package/Types/Monitor/MonitorStepMetricMonitor.d.mts +2 -0
  586. package/Types/Monitor/MonitorStepMetricMonitor.d.ts +2 -0
  587. package/Types/Monitor/MonitorStepMetricMonitor.js +4 -0
  588. package/Types/Monitor/MonitorStepTraceMonitor.d.mts +4 -0
  589. package/Types/Monitor/MonitorStepTraceMonitor.d.ts +4 -0
  590. package/Types/Monitor/MonitorStepTraceMonitor.js +50 -0
  591. package/Types/Monitor/MonitorSteps.d.mts +1 -0
  592. package/Types/Monitor/MonitorSteps.d.ts +1 -0
  593. package/Types/Monitor/MonitorSteps.js +22 -1
  594. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.mts +1 -1
  595. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.ts +1 -1
  596. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +70 -9
  597. package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.d.mts +38 -0
  598. package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.d.ts +38 -0
  599. package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.js +168 -0
  600. package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.mjs +2 -0
  601. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +11 -1
  602. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +11 -1
  603. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.js +8 -0
  604. package/Types/Monitor/Recommendation/MonitorRecommendationUtil.js +37 -0
  605. package/Types/Monitor/RumAlertTemplates.d.mts +23 -1
  606. package/Types/Monitor/RumAlertTemplates.d.ts +23 -1
  607. package/Types/Monitor/RumAlertTemplates.js +658 -12
  608. package/Types/Monitor/RumAlertTemplates.mjs +11 -0
  609. package/Types/Monitor/SeriesContext/SeriesDebugHints.d.mts +5 -0
  610. package/Types/Monitor/SeriesContext/SeriesDebugHints.d.ts +5 -0
  611. package/Types/Monitor/SeriesContext/SeriesDebugHints.js +207 -5
  612. package/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +32 -0
  613. package/Types/Monitor/TelemetryAlertRule.js +4 -3
  614. package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.d.mts +16 -0
  615. package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.d.ts +16 -0
  616. package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.js +2 -0
  617. package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.mjs +1 -0
  618. package/Types/Monitor/TraceMonitor/TraceMonitorResponse.d.mts +6 -0
  619. package/Types/Monitor/TraceMonitor/TraceMonitorResponse.d.ts +6 -0
  620. package/Types/NetworkDevice/DiscoveredDevice.d.mts +1 -0
  621. package/Types/NetworkDevice/DiscoveredDevice.d.ts +1 -0
  622. package/Types/NetworkDevice/DiscoveredDevice.js +4 -0
  623. package/Types/NetworkDevice/DiscoveryImport.d.mts +1 -0
  624. package/Types/NetworkDevice/DiscoveryImport.d.ts +1 -0
  625. package/Types/NetworkDevice/DiscoveryImport.js +11 -1
  626. package/Types/NetworkDevice/DiscoveryImport.mjs +1 -0
  627. package/Types/Notification/OwnerNotificationDelivery.d.mts +28 -0
  628. package/Types/Notification/OwnerNotificationDelivery.d.ts +28 -0
  629. package/Types/Notification/OwnerNotificationDelivery.js +47 -1
  630. package/Types/Notification/WhoWasTold.js +5 -3
  631. package/Types/NotificationSetting/NotificationEmailRollupCategory.d.mts +4 -0
  632. package/Types/NotificationSetting/NotificationEmailRollupCategory.d.ts +4 -0
  633. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +44 -0
  634. package/Types/NotificationSetting/NotificationEmailRollupPolicy.js +10 -1
  635. package/Types/NotificationSetting/NotificationSettingEventType.d.mts +12 -0
  636. package/Types/NotificationSetting/NotificationSettingEventType.d.ts +12 -0
  637. package/Types/NotificationSetting/NotificationSettingEventType.js +39 -0
  638. package/Types/NotificationSetting/RoutineEmailEvents.js +12 -0
  639. package/Types/OnCallDutyPolicy/OnCallPageChannel.d.mts +2 -0
  640. package/Types/OnCallDutyPolicy/OnCallPageChannel.d.ts +2 -0
  641. package/Types/OnCallDutyPolicy/OnCallSentLine.d.mts +10 -1
  642. package/Types/OnCallDutyPolicy/OnCallSentLine.d.ts +10 -1
  643. package/Types/OnCallDutyPolicy/OnCallSentLine.js +50 -1
  644. package/Types/OnCallDutyPolicy/OnCallSentLine.mjs +6 -0
  645. package/Types/OnCallDutyPolicy/PagedFirst.d.mts +55 -0
  646. package/Types/OnCallDutyPolicy/PagedFirst.d.ts +55 -0
  647. package/Types/OnCallDutyPolicy/PagedFirst.js +205 -0
  648. package/Types/OnCallDutyPolicy/PagedFirst.mjs +8 -0
  649. package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.d.mts +22 -0
  650. package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.d.ts +22 -0
  651. package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.js +135 -0
  652. package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.mjs +9 -0
  653. package/Types/OpenStack/OpenStackBareMetal.d.mts +3 -0
  654. package/Types/OpenStack/OpenStackBareMetal.d.ts +3 -0
  655. package/Types/OpenStack/OpenStackBareMetal.js +8 -1
  656. package/Types/OpenStack/OpenStackBareMetal.mjs +2 -0
  657. package/Types/OpenStack/OpenStackHealthRules.d.mts +11 -0
  658. package/Types/OpenStack/OpenStackHealthRules.d.ts +11 -0
  659. package/Types/OpenStack/OpenStackHealthRules.js +41 -1
  660. package/Types/OpenStack/OpenStackHealthRules.mjs +4 -0
  661. package/Types/Permission.d.mts +9 -0
  662. package/Types/Permission.d.ts +9 -0
  663. package/Types/Permission.js +104 -0
  664. package/Types/Probe/ProbeCapability.d.mts +3 -1
  665. package/Types/Probe/ProbeCapability.d.ts +3 -1
  666. package/Types/Probe/ProbeCapability.js +21 -1
  667. package/Types/Probe/ProbeCapability.mjs +1 -0
  668. package/Types/Probe/ProbeReportedVersion.d.mts +48 -0
  669. package/Types/Probe/ProbeReportedVersion.d.ts +48 -0
  670. package/Types/Probe/ProbeReportedVersion.js +280 -0
  671. package/Types/Probe/ProbeReportedVersion.mjs +9 -0
  672. package/Types/Product/ProductRecordTables.js +14 -0
  673. package/Types/ProviderLogo/AllProviderLogoMarks.js +2 -0
  674. package/Types/ProviderLogo/Marks/android.d.mts +3 -0
  675. package/Types/ProviderLogo/Marks/android.d.ts +3 -0
  676. package/Types/ProviderLogo/Marks/android.js +15 -0
  677. package/Types/ProviderLogo/Marks/android.mjs +2 -0
  678. package/Types/ProviderLogo/ProviderLogo.d.mts +1 -0
  679. package/Types/ProviderLogo/ProviderLogo.d.ts +1 -0
  680. package/Types/ProviderLogo/ProviderLogo.js +3 -0
  681. package/Types/ProviderLogo/ProviderLogoMarks.js +1 -0
  682. package/Types/Rules/RuleCriteriaFieldRegistry.js +2 -0
  683. package/Types/Rules/RuleCriteriaSubject.d.mts +1 -0
  684. package/Types/Rules/RuleCriteriaSubject.d.ts +1 -0
  685. package/Types/Rules/RuleCriteriaSubject.js +2 -0
  686. package/Types/Rules/RuleRun.d.mts +1 -0
  687. package/Types/Rules/RuleRun.d.ts +1 -0
  688. package/Types/Rules/RuleRun.js +2 -0
  689. package/Types/Rum/MobileAppTelemetry.d.mts +28 -0
  690. package/Types/Rum/MobileAppTelemetry.d.ts +28 -0
  691. package/Types/Rum/MobileAppTelemetry.js +120 -0
  692. package/Types/Rum/MobileAppTelemetry.mjs +21 -0
  693. package/Types/Rum/RumClientKind.d.mts +5 -0
  694. package/Types/Rum/RumClientKind.d.ts +5 -0
  695. package/Types/Rum/RumClientKind.js +57 -0
  696. package/Types/Rum/RumClientKind.mjs +5 -0
  697. package/Types/Rum/SessionReplay.d.mts +3 -0
  698. package/Types/Rum/SessionReplay.d.ts +3 -0
  699. package/Types/Rum/SessionReplay.js +1 -1
  700. package/Types/Rum/SessionReplayFrustrationSignals.d.mts +3 -1
  701. package/Types/Rum/SessionReplayFrustrationSignals.d.ts +3 -1
  702. package/Types/Rum/SessionReplayFrustrationSignals.js +32 -2
  703. package/Types/Rum/SessionReplayFrustrationSignals.mjs +2 -0
  704. package/Types/Rum/SessionReplayPageRules.d.mts +10 -0
  705. package/Types/Rum/SessionReplayPageRules.d.ts +10 -0
  706. package/Types/Rum/SessionReplayPageRules.js +115 -0
  707. package/Types/Rum/SessionReplayPageRules.mjs +7 -0
  708. package/Types/Rum/SessionReplayReadableProperties.d.mts +4 -0
  709. package/Types/Rum/SessionReplayReadableProperties.d.ts +4 -0
  710. package/Types/Rum/SessionReplayReadableProperties.js +64 -0
  711. package/Types/Rum/SessionReplayReadableProperties.mjs +5 -0
  712. package/Types/Rum/SessionReplaySignalMetric.d.mts +10 -0
  713. package/Types/Rum/SessionReplaySignalMetric.d.ts +10 -0
  714. package/Types/Rum/SessionReplaySignalMetric.js +62 -0
  715. package/Types/Rum/SessionReplaySignalMetric.mjs +8 -0
  716. package/Types/SSO/IdentityProviderSignOut.d.mts +17 -1
  717. package/Types/SSO/IdentityProviderSignOut.d.ts +17 -1
  718. package/Types/SSO/IdentityProviderSignOut.js +120 -11
  719. package/Types/SSO/IdentityProviderSignOut.mjs +6 -0
  720. package/Types/SSO/LocalSignInClearing.d.mts +35 -0
  721. package/Types/SSO/LocalSignInClearing.d.ts +35 -0
  722. package/Types/SSO/LocalSignInClearing.js +166 -0
  723. package/Types/SSO/LocalSignInClearing.mjs +19 -0
  724. package/Types/SSO/SignInMethods.d.mts +5 -0
  725. package/Types/SSO/SignInMethods.d.ts +5 -0
  726. package/Types/SSO/SignInMethods.js +29 -1
  727. package/Types/SSO/SignInMethods.mjs +4 -0
  728. package/Types/SSO/SignInSettingsClearedEmail.d.mts +33 -0
  729. package/Types/SSO/SignInSettingsClearedEmail.d.ts +33 -0
  730. package/Types/SSO/SignInSettingsClearedEmail.js +144 -0
  731. package/Types/SSO/SignInSettingsClearedEmail.mjs +8 -0
  732. package/Types/SSO/SsoManagedSignIn.d.mts +23 -0
  733. package/Types/SSO/SsoManagedSignIn.d.ts +23 -0
  734. package/Types/SSO/SsoManagedSignIn.js +205 -0
  735. package/Types/SSO/SsoManagedSignIn.mjs +9 -0
  736. package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.d.mts +50 -0
  737. package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.d.ts +50 -0
  738. package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.js +230 -0
  739. package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.mjs +4 -0
  740. package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +6 -0
  741. package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +6 -0
  742. package/Types/SecurityCase/SecurityCaseEventEvidence.js +17 -1
  743. package/Types/SecurityCase/SecurityCaseMatches.d.mts +8 -1
  744. package/Types/SecurityCase/SecurityCaseMatches.d.ts +8 -1
  745. package/Types/SecurityCase/SecurityCaseMatches.js +8 -1
  746. package/Types/SecurityCase/SecurityConnection.d.mts +7 -0
  747. package/Types/SecurityCase/SecurityConnection.d.ts +7 -0
  748. package/Types/SecurityCase/SecurityConnection.js +45 -2
  749. package/Types/SecurityCase/SecurityConnection.mjs +6 -0
  750. package/Types/SecurityCase/SecurityDetectionMatchedEvents.d.mts +43 -0
  751. package/Types/SecurityCase/SecurityDetectionMatchedEvents.d.ts +43 -0
  752. package/Types/SecurityCase/SecurityDetectionMatchedEvents.js +365 -0
  753. package/Types/SecurityCase/SecurityDetectionMatchedEvents.mjs +20 -0
  754. package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.d.mts +8 -0
  755. package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.d.ts +8 -0
  756. package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.js +1400 -0
  757. package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.mjs +7 -0
  758. package/Types/SecurityEvent/DetectionRuleResponseSteps.d.mts +26 -0
  759. package/Types/SecurityEvent/DetectionRuleResponseSteps.d.ts +26 -0
  760. package/Types/SecurityEvent/DetectionRuleResponseSteps.js +184 -0
  761. package/Types/SecurityEvent/DetectionRuleResponseSteps.mjs +14 -0
  762. package/Types/StatusPage/AnnouncementReach.d.mts +16 -0
  763. package/Types/StatusPage/AnnouncementReach.d.ts +16 -0
  764. package/Types/StatusPage/AnnouncementReach.js +62 -0
  765. package/Types/StatusPage/AnnouncementReach.mjs +2 -0
  766. package/Types/StatusPage/AnnouncementUpdateNotification.d.mts +15 -0
  767. package/Types/StatusPage/AnnouncementUpdateNotification.d.ts +15 -0
  768. package/Types/StatusPage/AnnouncementUpdateNotification.js +92 -0
  769. package/Types/StatusPage/AnnouncementUpdateNotification.mjs +4 -0
  770. package/Types/StatusPage/PickedStatusPagesReach.d.mts +13 -0
  771. package/Types/StatusPage/PickedStatusPagesReach.d.ts +13 -0
  772. package/Types/StatusPage/PickedStatusPagesReach.js +73 -0
  773. package/Types/StatusPage/PickedStatusPagesReach.mjs +2 -0
  774. package/Types/StatusPage/PublicNoteApproval.d.mts +2 -1
  775. package/Types/StatusPage/PublicNoteApproval.d.ts +2 -1
  776. package/Types/StatusPage/PublicNoteApproval.js +11 -5
  777. package/Types/StatusPage/PublicNoteReach.d.mts +26 -0
  778. package/Types/StatusPage/PublicNoteReach.d.ts +26 -0
  779. package/Types/StatusPage/PublicNoteReach.js +144 -0
  780. package/Types/StatusPage/PublicNoteReach.mjs +4 -0
  781. package/Types/StatusPage/SubscriberNotificationPreview.js +9 -3
  782. package/Types/Team/CustomRole.d.mts +5 -0
  783. package/Types/Team/CustomRole.d.ts +5 -0
  784. package/Types/Team/CustomRole.js +19 -2
  785. package/Types/Team/CustomRole.mjs +1 -0
  786. package/Types/Team/InviteSuggestions.d.mts +36 -0
  787. package/Types/Team/InviteSuggestions.d.ts +36 -0
  788. package/Types/Team/InviteSuggestions.js +203 -0
  789. package/Types/Team/InviteSuggestions.mjs +13 -0
  790. package/Types/Telemetry/InventoryLiveness.d.mts +11 -3
  791. package/Types/Telemetry/InventoryLiveness.d.ts +11 -3
  792. package/Types/Telemetry/InventoryLiveness.js +19 -6
  793. package/Types/Telemetry/InventoryLiveness.mjs +1 -0
  794. package/Types/Telemetry/ServiceType.d.mts +1 -0
  795. package/Types/Telemetry/ServiceType.d.ts +1 -0
  796. package/Types/Telemetry/ServiceType.js +8 -0
  797. package/Types/Telemetry/TelemetryIngestSurface.d.mts +2 -1
  798. package/Types/Telemetry/TelemetryIngestSurface.d.ts +2 -1
  799. package/Types/Telemetry/TelemetryIngestSurface.js +9 -0
  800. package/Types/Timezone.d.mts +1 -0
  801. package/Types/Timezone.d.ts +1 -0
  802. package/Types/Timezone.js +1 -0
  803. package/Types/TimezoneAlias.js +11 -6
  804. package/Types/ToolImport/ToolImportNote.d.mts +1 -0
  805. package/Types/ToolImport/ToolImportNote.d.ts +1 -0
  806. package/Types/ToolImport/ToolImportNote.js +5 -0
  807. package/Types/TwoFactorAuthSetup.d.mts +16 -0
  808. package/Types/TwoFactorAuthSetup.d.ts +16 -0
  809. package/Types/TwoFactorAuthSetup.js +64 -0
  810. package/Types/TwoFactorAuthSetup.mjs +6 -0
  811. package/Types/UserAuthenticationStatus.d.mts +3 -0
  812. package/Types/UserAuthenticationStatus.d.ts +3 -0
  813. package/Types/UserSession/SessionEndCause.d.mts +1 -0
  814. package/Types/UserSession/SessionEndCause.d.ts +1 -0
  815. package/Types/UserSession/SessionEndCause.js +10 -2
  816. package/Types/VideoCall/CallSummaryPosts.d.mts +18 -0
  817. package/Types/VideoCall/CallSummaryPosts.d.ts +18 -0
  818. package/Types/VideoCall/CallSummaryPosts.js +106 -0
  819. package/Types/VideoCall/CallSummaryPosts.mjs +2 -0
  820. package/Types/WhatsApp/WhatsAppEventTemplates.d.mts +9 -0
  821. package/Types/WhatsApp/WhatsAppEventTemplates.d.ts +9 -0
  822. package/Types/WhatsApp/WhatsAppEventTemplates.js +117 -0
  823. package/Types/WhatsApp/WhatsAppEventTemplates.mjs +5 -0
  824. package/Types/Workflow/WorkflowRunAs.d.mts +99 -0
  825. package/Types/Workflow/WorkflowRunAs.d.ts +99 -0
  826. package/Types/Workflow/WorkflowRunAs.js +411 -0
  827. package/Types/Workflow/WorkflowRunAs.mjs +39 -0
  828. package/Types/Workspace/WorkspacePostedMessage.d.mts +12 -0
  829. package/Types/Workspace/WorkspacePostedMessage.d.ts +12 -0
  830. package/Types/Workspace/WorkspacePostedMessage.js +57 -0
  831. package/Types/Workspace/WorkspacePostedMessage.mjs +3 -0
  832. package/Utils/AI/MeaningMatch.d.mts +7 -0
  833. package/Utils/AI/MeaningMatch.d.ts +7 -0
  834. package/Utils/AI/MeaningMatch.js +49 -1
  835. package/Utils/AI/MeaningMatch.mjs +1 -0
  836. package/Utils/AiRemediation/KubectlWaitBudget.d.mts +1 -0
  837. package/Utils/AiRemediation/KubectlWaitBudget.d.ts +1 -0
  838. package/Utils/AiRemediation/KubectlWaitBudget.js +19 -0
  839. package/Utils/DataSecurity/OccurrenceExcerpt.d.mts +4 -0
  840. package/Utils/DataSecurity/OccurrenceExcerpt.d.ts +4 -0
  841. package/Utils/DataSecurity/OccurrenceExcerpt.js +30 -0
  842. package/Utils/DataSecurity/OccurrenceExcerpt.mjs +1 -0
  843. package/Utils/DeveloperDocs/AiAssistantExamples.d.mts +2 -1
  844. package/Utils/DeveloperDocs/AiAssistantExamples.d.ts +2 -1
  845. package/Utils/DeveloperDocs/AiAssistantExamples.js +38 -1
  846. package/Utils/DeveloperDocs/AiAssistantExamples.mjs +1 -0
  847. package/Utils/DeveloperDocs/CliCommands.d.mts +14 -0
  848. package/Utils/DeveloperDocs/CliCommands.d.ts +14 -0
  849. package/Utils/DeveloperDocs/CliCommands.js +36 -0
  850. package/Utils/DeveloperDocs/CliCommands.mjs +2 -0
  851. package/Utils/DeveloperDocs/DeleteChoices.d.mts +47 -0
  852. package/Utils/DeveloperDocs/DeleteChoices.d.ts +47 -0
  853. package/Utils/DeveloperDocs/DeleteChoices.js +296 -0
  854. package/Utils/DeveloperDocs/DeleteChoices.mjs +10 -0
  855. package/Utils/DeveloperDocs/ListOrderFacts.d.mts +27 -0
  856. package/Utils/DeveloperDocs/ListOrderFacts.d.ts +27 -0
  857. package/Utils/DeveloperDocs/ListOrderFacts.js +106 -0
  858. package/Utils/DeveloperDocs/ListOrderFacts.mjs +4 -0
  859. package/Utils/DeveloperDocs/TerraformSchema.d.mts +6 -0
  860. package/Utils/DeveloperDocs/TerraformSchema.d.ts +6 -0
  861. package/Utils/DeveloperDocs/TerraformSchema.js +20 -1
  862. package/Utils/DeveloperDocs/TerraformSchema.mjs +1 -0
  863. package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +36 -0
  864. package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +36 -0
  865. package/Utils/GuidedSetup/OnCallPolicyRecords.js +101 -1
  866. package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +8 -0
  867. package/Utils/GuidedSetup/ServiceMonitorRecords.d.mts +58 -0
  868. package/Utils/GuidedSetup/ServiceMonitorRecords.d.ts +58 -0
  869. package/Utils/GuidedSetup/ServiceMonitorRecords.js +163 -0
  870. package/Utils/GuidedSetup/ServiceMonitorRecords.mjs +11 -0
  871. package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +12 -0
  872. package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +12 -0
  873. package/Utils/GuidedSetup/WebsiteMonitorRecords.js +33 -1
  874. package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +3 -0
  875. package/Utils/Host/AndroidAgentLogSessions.d.mts +63 -0
  876. package/Utils/Host/AndroidAgentLogSessions.d.ts +63 -0
  877. package/Utils/Host/AndroidAgentLogSessions.js +245 -0
  878. package/Utils/Host/AndroidAgentLogSessions.mjs +9 -0
  879. package/Utils/Host/HostOperatingSystem.d.mts +29 -0
  880. package/Utils/Host/HostOperatingSystem.d.ts +29 -0
  881. package/Utils/Host/HostOperatingSystem.js +95 -0
  882. package/Utils/Host/HostOperatingSystem.mjs +4 -0
  883. package/Utils/HostCollector/HostCollectorConfigResolution.d.mts +1 -1
  884. package/Utils/HostCollector/HostCollectorConfigResolution.d.ts +1 -1
  885. package/Utils/HostCollector/HostCollectorConfigResolution.js +12 -2
  886. package/Utils/HostCollector/HostCollectorDefaultConfig.d.mts +5 -0
  887. package/Utils/HostCollector/HostCollectorDefaultConfig.d.ts +5 -0
  888. package/Utils/HostCollector/HostCollectorDefaultConfig.js +90 -4
  889. package/Utils/HostCollector/HostCollectorDefaultConfig.mjs +5 -0
  890. package/Utils/Inventory/InventoryAssetDetails.d.mts +4 -3
  891. package/Utils/Inventory/InventoryAssetDetails.d.ts +4 -3
  892. package/Utils/Inventory/InventoryAssetDetails.js +16 -29
  893. package/Utils/ListOrder.d.mts +71 -11
  894. package/Utils/ListOrder.d.ts +71 -11
  895. package/Utils/ListOrder.js +135 -20
  896. package/Utils/ListOrder.mjs +3 -1
  897. package/Utils/Metrics/MetricLatestReading.d.mts +15 -0
  898. package/Utils/Metrics/MetricLatestReading.d.ts +15 -0
  899. package/Utils/Metrics/MetricLatestReading.js +49 -0
  900. package/Utils/Metrics/MetricLatestReading.mjs +2 -0
  901. package/Utils/Metrics/MetricQueryOverlay.d.mts +24 -0
  902. package/Utils/Metrics/MetricQueryOverlay.d.ts +24 -0
  903. package/Utils/Metrics/MetricQueryOverlay.js +169 -0
  904. package/Utils/Metrics/MetricQueryOverlay.mjs +3 -0
  905. package/Utils/Metrics/RetiredCloudMetricChartMoves.d.mts +11 -0
  906. package/Utils/Metrics/RetiredCloudMetricChartMoves.d.ts +11 -0
  907. package/Utils/Metrics/RetiredCloudMetricChartMoves.js +337 -0
  908. package/Utils/Metrics/RetiredCloudMetricChartMoves.mjs +5 -0
  909. package/Utils/Metrics/RetiredCloudMetricMoves.d.mts +126 -0
  910. package/Utils/Metrics/RetiredCloudMetricMoves.d.ts +126 -0
  911. package/Utils/Metrics/RetiredCloudMetricMoves.js +681 -0
  912. package/Utils/Metrics/RetiredCloudMetricMoves.mjs +26 -0
  913. package/Utils/Metrics/RetiredCloudMetricReads.d.mts +13 -0
  914. package/Utils/Metrics/RetiredCloudMetricReads.d.ts +13 -0
  915. package/Utils/Metrics/RetiredCloudMetricReads.js +176 -0
  916. package/Utils/Metrics/RetiredCloudMetricReads.mjs +12 -0
  917. package/Utils/ModelImportExport.js +9 -0
  918. package/Utils/Monitor/DeviceMonitorDuplicates.js +22 -3
  919. package/Utils/Monitor/DeviceMonitorTemplateUtil.d.mts +11 -1
  920. package/Utils/Monitor/DeviceMonitorTemplateUtil.d.ts +11 -1
  921. package/Utils/Monitor/DeviceMonitorTemplateUtil.js +173 -44
  922. package/Utils/Monitor/DeviceMonitorTemplateUtil.mjs +5 -0
  923. package/Utils/Monitor/DeviceUrlTarget.d.mts +35 -0
  924. package/Utils/Monitor/DeviceUrlTarget.d.ts +35 -0
  925. package/Utils/Monitor/DeviceUrlTarget.js +254 -0
  926. package/Utils/Monitor/DeviceUrlTarget.mjs +9 -0
  927. package/Utils/Monitor/MonitorSecretReferences.d.mts +21 -0
  928. package/Utils/Monitor/MonitorSecretReferences.d.ts +21 -0
  929. package/Utils/Monitor/MonitorSecretReferences.js +162 -0
  930. package/Utils/Monitor/MonitorSecretReferences.mjs +10 -0
  931. package/Utils/Monitor/MonitorSecretTotp.d.mts +40 -0
  932. package/Utils/Monitor/MonitorSecretTotp.d.ts +40 -0
  933. package/Utils/Monitor/MonitorSecretTotp.js +313 -0
  934. package/Utils/Monitor/MonitorSecretTotp.mjs +15 -0
  935. package/Utils/Monitor/MonitorStatusReason.d.mts +44 -0
  936. package/Utils/Monitor/MonitorStatusReason.d.ts +44 -0
  937. package/Utils/Monitor/MonitorStatusReason.js +446 -0
  938. package/Utils/Monitor/MonitorStatusReason.mjs +12 -0
  939. package/Utils/Monitor/MonitorUptimeSummaryUtil.js +7 -6
  940. package/Utils/Monitor/ProbeFailureCauses.d.mts +3 -1
  941. package/Utils/Monitor/ProbeFailureCauses.d.ts +3 -1
  942. package/Utils/Monitor/ProbeFailureCauses.js +14 -3
  943. package/Utils/Monitor/StatusChangeCauseWording.d.mts +15 -0
  944. package/Utils/Monitor/StatusChangeCauseWording.d.ts +15 -0
  945. package/Utils/Monitor/StatusChangeCauseWording.js +129 -0
  946. package/Utils/Monitor/StatusChangeCauseWording.mjs +5 -0
  947. package/Utils/Monitor/StatusChangeNotes.d.mts +15 -0
  948. package/Utils/Monitor/StatusChangeNotes.d.ts +15 -0
  949. package/Utils/Monitor/StatusChangeNotes.js +144 -0
  950. package/Utils/Monitor/StatusChangeNotes.mjs +15 -0
  951. package/Utils/NetworkDevice/DeviceAddressScope.d.mts +71 -0
  952. package/Utils/NetworkDevice/DeviceAddressScope.d.ts +71 -0
  953. package/Utils/NetworkDevice/DeviceAddressScope.js +286 -0
  954. package/Utils/NetworkDevice/DeviceAddressScope.mjs +12 -0
  955. package/Utils/NetworkDevice/MonitorCheckedHost.d.mts +9 -0
  956. package/Utils/NetworkDevice/MonitorCheckedHost.d.ts +9 -0
  957. package/Utils/NetworkDevice/MonitorCheckedHost.js +114 -0
  958. package/Utils/NetworkDevice/MonitorCheckedHost.mjs +4 -0
  959. package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.js +8 -6
  960. package/Utils/NetworkSite/CidrMatchUtil.js +10 -4
  961. package/Utils/Project/ProjectBilling.js +1 -0
  962. package/Utils/Rum/SessionIdentity.d.mts +0 -8
  963. package/Utils/Rum/SessionIdentity.d.ts +0 -8
  964. package/Utils/Rum/SessionIdentity.js +4 -105
  965. package/Utils/Rum/SessionReplayFrustrationSettingsValidation.js +15 -1
  966. package/Utils/Rum/SessionReplayIngestBounds.d.mts +10 -0
  967. package/Utils/Rum/SessionReplayIngestBounds.d.ts +10 -0
  968. package/Utils/Rum/SessionReplayIngestBounds.js +121 -0
  969. package/Utils/Rum/SessionReplayIngestBounds.mjs +2 -0
  970. package/Utils/Rum/SessionReplayPolicyValidation.d.mts +9 -0
  971. package/Utils/Rum/SessionReplayPolicyValidation.d.ts +9 -0
  972. package/Utils/Rum/SessionReplayPolicyValidation.js +97 -0
  973. package/Utils/Rum/SessionReplayPolicyValidation.mjs +6 -0
  974. package/Utils/Schema/ModelSchema.js +20 -4
  975. package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +1 -0
  976. package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +1 -0
  977. package/Utils/SecurityCase/SecurityCaseMarkdown.js +5 -2
  978. package/Utils/SecurityCase/SecurityConnectionMatch.js +23 -8
  979. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.js +7 -0
  980. package/Utils/SecurityEvent/LogParsers/CloudAuditResources.d.mts +93 -0
  981. package/Utils/SecurityEvent/LogParsers/CloudAuditResources.d.ts +93 -0
  982. package/Utils/SecurityEvent/LogParsers/CloudAuditResources.js +1363 -0
  983. package/Utils/SecurityEvent/LogParsers/CloudAuditResources.mjs +26 -0
  984. package/Utils/SecurityEvent/LogParsers/CloudTrailLogParser.js +3 -0
  985. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.js +7 -0
  986. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +5 -0
  987. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +5 -0
  988. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +79 -1
  989. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +4 -0
  990. package/Utils/SecurityEvent/SecurityRecordReading.d.mts +3 -0
  991. package/Utils/SecurityEvent/SecurityRecordReading.d.ts +3 -0
  992. package/Utils/SecurityEvent/SecurityRecordReading.js +21 -0
  993. package/Utils/SecurityEvent/SecurityRecordReading.mjs +2 -0
  994. package/Utils/SecurityEvent/SecurityTemplateRecords.js +7 -1
  995. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.d.mts +1 -0
  996. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.d.ts +1 -0
  997. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.js +31 -4
  998. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.mjs +1 -0
  999. package/Utils/StateOrder.d.mts +25 -7
  1000. package/Utils/StateOrder.d.ts +25 -7
  1001. package/Utils/StateOrder.js +33 -19
  1002. package/Utils/StateOrder.mjs +1 -0
  1003. package/Utils/Storage/StorageUsage.d.mts +31 -0
  1004. package/Utils/Storage/StorageUsage.d.ts +31 -0
  1005. package/Utils/Storage/StorageUsage.js +179 -0
  1006. package/Utils/Storage/StorageUsage.mjs +10 -0
  1007. package/Utils/Suggestions/CodeFixSuggestion.js +3 -2
  1008. package/Utils/Telemetry/CrossSignalScope.d.mts +6 -1
  1009. package/Utils/Telemetry/CrossSignalScope.d.ts +6 -1
  1010. package/Utils/Telemetry/CrossSignalScope.js +19 -1
  1011. package/Utils/Telemetry/CrossSignalScope.mjs +2 -0
  1012. package/Utils/Telemetry/MetricKitCallStack.d.mts +33 -0
  1013. package/Utils/Telemetry/MetricKitCallStack.d.ts +33 -0
  1014. package/Utils/Telemetry/MetricKitCallStack.js +253 -0
  1015. package/Utils/Telemetry/MetricKitCallStack.mjs +4 -0
  1016. package/Utils/Telemetry/MobileAppFaults.d.mts +14 -1
  1017. package/Utils/Telemetry/MobileAppFaults.d.ts +14 -1
  1018. package/Utils/Telemetry/MobileAppFaults.js +149 -15
  1019. package/Utils/Telemetry/MobileAppFaults.mjs +12 -0
  1020. package/Utils/Telemetry/OtlpAnyValue.d.mts +5 -0
  1021. package/Utils/Telemetry/OtlpAnyValue.d.ts +5 -0
  1022. package/Utils/Telemetry/OtlpAnyValue.js +86 -0
  1023. package/Utils/Telemetry/OtlpAnyValue.mjs +5 -0
  1024. package/Utils/Totp/TotpParameters.d.mts +25 -0
  1025. package/Utils/Totp/TotpParameters.d.ts +25 -0
  1026. package/Utils/Totp/TotpParameters.js +99 -0
  1027. package/Utils/Totp/TotpParameters.mjs +14 -0
  1028. package/Utils/Totp/TotpSecret.d.mts +42 -0
  1029. package/Utils/Totp/TotpSecret.d.ts +42 -0
  1030. package/Utils/Totp/TotpSecret.js +327 -0
  1031. package/Utils/Totp/TotpSecret.mjs +21 -0
  1032. package/Utils/VersionUtil.d.mts +1 -0
  1033. package/Utils/VersionUtil.d.ts +1 -0
  1034. package/Utils/VersionUtil.js +26 -0
  1035. package/package.json +3 -2
@@ -1,18 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GCP_KEY_METRICS = exports.GCP_ALIGNMENT_PERIOD_SECONDS = exports.AZURE_KEY_METRICS = exports.AZURE_MAX_SPLIT_SERIES_PER_METRIC = exports.AZURE_ENTITY_NAME_ATTRIBUTE = exports.AZURE_DIMENSION_ATTRIBUTE_PREFIX = exports.AZURE_ENTITY_NAME_DIMENSION = exports.AZURE_MAX_METRICS_PER_RESOURCE = exports.AWS_KEY_METRICS = exports.DAILY_PERIOD_SECONDS = exports.HOURLY_PERIOD_SECONDS = exports.AWS_DEFAULT_PERIOD_SECONDS = void 0;
3
+ exports.GCP_KEY_METRICS = exports.GCP_ALIGNMENT_PERIOD_SECONDS = exports.GCP_OPS_AGENT_INSTALL_URL = exports.GCP_OPS_AGENT = exports.AZURE_KEY_METRICS = exports.AZURE_MAX_SPLIT_SERIES_PER_METRIC = exports.AZURE_ENTITY_NAME_ATTRIBUTE = exports.AZURE_DIMENSION_ATTRIBUTE_PREFIX = exports.AZURE_ENTITY_NAME_DIMENSION = exports.AZURE_MAX_METRICS_PER_RESOURCE = exports.AZURE_HOURLY_GRAIN = exports.AZURE_FIVE_MINUTE_READ_MINUTES = exports.AZURE_FIVE_MINUTE_GRAIN = exports.AWS_KEY_METRICS = exports.AWS_STREAM_TEMPLATE_VERSION = exports.AWS_STREAM_TEMPLATE_UNVERSIONED = exports.DAILY_PERIOD_SECONDS = exports.HOURLY_PERIOD_SECONDS = exports.AWS_DEFAULT_PERIOD_SECONDS = void 0;
4
4
  exports.getAwsKeyMetrics = getAwsKeyMetrics;
5
5
  exports.getAwsProbeMetricNames = getAwsProbeMetricNames;
6
6
  exports.getAwsStoredMetricName = getAwsStoredMetricName;
7
+ exports.getAwsKeyMetric = getAwsKeyMetric;
8
+ exports.getAwsKeyMetricOfStoredName = getAwsKeyMetricOfStoredName;
9
+ exports.isAwsKeyMetricSeries = isAwsKeyMetricSeries;
10
+ exports.isAwsKeyMetricStreamable = isAwsKeyMetricStreamable;
11
+ exports.isAwsKeyMetricInTemplate = isAwsKeyMetricInTemplate;
12
+ exports.countAwsKeyMetricsAddedSince = countAwsKeyMetricsAddedSince;
7
13
  exports.getAzureKeyMetrics = getAzureKeyMetrics;
8
14
  exports.getAzureKeyMetricNames = getAzureKeyMetricNames;
15
+ exports.getAzureReadMetricNames = getAzureReadMetricNames;
16
+ exports.isAzureFiveMinuteKeyMetric = isAzureFiveMinuteKeyMetric;
17
+ exports.hasAzureFiveMinuteKeyMetrics = hasAzureFiveMinuteKeyMetrics;
9
18
  exports.getAzureStoredMetricName = getAzureStoredMetricName;
10
19
  exports.isAzureKeyMetricStoredName = isAzureKeyMetricStoredName;
11
20
  exports.getAzureKeyMetricOfStoredName = getAzureKeyMetricOfStoredName;
12
21
  exports.isAzureKeyMetricExportedByDiagnosticSettings = isAzureKeyMetricExportedByDiagnosticSettings;
13
22
  exports.isAzureStreamedKeyMetric = isAzureStreamedKeyMetric;
14
23
  exports.isAzureStreamedKeyMetricStoredName = isAzureStreamedKeyMetricStoredName;
24
+ exports.getGcpStoredMetricName = getGcpStoredMetricName;
25
+ exports.getGcpReadMetrics = getGcpReadMetrics;
15
26
  exports.getGcpKeyMetricTypes = getGcpKeyMetricTypes;
27
+ exports.getGcpRetiredMetricCount = getGcpRetiredMetricCount;
16
28
  exports.getGcpResourceTypesOfMetric = getGcpResourceTypesOfMetric;
17
29
  exports.getAwsNamespaceOfType = getAwsNamespaceOfType;
18
30
  exports.getKeyMetricCount = getKeyMetricCount;
@@ -22,6 +34,7 @@ exports.compareCloudKeyMetrics = compareCloudKeyMetrics;
22
34
  const CloudPlatform_1 = require("./CloudPlatform");
23
35
  const CloudResourceCatalog_1 = require("./CloudResourceCatalog");
24
36
  const CloudKeyMetricGroup_1 = require("./CloudKeyMetricGroup");
37
+ const CloudKeyMetricCondition_1 = require("./CloudKeyMetricCondition");
25
38
  /*
26
39
  * THE KEY METRICS A CLOUD CONNECTION READS, PER RESOURCE TYPE.
27
40
  *
@@ -46,13 +59,23 @@ const CloudKeyMetricGroup_1 = require("./CloudKeyMetricGroup");
46
59
  *
47
60
  * - Azure Monitor answers up to 20 metrics of a resource in one call,
48
61
  * and bills per call, so each type reads up to 20 at no extra cost -
49
- * each at its finest grain, never two sub-hourly grains (two calls) for
50
- * one type;
62
+ * each at its finest grain, one grain finer than an hour a type (one
63
+ * call a read), but for the few metrics kept at five minutes at their
64
+ * finest that are marked as earning a call of their own, read every 15
65
+ * minutes (AzureKeyMetric.grain);
51
66
  * - CloudWatch bills each metric of each resource, so AWS reads fewer:
52
67
  * the ones that say whether it is up, busy, failing, slow or full;
53
68
  * - Cloud Monitoring answers one metric type for every resource of a
54
69
  * project in one call, and a read only asks the types of resources a
55
- * project has (GcpCloudConnector).
70
+ * project has (GcpCloudConnector) - and an agent's metrics only of the
71
+ * projects where an agent reports them.
72
+ *
73
+ * A metric its provider deprecates is no key metric: a type that read one
74
+ * reads what replaces it. It can stay read for a while as `retired`, so a
75
+ * monitor someone built on it keeps working until it is moved; then it is
76
+ * read no more. Cosmos DB's ServerSideLatency and Pub/Sub's
77
+ * send_message_operation_count were, until their monitors were moved to
78
+ * what replaces them (#9739, MoveMonitorsOffRetiredCloudMetrics).
56
79
  *
57
80
  * Each metric is filed under a CloudKeyMetricGroup, and a type's metrics
58
81
  * come most telling first within it: a resource's Metrics card shows them
@@ -65,10 +88,42 @@ const CloudKeyMetricGroup_1 = require("./CloudKeyMetricGroup");
65
88
  * The docs page lists these (CloudConnectDocsFacts holds it to this file).
66
89
  */
67
90
  const G = CloudKeyMetricGroup_1.CloudKeyMetricGroup;
91
+ const C = CloudKeyMetricCondition_1.CloudKeyMetricCondition;
92
+ /*
93
+ * A key metric only the resources a condition holds for report: a replica's
94
+ * lag, a burstable VM's credits (CloudKeyMetricCondition). A resource's page
95
+ * says so beside one it did not report (CloudUnreportedKeyMetrics).
96
+ */
97
+ function when(condition, metric) {
98
+ return { ...metric, onlyWhen: condition };
99
+ }
68
100
  exports.AWS_DEFAULT_PERIOD_SECONDS = 300;
69
101
  exports.HOURLY_PERIOD_SECONDS = 3600;
70
102
  exports.DAILY_PERIOD_SECONDS = 86400;
71
- // A key metric a stream writes in place of the read (isStreamed), but a daily one.
103
+ /*
104
+ * THE VERSIONS OF THE STREAM TEMPLATE (CloudStreamTemplate).
105
+ *
106
+ * The template a stream's stack is made from says its version to OneUptime
107
+ * with every delivery (CloudStreamStack), and its key-metric filters carry
108
+ * every key metric of a version up to its own (AwsKeyMetric.streamedSince).
109
+ *
110
+ * - 1: the key metrics every stack has carried since streams began. A
111
+ * stack that says no version is held to these: one made before stacks
112
+ * said theirs, or one set up another way, with Terraform or the
113
+ * console, whose filters OneUptime cannot know.
114
+ * - 2: every key metric read every five minutes, the ones added since
115
+ * streams began too.
116
+ * - 3: AWS Glue jobs' and Amazon Athena workgroups' key metrics too
117
+ * (#9691).
118
+ *
119
+ * A key metric added to the catalog after a version is written is streamed
120
+ * since the next one, never the current one: stacks of the current version
121
+ * are out there and do not carry it. CloudStreamTemplate.test pins what
122
+ * each version carries.
123
+ */
124
+ exports.AWS_STREAM_TEMPLATE_UNVERSIONED = 1;
125
+ exports.AWS_STREAM_TEMPLATE_VERSION = 3;
126
+ // A key metric every key-metric stack carries, since streams began - but a daily or hourly one.
72
127
  function aws(metricName, statistic, unit, group, periodSeconds = exports.AWS_DEFAULT_PERIOD_SECONDS) {
73
128
  return {
74
129
  metricName,
@@ -76,24 +131,51 @@ function aws(metricName, statistic, unit, group, periodSeconds = exports.AWS_DEF
76
131
  unit,
77
132
  group,
78
133
  periodSeconds,
79
- isStreamed: periodSeconds < exports.DAILY_PERIOD_SECONDS,
134
+ streamedSince: periodSeconds <= exports.AWS_DEFAULT_PERIOD_SECONDS
135
+ ? exports.AWS_STREAM_TEMPLATE_UNVERSIONED
136
+ : null,
137
+ };
138
+ }
139
+ /*
140
+ * A key metric added since streams began, read every five minutes: the
141
+ * stacks of template 2 on carry it, and an older stack's account has it
142
+ * read and written by the read.
143
+ */
144
+ function aws2(metricName, statistic, unit, group, options = {}) {
145
+ return {
146
+ metricName,
147
+ statistic,
148
+ unit,
149
+ group,
150
+ periodSeconds: exports.AWS_DEFAULT_PERIOD_SECONDS,
151
+ streamedSince: 2,
152
+ ...(options.onlyDimensionValues
153
+ ? { onlyDimensionValues: options.onlyDimensionValues }
154
+ : {}),
80
155
  };
81
156
  }
82
157
  /*
83
- * A key metric the read writes whether the account streams or not
84
- * (isStreamed false): every one added since streams began. Read every five
85
- * minutes.
158
+ * A key metric added since template 2 was written, read every five
159
+ * minutes: the stacks of template 3 on carry it, and an older stack's
160
+ * account has it read and written by the read.
86
161
  */
87
- function awsRead(metricName, statistic, unit, group) {
162
+ function aws3(metricName, statistic, unit, group) {
88
163
  return {
89
164
  metricName,
90
165
  statistic,
91
166
  unit,
92
167
  group,
93
168
  periodSeconds: exports.AWS_DEFAULT_PERIOD_SECONDS,
94
- isStreamed: false,
169
+ streamedSince: 3,
95
170
  };
96
171
  }
172
+ // A key metric only resources of these types of its namespace report.
173
+ function onlyOf(types, metric) {
174
+ return { ...metric, onlyTypes: types };
175
+ }
176
+ const ECS_CLUSTER = ["AWS::ECS::Cluster"];
177
+ const REST_API = ["AWS::ApiGateway::RestApi"];
178
+ const HTTP_API = ["AWS::ApiGatewayV2::Api"];
97
179
  exports.AWS_KEY_METRICS = [
98
180
  {
99
181
  namespace: "AWS/EC2",
@@ -103,9 +185,9 @@ exports.AWS_KEY_METRICS = [
103
185
  aws("NetworkOut", "Sum", "Bytes", G.Network),
104
186
  aws("StatusCheckFailed", "Maximum", "Count", G.Availability),
105
187
  // A burstable (T) instance's credits; a Nitro instance's EBS throughput.
106
- awsRead("CPUCreditBalance", "Average", "Count", G.Compute),
107
- awsRead("EBSReadBytes", "Sum", "Bytes", G.Storage),
108
- awsRead("EBSWriteBytes", "Sum", "Bytes", G.Storage),
188
+ when(C.Burstable, aws2("CPUCreditBalance", "Average", "Count", G.Compute)),
189
+ when(C.Kind, aws2("EBSReadBytes", "Sum", "Bytes", G.Storage)),
190
+ when(C.Kind, aws2("EBSWriteBytes", "Sum", "Bytes", G.Storage)),
109
191
  ],
110
192
  },
111
193
  {
@@ -114,37 +196,37 @@ exports.AWS_KEY_METRICS = [
114
196
  aws("VolumeReadOps", "Sum", "Count", G.Storage),
115
197
  aws("VolumeWriteOps", "Sum", "Count", G.Storage),
116
198
  aws("VolumeQueueLength", "Average", "Count", G.Storage),
117
- awsRead("VolumeReadBytes", "Sum", "Bytes", G.Storage),
118
- awsRead("VolumeWriteBytes", "Sum", "Bytes", G.Storage),
199
+ aws2("VolumeReadBytes", "Sum", "Bytes", G.Storage),
200
+ aws2("VolumeWriteBytes", "Sum", "Bytes", G.Storage),
119
201
  // gp2, st1 and sc1 volumes only.
120
- awsRead("BurstBalance", "Average", "Percent", G.Storage),
202
+ when(C.Tier, aws2("BurstBalance", "Average", "Percent", G.Storage)),
121
203
  ],
122
204
  },
123
205
  {
124
206
  namespace: "AWS/ELB",
125
207
  metrics: [
126
- aws("RequestCount", "Sum", "Count", G.Traffic),
127
- aws("Latency", "Average", "Seconds", G.Latency),
128
- aws("HTTPCode_Backend_5XX", "Sum", "Count", G.Errors),
208
+ when(C.NonZero, aws("RequestCount", "Sum", "Count", G.Traffic)),
209
+ when(C.NonZero, aws("Latency", "Average", "Seconds", G.Latency)),
210
+ when(C.NonZero, aws("HTTPCode_Backend_5XX", "Sum", "Count", G.Errors)),
129
211
  aws("UnHealthyHostCount", "Maximum", "Count", G.Availability),
130
- awsRead("HealthyHostCount", "Average", "Count", G.Availability),
131
- awsRead("HTTPCode_ELB_5XX", "Sum", "Count", G.Errors),
132
- awsRead("SurgeQueueLength", "Maximum", "Count", G.Backlog),
133
- awsRead("SpilloverCount", "Sum", "Count", G.Errors),
212
+ aws2("HealthyHostCount", "Average", "Count", G.Availability),
213
+ when(C.NonZero, aws2("HTTPCode_ELB_5XX", "Sum", "Count", G.Errors)),
214
+ when(C.NonZero, aws2("SurgeQueueLength", "Maximum", "Count", G.Backlog)),
215
+ when(C.NonZero, aws2("SpilloverCount", "Sum", "Count", G.Errors)),
134
216
  ],
135
217
  },
136
218
  {
137
219
  namespace: "AWS/ApplicationELB",
138
220
  metrics: [
139
221
  aws("RequestCount", "Sum", "Count", G.Traffic),
140
- aws("TargetResponseTime", "Average", "Seconds", G.Latency),
222
+ when(C.NonZero, aws("TargetResponseTime", "Average", "Seconds", G.Latency)),
141
223
  aws("HTTPCode_Target_5XX_Count", "Sum", "Count", G.Errors),
142
- aws("HTTPCode_ELB_5XX_Count", "Sum", "Count", G.Errors),
143
- awsRead("HTTPCode_Target_4XX_Count", "Sum", "Count", G.Errors),
144
- awsRead("RejectedConnectionCount", "Sum", "Count", G.Errors),
145
- awsRead("TargetConnectionErrorCount", "Sum", "Count", G.Errors),
146
- awsRead("ActiveConnectionCount", "Sum", "Count", G.Connections),
147
- awsRead("ProcessedBytes", "Sum", "Bytes", G.Traffic),
224
+ when(C.NonZero, aws("HTTPCode_ELB_5XX_Count", "Sum", "Count", G.Errors)),
225
+ aws2("HTTPCode_Target_4XX_Count", "Sum", "Count", G.Errors),
226
+ when(C.NonZero, aws2("RejectedConnectionCount", "Sum", "Count", G.Errors)),
227
+ when(C.NonZero, aws2("TargetConnectionErrorCount", "Sum", "Count", G.Errors)),
228
+ when(C.NonZero, aws2("ActiveConnectionCount", "Sum", "Count", G.Connections)),
229
+ when(C.NonZero, aws2("ProcessedBytes", "Sum", "Bytes", G.Traffic)),
148
230
  ],
149
231
  },
150
232
  {
@@ -153,10 +235,10 @@ exports.AWS_KEY_METRICS = [
153
235
  aws("ActiveFlowCount", "Average", "Count", G.Connections),
154
236
  aws("NewFlowCount", "Sum", "Count", G.Connections),
155
237
  aws("ProcessedBytes", "Sum", "Bytes", G.Traffic),
156
- awsRead("TCP_Client_Reset_Count", "Sum", "Count", G.Errors),
157
- awsRead("TCP_Target_Reset_Count", "Sum", "Count", G.Errors),
158
- awsRead("TCP_ELB_Reset_Count", "Sum", "Count", G.Errors),
159
- awsRead("PortAllocationErrorCount", "Sum", "Count", G.Errors),
238
+ aws2("TCP_Client_Reset_Count", "Sum", "Count", G.Errors),
239
+ aws2("TCP_Target_Reset_Count", "Sum", "Count", G.Errors),
240
+ aws2("TCP_ELB_Reset_Count", "Sum", "Count", G.Errors),
241
+ aws2("PortAllocationErrorCount", "Sum", "Count", G.Errors),
160
242
  ],
161
243
  },
162
244
  {
@@ -165,10 +247,10 @@ exports.AWS_KEY_METRICS = [
165
247
  aws("ActiveConnectionCount", "Maximum", "Count", G.Connections),
166
248
  aws("BytesOutToDestination", "Sum", "Bytes", G.Network),
167
249
  aws("ErrorPortAllocation", "Sum", "Count", G.Errors),
168
- awsRead("PacketsDropCount", "Sum", "Count", G.Errors),
169
- awsRead("BytesInFromDestination", "Sum", "Bytes", G.Network),
170
- awsRead("ConnectionAttemptCount", "Sum", "Count", G.Connections),
171
- awsRead("IdleTimeoutCount", "Sum", "Count", G.Connections),
250
+ aws2("PacketsDropCount", "Sum", "Count", G.Errors),
251
+ aws2("BytesInFromDestination", "Sum", "Bytes", G.Network),
252
+ aws2("ConnectionAttemptCount", "Sum", "Count", G.Connections),
253
+ aws2("IdleTimeoutCount", "Sum", "Count", G.Connections),
172
254
  ],
173
255
  },
174
256
  {
@@ -182,19 +264,19 @@ exports.AWS_KEY_METRICS = [
182
264
  {
183
265
  namespace: "AWS/TransitGateway",
184
266
  metrics: [
185
- awsRead("BytesIn", "Sum", "Bytes", G.Network),
186
- awsRead("BytesOut", "Sum", "Bytes", G.Network),
187
- awsRead("PacketDropCountBlackhole", "Sum", "Count", G.Errors),
188
- awsRead("PacketDropCountNoRoute", "Sum", "Count", G.Errors),
267
+ aws2("BytesIn", "Sum", "Bytes", G.Network),
268
+ aws2("BytesOut", "Sum", "Bytes", G.Network),
269
+ aws2("PacketDropCountBlackhole", "Sum", "Count", G.Errors),
270
+ aws2("PacketDropCountNoRoute", "Sum", "Count", G.Errors),
189
271
  ],
190
272
  },
191
273
  {
192
274
  namespace: "AWS/DX",
193
275
  metrics: [
194
- awsRead("ConnectionState", "Minimum", "None", G.Availability),
195
- awsRead("ConnectionBpsEgress", "Average", "Bits/Second", G.Network),
196
- awsRead("ConnectionBpsIngress", "Average", "Bits/Second", G.Network),
197
- awsRead("ConnectionErrorCount", "Sum", "Count", G.Errors),
276
+ aws2("ConnectionState", "Minimum", "None", G.Availability),
277
+ when(C.Kind, aws2("ConnectionBpsEgress", "Average", "Bits/Second", G.Network)),
278
+ when(C.Kind, aws2("ConnectionBpsIngress", "Average", "Bits/Second", G.Network)),
279
+ when(C.Kind, aws2("ConnectionErrorCount", "Sum", "Count", G.Errors)),
198
280
  ],
199
281
  },
200
282
  {
@@ -205,8 +287,8 @@ exports.AWS_KEY_METRICS = [
205
287
  aws("4xxErrorRate", "Average", "Percent", G.Errors),
206
288
  aws("5xxErrorRate", "Average", "Percent", G.Errors),
207
289
  aws("BytesDownloaded", "Sum", "None", G.Network),
208
- awsRead("TotalErrorRate", "Average", "Percent", G.Errors),
209
- awsRead("BytesUploaded", "Sum", "None", G.Network),
290
+ aws2("TotalErrorRate", "Average", "Percent", G.Errors),
291
+ aws2("BytesUploaded", "Sum", "None", G.Network),
210
292
  ],
211
293
  },
212
294
  {
@@ -214,7 +296,7 @@ exports.AWS_KEY_METRICS = [
214
296
  onlyRegion: "us-east-1",
215
297
  metrics: [
216
298
  aws("HealthCheckStatus", "Minimum", "None", G.Availability),
217
- aws("HealthCheckPercentageHealthy", "Average", "Percent", G.Availability),
299
+ when(C.Kind, aws("HealthCheckPercentageHealthy", "Average", "Percent", G.Availability)),
218
300
  ],
219
301
  },
220
302
  {
@@ -228,21 +310,21 @@ exports.AWS_KEY_METRICS = [
228
310
  namespace: "AWS/EFS",
229
311
  metrics: [
230
312
  aws("ClientConnections", "Sum", "Count", G.Connections),
231
- aws("PercentIOLimit", "Average", "Percent", G.Storage),
232
- awsRead("BurstCreditBalance", "Average", "Bytes", G.Storage),
233
- awsRead("DataReadIOBytes", "Sum", "Bytes", G.Storage),
234
- awsRead("DataWriteIOBytes", "Sum", "Bytes", G.Storage),
313
+ when(C.Tier, aws("PercentIOLimit", "Average", "Percent", G.Storage)),
314
+ aws2("BurstCreditBalance", "Average", "Bytes", G.Storage),
315
+ aws2("DataReadIOBytes", "Sum", "Bytes", G.Storage),
316
+ aws2("DataWriteIOBytes", "Sum", "Bytes", G.Storage),
235
317
  ],
236
318
  },
237
319
  {
238
320
  namespace: "AWS/FSx",
239
321
  metrics: [
240
- awsRead("DataReadBytes", "Sum", "Bytes", G.Storage),
241
- awsRead("DataWriteBytes", "Sum", "Bytes", G.Storage),
242
- awsRead("DataReadOperations", "Sum", "Count", G.Storage),
243
- awsRead("DataWriteOperations", "Sum", "Count", G.Storage),
322
+ aws2("DataReadBytes", "Sum", "Bytes", G.Storage),
323
+ aws2("DataWriteBytes", "Sum", "Bytes", G.Storage),
324
+ aws2("DataReadOperations", "Sum", "Count", G.Storage),
325
+ aws2("DataWriteOperations", "Sum", "Count", G.Storage),
244
326
  // FSx for Windows File Server only.
245
- awsRead("FreeStorageCapacity", "Average", "Bytes", G.Storage),
327
+ when(C.Kind, aws2("FreeStorageCapacity", "Average", "Bytes", G.Storage)),
246
328
  ],
247
329
  },
248
330
  {
@@ -250,9 +332,12 @@ exports.AWS_KEY_METRICS = [
250
332
  metrics: [
251
333
  aws("CPUUtilization", "Average", "Percent", G.Compute),
252
334
  aws("MemoryUtilization", "Average", "Percent", G.Memory),
253
- // A cluster's own: what its tasks reserve of its instances.
254
- awsRead("CPUReservation", "Average", "Percent", G.Compute),
255
- awsRead("MemoryReservation", "Average", "Percent", G.Memory),
335
+ /*
336
+ * A cluster's own: what its tasks reserve of its instances. A cluster
337
+ * with only Fargate tasks reserves none.
338
+ */
339
+ onlyOf(ECS_CLUSTER, when(C.Kind, aws2("CPUReservation", "Average", "Percent", G.Compute))),
340
+ onlyOf(ECS_CLUSTER, when(C.Kind, aws2("MemoryReservation", "Average", "Percent", G.Memory))),
256
341
  ],
257
342
  },
258
343
  {
@@ -262,10 +347,10 @@ exports.AWS_KEY_METRICS = [
262
347
  aws("Errors", "Sum", "Count", G.Errors),
263
348
  aws("Duration", "Average", "Milliseconds", G.Latency),
264
349
  aws("Throttles", "Sum", "Count", G.Errors),
265
- awsRead("ConcurrentExecutions", "Maximum", "Count", G.Compute),
350
+ aws2("ConcurrentExecutions", "Maximum", "Count", G.Compute),
266
351
  // Stream and asynchronous event sources only.
267
- awsRead("IteratorAge", "Maximum", "Milliseconds", G.Backlog),
268
- awsRead("DeadLetterErrors", "Sum", "Count", G.Errors),
352
+ when(C.Setup, aws2("IteratorAge", "Maximum", "Milliseconds", G.Backlog)),
353
+ when(C.Setup, aws2("DeadLetterErrors", "Sum", "Count", G.Errors)),
269
354
  ],
270
355
  },
271
356
  {
@@ -274,10 +359,10 @@ exports.AWS_KEY_METRICS = [
274
359
  aws("ExecutionsStarted", "Sum", "Count", G.Traffic),
275
360
  aws("ExecutionsFailed", "Sum", "Count", G.Errors),
276
361
  aws("ExecutionTime", "Average", "Milliseconds", G.Latency),
277
- awsRead("ExecutionsSucceeded", "Sum", "Count", G.Traffic),
278
- awsRead("ExecutionsTimedOut", "Sum", "Count", G.Errors),
279
- awsRead("ExecutionsAborted", "Sum", "Count", G.Errors),
280
- awsRead("ExecutionThrottled", "Sum", "Count", G.Errors),
362
+ aws2("ExecutionsSucceeded", "Sum", "Count", G.Traffic),
363
+ aws2("ExecutionsTimedOut", "Sum", "Count", G.Errors),
364
+ aws2("ExecutionsAborted", "Sum", "Count", G.Errors),
365
+ when(C.NonZero, aws2("ExecutionThrottled", "Sum", "Count", G.Errors)),
281
366
  ],
282
367
  },
283
368
  {
@@ -289,13 +374,13 @@ exports.AWS_KEY_METRICS = [
289
374
  aws("FreeableMemory", "Average", "Bytes", G.Memory),
290
375
  aws("ReadLatency", "Average", "Seconds", G.Latency),
291
376
  aws("WriteLatency", "Average", "Seconds", G.Latency),
292
- awsRead("ReadIOPS", "Average", "Count/Second", G.Storage),
293
- awsRead("WriteIOPS", "Average", "Count/Second", G.Storage),
294
- awsRead("DiskQueueDepth", "Average", "Count", G.Storage),
295
- awsRead("NetworkReceiveThroughput", "Average", "Bytes/Second", G.Network),
296
- awsRead("NetworkTransmitThroughput", "Average", "Bytes/Second", G.Network),
377
+ aws2("ReadIOPS", "Average", "Count/Second", G.Storage),
378
+ aws2("WriteIOPS", "Average", "Count/Second", G.Storage),
379
+ aws2("DiskQueueDepth", "Average", "Count", G.Storage),
380
+ aws2("NetworkReceiveThroughput", "Average", "Bytes/Second", G.Network),
381
+ aws2("NetworkTransmitThroughput", "Average", "Bytes/Second", G.Network),
297
382
  // A read replica's own.
298
- awsRead("ReplicaLag", "Maximum", "Seconds", G.Replication),
383
+ when(C.Replica, aws2("ReplicaLag", "Maximum", "Seconds", G.Replication)),
299
384
  ],
300
385
  },
301
386
  {
@@ -304,20 +389,20 @@ exports.AWS_KEY_METRICS = [
304
389
  aws("CPUUtilization", "Average", "Percent", G.Compute),
305
390
  aws("DatabaseConnections", "Average", "Count", G.Connections),
306
391
  aws("FreeableMemory", "Average", "Bytes", G.Memory),
307
- awsRead("ReadLatency", "Average", "Milliseconds", G.Latency),
308
- awsRead("WriteLatency", "Average", "Milliseconds", G.Latency),
309
- awsRead("DBInstanceReplicaLag", "Maximum", "Milliseconds", G.Replication),
392
+ aws2("ReadLatency", "Average", "Milliseconds", G.Latency),
393
+ aws2("WriteLatency", "Average", "Milliseconds", G.Latency),
394
+ when(C.Replica, aws2("DBInstanceReplicaLag", "Maximum", "Milliseconds", G.Replication)),
310
395
  ],
311
396
  },
312
397
  {
313
398
  namespace: "AWS/Neptune",
314
399
  metrics: [
315
- awsRead("CPUUtilization", "Average", "Percent", G.Compute),
316
- awsRead("FreeableMemory", "Average", "Bytes", G.Memory),
317
- awsRead("MainRequestQueuePendingRequests", "Sum", "Count", G.Backlog),
318
- awsRead("TotalServerErrorsPerSec", "Average", "Count/Second", G.Errors),
319
- awsRead("TotalClientErrorsPerSec", "Average", "Count/Second", G.Errors),
320
- awsRead("ClusterReplicaLag", "Average", "Milliseconds", G.Replication),
400
+ when(C.NonZero, aws2("CPUUtilization", "Average", "Percent", G.Compute)),
401
+ when(C.NonZero, aws2("FreeableMemory", "Average", "Bytes", G.Memory)),
402
+ when(C.NonZero, aws2("MainRequestQueuePendingRequests", "Sum", "Count", G.Backlog)),
403
+ when(C.NonZero, aws2("TotalServerErrorsPerSec", "Average", "Count/Second", G.Errors)),
404
+ when(C.NonZero, aws2("TotalClientErrorsPerSec", "Average", "Count/Second", G.Errors)),
405
+ when(C.NonZero, aws2("ClusterReplicaLag", "Average", "Milliseconds", G.Replication)),
321
406
  ],
322
407
  },
323
408
  {
@@ -328,8 +413,8 @@ exports.AWS_KEY_METRICS = [
328
413
  aws("ReadThrottleEvents", "Sum", "Count", G.Errors),
329
414
  aws("WriteThrottleEvents", "Sum", "Count", G.Errors),
330
415
  // A provisioned table's own.
331
- awsRead("ProvisionedReadCapacityUnits", "Average", "Count", G.Compute),
332
- awsRead("ProvisionedWriteCapacityUnits", "Average", "Count", G.Compute),
416
+ aws2("ProvisionedReadCapacityUnits", "Average", "Count", G.Compute),
417
+ aws2("ProvisionedWriteCapacityUnits", "Average", "Count", G.Compute),
333
418
  ],
334
419
  },
335
420
  {
@@ -338,23 +423,23 @@ exports.AWS_KEY_METRICS = [
338
423
  aws("CPUUtilization", "Average", "Percent", G.Compute),
339
424
  aws("CurrConnections", "Average", "Count", G.Connections),
340
425
  aws("Evictions", "Sum", "Count", G.Cache),
341
- aws("DatabaseMemoryUsagePercentage", "Average", "Percent", G.Memory),
426
+ when(C.Kind, aws("DatabaseMemoryUsagePercentage", "Average", "Percent", G.Memory)),
342
427
  // Valkey and Redis OSS nodes'.
343
- awsRead("EngineCPUUtilization", "Average", "Percent", G.Compute),
344
- awsRead("CacheHits", "Sum", "Count", G.Cache),
345
- awsRead("CacheMisses", "Sum", "Count", G.Cache),
428
+ when(C.Kind, aws2("EngineCPUUtilization", "Average", "Percent", G.Compute)),
429
+ when(C.Kind, aws2("CacheHits", "Sum", "Count", G.Cache)),
430
+ when(C.Kind, aws2("CacheMisses", "Sum", "Count", G.Cache)),
346
431
  // A read replica's own.
347
- awsRead("ReplicationLag", "Maximum", "Seconds", G.Replication),
432
+ when(C.Replica, aws2("ReplicationLag", "Maximum", "Seconds", G.Replication)),
348
433
  ],
349
434
  },
350
435
  {
351
436
  namespace: "AWS/MemoryDB",
352
437
  metrics: [
353
- awsRead("CPUUtilization", "Average", "Percent", G.Compute),
354
- awsRead("EngineCPUUtilization", "Average", "Percent", G.Compute),
355
- awsRead("DatabaseMemoryUsagePercentage", "Average", "Percent", G.Memory),
356
- awsRead("CurrConnections", "Average", "Count", G.Connections),
357
- awsRead("Evictions", "Sum", "Count", G.Cache),
438
+ aws2("CPUUtilization", "Average", "Percent", G.Compute),
439
+ aws2("EngineCPUUtilization", "Average", "Percent", G.Compute),
440
+ aws2("DatabaseMemoryUsagePercentage", "Average", "Percent", G.Memory),
441
+ aws2("CurrConnections", "Average", "Count", G.Connections),
442
+ aws2("Evictions", "Sum", "Count", G.Cache),
358
443
  ],
359
444
  },
360
445
  {
@@ -363,9 +448,9 @@ exports.AWS_KEY_METRICS = [
363
448
  aws("CPUUtilization", "Average", "Percent", G.Compute),
364
449
  aws("PercentageDiskSpaceUsed", "Average", "Percent", G.Storage),
365
450
  aws("DatabaseConnections", "Average", "Count", G.Connections),
366
- awsRead("HealthStatus", "Minimum", "Count", G.Availability),
367
- awsRead("ReadLatency", "Average", "Seconds", G.Latency),
368
- awsRead("WriteLatency", "Average", "Seconds", G.Latency),
451
+ aws2("HealthStatus", "Minimum", "Count", G.Availability),
452
+ aws2("ReadLatency", "Average", "Seconds", G.Latency),
453
+ aws2("WriteLatency", "Average", "Seconds", G.Latency),
369
454
  ],
370
455
  },
371
456
  {
@@ -374,22 +459,22 @@ exports.AWS_KEY_METRICS = [
374
459
  aws("CPUUtilization", "Average", "Percent", G.Compute),
375
460
  aws("FreeStorageSpace", "Minimum", "Megabytes", G.Storage),
376
461
  aws("ClusterStatus.red", "Maximum", "Count", G.Availability),
377
- awsRead("ClusterStatus.yellow", "Maximum", "Count", G.Availability),
378
- awsRead("ClusterIndexWritesBlocked", "Maximum", "Count", G.Errors),
379
- awsRead("5xx", "Sum", "Count", G.Errors),
380
- awsRead("SearchLatency", "Average", "Milliseconds", G.Latency),
381
- awsRead("IndexingLatency", "Average", "Milliseconds", G.Latency),
382
- awsRead("JVMMemoryPressure", "Maximum", "Percent", G.Memory),
462
+ aws2("ClusterStatus.yellow", "Maximum", "Count", G.Availability),
463
+ aws2("ClusterIndexWritesBlocked", "Maximum", "Count", G.Errors),
464
+ aws2("5xx", "Sum", "Count", G.Errors),
465
+ aws2("SearchLatency", "Average", "Milliseconds", G.Latency),
466
+ aws2("IndexingLatency", "Average", "Milliseconds", G.Latency),
467
+ aws2("JVMMemoryPressure", "Maximum", "Percent", G.Memory),
383
468
  ],
384
469
  },
385
470
  {
386
471
  namespace: "AWS/SQS",
387
472
  metrics: [
388
473
  aws("ApproximateNumberOfMessagesVisible", "Maximum", "Count", G.Backlog),
389
- aws("ApproximateAgeOfOldestMessage", "Maximum", "Seconds", G.Backlog),
474
+ when(C.NonZero, aws("ApproximateAgeOfOldestMessage", "Maximum", "Seconds", G.Backlog)),
390
475
  aws("NumberOfMessagesSent", "Sum", "Count", G.Traffic),
391
- awsRead("ApproximateNumberOfMessagesNotVisible", "Maximum", "Count", G.Backlog),
392
- awsRead("NumberOfMessagesDeleted", "Sum", "Count", G.Traffic),
476
+ when(C.NonZero, aws2("ApproximateNumberOfMessagesNotVisible", "Maximum", "Count", G.Backlog)),
477
+ aws2("NumberOfMessagesDeleted", "Sum", "Count", G.Traffic),
393
478
  ],
394
479
  },
395
480
  {
@@ -397,7 +482,7 @@ exports.AWS_KEY_METRICS = [
397
482
  metrics: [
398
483
  aws("NumberOfMessagesPublished", "Sum", "Count", G.Traffic),
399
484
  aws("NumberOfNotificationsFailed", "Sum", "Count", G.Errors),
400
- awsRead("NumberOfNotificationsDelivered", "Sum", "Count", G.Traffic),
485
+ aws2("NumberOfNotificationsDelivered", "Sum", "Count", G.Traffic),
401
486
  ],
402
487
  },
403
488
  {
@@ -405,39 +490,46 @@ exports.AWS_KEY_METRICS = [
405
490
  metrics: [
406
491
  aws("IncomingRecords", "Sum", "Count", G.Traffic),
407
492
  aws("GetRecords.IteratorAgeMilliseconds", "Maximum", "Milliseconds", G.Backlog),
408
- awsRead("IncomingBytes", "Sum", "Bytes", G.Traffic),
409
- awsRead("WriteProvisionedThroughputExceeded", "Sum", "Count", G.Errors),
410
- awsRead("ReadProvisionedThroughputExceeded", "Sum", "Count", G.Errors),
493
+ aws2("IncomingBytes", "Sum", "Bytes", G.Traffic),
494
+ aws2("WriteProvisionedThroughputExceeded", "Sum", "Count", G.Errors),
495
+ aws2("ReadProvisionedThroughputExceeded", "Sum", "Count", G.Errors),
411
496
  ],
412
497
  },
413
498
  {
499
+ // A Direct PUT stream's incoming records, and an S3 destination's deliveries.
414
500
  namespace: "AWS/Firehose",
415
501
  metrics: [
416
- aws("IncomingRecords", "Sum", "Count", G.Traffic),
417
- aws("DeliveryToS3.Success", "Average", "Count", G.Availability),
418
- awsRead("IncomingBytes", "Sum", "Bytes", G.Traffic),
419
- awsRead("ThrottledRecords", "Sum", "Count", G.Errors),
420
- awsRead("DeliveryToS3.DataFreshness", "Maximum", "Seconds", G.Backlog),
502
+ when(C.Kind, aws("IncomingRecords", "Sum", "Count", G.Traffic)),
503
+ when(C.Kind, aws("DeliveryToS3.Success", "Average", "Count", G.Availability)),
504
+ when(C.Kind, aws2("IncomingBytes", "Sum", "Bytes", G.Traffic)),
505
+ when(C.Kind, aws2("ThrottledRecords", "Sum", "Count", G.Errors)),
506
+ when(C.Kind, aws2("DeliveryToS3.DataFreshness", "Maximum", "Seconds", G.Backlog)),
421
507
  ],
422
508
  },
423
509
  {
424
510
  namespace: "AWS/ApiGateway",
425
511
  metrics: [
426
512
  aws("Count", "Sum", "Count", G.Traffic),
427
- aws("5XXError", "Sum", "Count", G.Errors),
513
+ onlyOf(REST_API, aws("5XXError", "Sum", "Count", G.Errors)),
428
514
  aws("Latency", "Average", "Milliseconds", G.Latency),
429
- awsRead("4XXError", "Sum", "Count", G.Errors),
430
- awsRead("IntegrationLatency", "Average", "Milliseconds", G.Latency),
515
+ onlyOf(REST_API, aws2("4XXError", "Sum", "Count", G.Errors)),
516
+ aws2("IntegrationLatency", "Average", "Milliseconds", G.Latency),
517
+ /*
518
+ * An HTTP API's errors: it publishes 5xx and 4xx, a REST API 5XXError
519
+ * and 4XXError, so each is listed only for the APIs that publish it.
520
+ */
521
+ onlyOf(HTTP_API, when(C.Kind, aws2("5xx", "Sum", "Count", G.Errors))),
522
+ onlyOf(HTTP_API, when(C.Kind, aws2("4xx", "Sum", "Count", G.Errors))),
431
523
  ],
432
524
  },
433
525
  {
434
526
  namespace: "AWS/Events",
435
527
  metrics: [
436
- aws("Invocations", "Sum", "Count", G.Traffic),
437
- aws("FailedInvocations", "Sum", "Count", G.Errors),
438
- awsRead("TriggeredRules", "Sum", "Count", G.Traffic),
439
- awsRead("ThrottledRules", "Sum", "Count", G.Errors),
440
- awsRead("DeadLetterInvocations", "Sum", "Count", G.Errors),
528
+ when(C.NonZero, aws("Invocations", "Sum", "Count", G.Traffic)),
529
+ when(C.NonZero, aws("FailedInvocations", "Sum", "Count", G.Errors)),
530
+ aws2("TriggeredRules", "Sum", "Count", G.Traffic),
531
+ aws2("ThrottledRules", "Sum", "Count", G.Errors),
532
+ aws2("DeadLetterInvocations", "Sum", "Count", G.Errors),
441
533
  ],
442
534
  },
443
535
  {
@@ -448,26 +540,210 @@ exports.AWS_KEY_METRICS = [
448
540
  namespace: "AWS/AmazonMQ",
449
541
  probeMetricNames: ["CpuUtilization", "SystemCpuUtilization"],
450
542
  metrics: [
451
- aws("CpuUtilization", "Average", "Percent", G.Compute),
543
+ when(C.Kind, aws("CpuUtilization", "Average", "Percent", G.Compute)),
452
544
  // RabbitMQ.
453
- awsRead("SystemCpuUtilization", "Average", "Percent", G.Compute),
454
- awsRead("MessageCount", "Maximum", "Count", G.Backlog),
455
- awsRead("ConnectionCount", "Maximum", "Count", G.Connections),
545
+ when(C.Kind, aws2("SystemCpuUtilization", "Average", "Percent", G.Compute)),
546
+ when(C.Kind, aws2("MessageCount", "Maximum", "Count", G.Backlog)),
547
+ when(C.Kind, aws2("ConnectionCount", "Maximum", "Count", G.Connections)),
456
548
  // ActiveMQ.
457
- awsRead("HeapUsage", "Maximum", "Percent", G.Memory),
458
- awsRead("StorePercentUsage", "Maximum", "Percent", G.Storage),
459
- awsRead("CurrentConnectionsCount", "Maximum", "Count", G.Connections),
549
+ when(C.Kind, aws2("HeapUsage", "Maximum", "Percent", G.Memory)),
550
+ when(C.Kind, aws2("StorePercentUsage", "Maximum", "Percent", G.Storage)),
551
+ when(C.Kind, aws2("CurrentConnectionsCount", "Maximum", "Count", G.Connections)),
460
552
  ],
461
553
  },
462
554
  {
463
555
  namespace: "AWS/Kafka",
464
556
  metrics: [
465
557
  aws("ActiveControllerCount", "Maximum", "Count", G.Availability),
466
- awsRead("OfflinePartitionsCount", "Maximum", "Count", G.Availability),
558
+ aws2("OfflinePartitionsCount", "Maximum", "Count", G.Availability),
467
559
  // Each broker's own (Broker ID): a series per broker of the cluster.
468
- awsRead("UnderReplicatedPartitions", "Maximum", "Count", G.Replication),
469
- awsRead("KafkaDataLogsDiskUsed", "Maximum", "Percent", G.Storage),
470
- awsRead("CpuUser", "Average", "Percent", G.Compute),
560
+ aws2("UnderReplicatedPartitions", "Maximum", "Count", G.Replication),
561
+ aws2("KafkaDataLogsDiskUsed", "Maximum", "Percent", G.Storage),
562
+ aws2("CpuUser", "Average", "Percent", G.Compute),
563
+ ],
564
+ },
565
+ {
566
+ /*
567
+ * A web ACL's requests, by what its rules did with them: its own total
568
+ * is the series whose Rule is ALL (CloudResourceCatalog's rule), each
569
+ * published only when it is not zero. A CloudFront distribution's web
570
+ * ACL publishes in us-east-1, a Region's own in its Region.
571
+ */
572
+ namespace: "AWS/WAFV2",
573
+ probeMetricNames: ["AllowedRequests", "BlockedRequests"],
574
+ metrics: [
575
+ when(C.NonZero, aws2("AllowedRequests", "Sum", "Count", G.Traffic)),
576
+ when(C.NonZero, aws2("BlockedRequests", "Sum", "Count", G.Traffic)),
577
+ when(C.NonZero, aws2("CountedRequests", "Sum", "Count", G.Traffic)),
578
+ when(C.NonZero, aws2("CaptchaRequests", "Sum", "Count", G.Traffic)),
579
+ when(C.NonZero, aws2("ChallengeRequests", "Sum", "Count", G.Traffic)),
580
+ ],
581
+ },
582
+ {
583
+ /*
584
+ * A firewall's packets, per Availability Zone and inspection engine.
585
+ * The packets it received are the Stateless engine's (a Classic
586
+ * policy) or the System engine's (a Next Generation policy), which each
587
+ * count every packet - never also the Firewall engine's, which would
588
+ * count some again. A packet is dropped by one engine, so its drops
589
+ * are every engine's.
590
+ */
591
+ namespace: "AWS/NetworkFirewall",
592
+ metrics: [
593
+ when(C.NonZero, aws2("ReceivedPackets", "Sum", "Count", G.Traffic, {
594
+ onlyDimensionValues: { Engine: ["Stateless", "System"] },
595
+ })),
596
+ when(C.NonZero, aws2("DroppedPackets", "Sum", "Count", G.Errors)),
597
+ // Throttled by bursting traffic, among others.
598
+ when(C.NonZero, aws2("OtherDroppedPackets", "Sum", "Count", G.Errors)),
599
+ when(C.NonZero, aws2("InvalidDroppedPackets", "Sum", "Count", G.Errors)),
600
+ ],
601
+ },
602
+ {
603
+ // A service's own, without its instances' (Instance).
604
+ namespace: "AWS/AppRunner",
605
+ metrics: [
606
+ aws2("CPUUtilization", "Average", "Percent", G.Compute),
607
+ aws2("Requests", "Sum", "Count", G.Traffic),
608
+ aws2("5xxStatusResponses", "Sum", "Count", G.Errors),
609
+ aws2("4xxStatusResponses", "Sum", "Count", G.Errors),
610
+ aws2("RequestLatency", "Average", "Milliseconds", G.Latency),
611
+ aws2("MemoryUtilization", "Average", "Percent", G.Memory),
612
+ aws2("ActiveInstances", "Average", "Count", G.Compute),
613
+ ],
614
+ },
615
+ {
616
+ /*
617
+ * An Auto Scaling group's size, once its group metrics collection is
618
+ * on: free, at a minute's grain. A group without it publishes none, so
619
+ * it is never listed and costs nothing to read.
620
+ */
621
+ namespace: "AWS/AutoScaling",
622
+ metrics: [
623
+ when(C.Setup, aws2("GroupInServiceInstances", "Average", "Count", G.Availability)),
624
+ when(C.Setup, aws2("GroupDesiredCapacity", "Average", "Count", G.Compute)),
625
+ when(C.Setup, aws2("GroupPendingInstances", "Maximum", "Count", G.Compute)),
626
+ when(C.Setup, aws2("GroupTerminatingInstances", "Maximum", "Count", G.Compute)),
627
+ ],
628
+ },
629
+ {
630
+ /*
631
+ * An accelerator's endpoints and traffic, on the accelerator's own
632
+ * series (Accelerator alone). Global Accelerator publishes to US West
633
+ * (Oregon) whatever the endpoints' Regions.
634
+ */
635
+ namespace: "AWS/GlobalAccelerator",
636
+ onlyRegion: "us-west-2",
637
+ metrics: [
638
+ aws2("HealthyEndpointCount", "Minimum", "Count", G.Availability),
639
+ aws2("UnhealthyEndpointCount", "Maximum", "Count", G.Availability),
640
+ when(C.NonZero, aws2("NewFlowCount", "Sum", "Count", G.Connections)),
641
+ when(C.NonZero, aws2("ProcessedBytesIn", "Sum", "Bytes", G.Network)),
642
+ when(C.NonZero, aws2("ProcessedBytesOut", "Sum", "Bytes", G.Network)),
643
+ ],
644
+ },
645
+ {
646
+ /*
647
+ * A user pool's sign-ins, token refreshes and sign-ups, and those
648
+ * throttled. Cognito publishes them for each app client of the pool
649
+ * (UserPool, UserPoolClient), never for the pool alone: a series per
650
+ * client, which add up to the pool's. A pool may only refresh tokens
651
+ * for hours, so a sweep asks for any of the three.
652
+ */
653
+ namespace: "AWS/Cognito",
654
+ probeMetricNames: [
655
+ "SignInSuccesses",
656
+ "TokenRefreshSuccesses",
657
+ "SignUpSuccesses",
658
+ ],
659
+ metrics: [
660
+ aws2("SignInSuccesses", "Sum", "Count", G.Traffic),
661
+ aws2("SignInThrottles", "Sum", "Count", G.Errors),
662
+ aws2("TokenRefreshSuccesses", "Sum", "Count", G.Traffic),
663
+ aws2("TokenRefreshThrottles", "Sum", "Count", G.Errors),
664
+ aws2("SignUpSuccesses", "Sum", "Count", G.Traffic),
665
+ aws2("SignUpThrottles", "Sum", "Count", G.Errors),
666
+ ],
667
+ },
668
+ {
669
+ /*
670
+ * An environment's health, the one metric enhanced health reporting
671
+ * publishes for free: 0 OK, 1 Info, 5 Unknown, 10 No data, 15
672
+ * Warning, 20 Degraded, 25 Severe. Its Maximum is the period's worst.
673
+ * The others are custom metrics CloudWatch charges for, published only
674
+ * when the environment is set to.
675
+ */
676
+ namespace: "AWS/ElasticBeanstalk",
677
+ metrics: [
678
+ when(C.Setup, aws2("EnvironmentHealth", "Maximum", "None", G.Availability)),
679
+ ],
680
+ },
681
+ {
682
+ // A GraphQL API's own (GraphQLAPIId); its requests are the Region's, not an API's.
683
+ namespace: "AWS/AppSync",
684
+ metrics: [
685
+ aws2("Latency", "Average", "Milliseconds", G.Latency),
686
+ aws2("5XXError", "Sum", "Count", G.Errors),
687
+ aws2("4XXError", "Sum", "Count", G.Errors),
688
+ ],
689
+ },
690
+ {
691
+ /*
692
+ * An endpoint's invocations, published for each production variant of
693
+ * it (EndpointName, VariantName): a series per variant, which add up
694
+ * to the endpoint's. A model's latency is in microseconds.
695
+ */
696
+ namespace: "AWS/SageMaker",
697
+ metrics: [
698
+ aws2("Invocations", "Sum", "None", G.Traffic),
699
+ aws2("Invocation5XXErrors", "Sum", "None", G.Errors),
700
+ aws2("Invocation4XXErrors", "Sum", "None", G.Errors),
701
+ aws2("ModelLatency", "Average", "Microseconds", G.Latency),
702
+ ],
703
+ },
704
+ {
705
+ /*
706
+ * An AWS Glue job's own, on its JobRunId ALL series (CloudResourceCatalog's
707
+ * rule): each run has a series of its own beside it, with as many
708
+ * dimensions, which is no job's. Glue publishes them every 30 seconds
709
+ * while a job runs, and only for a job whose job metrics are on
710
+ * (--enable-metrics), which its owner turns on for their own use -
711
+ * CloudWatch bills them as custom metrics - so a job without them is
712
+ * never listed and costs nothing to read. Each is the change since
713
+ * Glue's last report (a Sum over the period), but the executors, which
714
+ * are a count at a moment. A sweep asks for the tasks completed, which
715
+ * every running job reports.
716
+ */
717
+ namespace: "Glue",
718
+ metrics: [
719
+ when(C.Setup, aws3("glue.driver.aggregate.numCompletedTasks", "Sum", "Count", G.Traffic)),
720
+ when(C.Setup, aws3("glue.driver.aggregate.numFailedTasks", "Sum", "Count", G.Errors)),
721
+ when(C.Setup, aws3("glue.driver.aggregate.numKilledTasks", "Sum", "Count", G.Errors)),
722
+ when(C.Setup, aws3("glue.driver.aggregate.recordsRead", "Sum", "Count", G.Traffic)),
723
+ when(C.Setup, aws3("glue.driver.aggregate.bytesRead", "Sum", "Bytes", G.Traffic)),
724
+ when(C.Setup, aws3("glue.driver.ExecutorAllocationManager.executors.numberAllExecutors", "Average", "Count", G.Compute)),
725
+ when(C.Setup, aws3("glue.driver.ExecutorAllocationManager.executors.numberMaxNeededExecutors", "Maximum", "Count", G.Backlog)),
726
+ ],
727
+ },
728
+ {
729
+ /*
730
+ * An Amazon Athena workgroup's queries, published as each query ends,
731
+ * by a workgroup whose "Publish query metrics to CloudWatch" is on (the
732
+ * console's default). The bytes a workgroup's queries scanned have a
733
+ * series of the workgroup's own; its query times only one per query
734
+ * state and type (WorkGroup, QueryState, QueryType), read side by side.
735
+ * A query publishes its times once, so the SampleCount of its
736
+ * TotalExecutionTime is how many queries ended - the failed and
737
+ * cancelled ones apart by their QueryState. A workgroup of DDL alone
738
+ * publishes no bytes, so a sweep asks for its queries too.
739
+ */
740
+ namespace: "AWS/Athena",
741
+ probeMetricNames: ["ProcessedBytes", "TotalExecutionTime"],
742
+ metrics: [
743
+ when(C.Setup, aws3("ProcessedBytes", "Sum", "Bytes", G.Traffic)),
744
+ when(C.Setup, aws3("TotalExecutionTime", "SampleCount", "Count", G.Traffic)),
745
+ when(C.Setup, aws3("EngineExecutionTime", "Average", "Milliseconds", G.Latency)),
746
+ when(C.Setup, aws3("QueryQueueTime", "Average", "Milliseconds", G.Backlog)),
471
747
  ],
472
748
  },
473
749
  {
@@ -475,9 +751,8 @@ exports.AWS_KEY_METRICS = [
475
751
  * The days a certificate has left. ACM publishes it twice a day for
476
752
  * every certificate until it expires, then stops: read once an hour,
477
753
  * and listed whatever its last point's age (isListedWhenQuiet). Its
478
- * Minimum is the period's one point. The key metrics' stream leaves it
479
- * to this read (CloudStreamTemplate): an hour sooner is nothing to a
480
- * count of days.
754
+ * Minimum is the period's one point. No stream writes it
755
+ * (streamedSince null): an hour sooner is nothing to a count of days.
481
756
  */
482
757
  namespace: "AWS/CertificateManager",
483
758
  isListedWhenQuiet: true,
@@ -505,6 +780,106 @@ function getAwsProbeMetricNames(entry) {
505
780
  function getAwsStoredMetricName(namespace, metricName) {
506
781
  return `amazonaws.com/${namespace}/${metricName}`;
507
782
  }
783
+ // A namespace's key metric by its name, whatever its case.
784
+ function getAwsKeyMetric(namespace, metricName) {
785
+ var _a;
786
+ const wanted = metricName.trim().toLowerCase();
787
+ return (_a = getAwsKeyMetrics(namespace)) === null || _a === void 0 ? void 0 : _a.metrics.find((metric) => {
788
+ return metric.metricName.toLowerCase() === wanted;
789
+ });
790
+ }
791
+ /*
792
+ * The key metric a stored CloudWatch name is ("amazonaws.com/AWS/EC2/
793
+ * CPUUtilization"), with its namespace as the catalog spells it, whatever
794
+ * the case it was stored in - or null for a name no connection reads.
795
+ */
796
+ function getAwsKeyMetricOfStoredName(storedMetricName) {
797
+ const parsed = parseAwsStoredMetricName(storedMetricName);
798
+ const entry = parsed
799
+ ? getAwsKeyMetrics(parsed.namespace)
800
+ : undefined;
801
+ const metric = parsed && entry
802
+ ? getAwsKeyMetric(entry.namespace, parsed.metricName)
803
+ : undefined;
804
+ return entry && metric ? { namespace: entry.namespace, metric } : null;
805
+ }
806
+ /*
807
+ * Whether a series of the metric, on these dimensions, is one it is read
808
+ * from (AwsKeyMetric.onlyDimensionValues): every series of a metric that
809
+ * names none, and of one that does, each whose named dimensions are
810
+ * missing or hold one of their values.
811
+ */
812
+ function isAwsKeyMetricSeries(metric, dimensions) {
813
+ for (const [name, values] of Object.entries(metric.onlyDimensionValues || {})) {
814
+ const value = dimensions[name];
815
+ if (value !== undefined && value !== "" && !values.includes(value)) {
816
+ return false;
817
+ }
818
+ }
819
+ return true;
820
+ }
821
+ // Whether any stream writes the metric: none writes a daily or hourly one.
822
+ function isAwsKeyMetricStreamable(metric) {
823
+ return metric.streamedSince !== null;
824
+ }
825
+ /*
826
+ * Whether the key-metric filters of a template version carry the metric:
827
+ * a stack made from that version streams it.
828
+ */
829
+ function isAwsKeyMetricInTemplate(metric, templateVersion) {
830
+ return (metric.streamedSince !== null && metric.streamedSince <= templateVersion);
831
+ }
832
+ /*
833
+ * How many key metrics the current template's filters carry that a
834
+ * stack of an older version does not: what running the command again
835
+ * streams in place of the read.
836
+ */
837
+ function countAwsKeyMetricsAddedSince(templateVersion) {
838
+ let count = 0;
839
+ for (const entry of exports.AWS_KEY_METRICS) {
840
+ for (const metric of entry.metrics) {
841
+ if (isAwsKeyMetricInTemplate(metric, exports.AWS_STREAM_TEMPLATE_VERSION) &&
842
+ !isAwsKeyMetricInTemplate(metric, templateVersion)) {
843
+ count++;
844
+ }
845
+ }
846
+ }
847
+ return count;
848
+ }
849
+ /*
850
+ * ---- Azure: Azure Monitor ------------------------------------------------
851
+ *
852
+ * Per resource type: the metrics read, by Azure Monitor's own name, in
853
+ * order. A metric the resource does not publish (its metric definitions
854
+ * do not list it - a vCore database has no DTU) is left out; each is read
855
+ * with the aggregation its definition calls primary, at the finest time
856
+ * grain it offers from a minute up.
857
+ *
858
+ * One Azure Monitor call reads one grain, so each grain finer than an hour
859
+ * is a call of its own for every resource, each read. A type's metrics are
860
+ * read at one such grain - a minute for almost every type - and a metric
861
+ * whose finest grain is five minutes is read only where it is marked as
862
+ * earning the call it takes (AzureKeyMetric.grain): every 15 minutes, three
863
+ * points a call, a third of a call a resource for each five minutes.
864
+ */
865
+ /*
866
+ * The grain a key metric is marked with when Azure Monitor keeps it at five
867
+ * minutes at its finest, and how often it is read: the read asks for the
868
+ * last 15 minutes of it once they are all there, so each call brings three
869
+ * points (AzureCloudConnector).
870
+ */
871
+ exports.AZURE_FIVE_MINUTE_GRAIN = "PT5M";
872
+ exports.AZURE_FIVE_MINUTE_READ_MINUTES = 15;
873
+ /*
874
+ * The grain a key metric is marked with when Azure Monitor keeps it at an
875
+ * hour at its finest (#9982): a Storage account's used capacity, a Cosmos
876
+ * DB account's availability, a DNS zone's queries, a registry's storage.
877
+ * It is read as it always was, in its hour's call once an hour (no call is
878
+ * added), and its reading is kept between those reads
879
+ * (AZURE_HOURLY_READING_HOLD_MS, CloudResourceHealth), where every other
880
+ * read would leave it out.
881
+ */
882
+ exports.AZURE_HOURLY_GRAIN = "PT1H";
508
883
  /*
509
884
  * At most this many metrics are read per resource: Azure Monitor's own
510
885
  * limit for one metrics call, which is billed as one read whatever the
@@ -533,6 +908,14 @@ exports.AZURE_MAX_SPLIT_SERIES_PER_METRIC = 1000;
533
908
  function azure(name, group) {
534
909
  return { name, group };
535
910
  }
911
+ // A metric Azure Monitor keeps at five minutes at its finest, read every 15 minutes.
912
+ function azure5(name, group) {
913
+ return { name, group, grain: exports.AZURE_FIVE_MINUTE_GRAIN };
914
+ }
915
+ // A metric Azure Monitor keeps at an hour at its finest, read once an hour.
916
+ function azure60(name, group) {
917
+ return { name, group, grain: exports.AZURE_HOURLY_GRAIN };
918
+ }
536
919
  /*
537
920
  * Microsoft's tables marked a virtual machine's network totals "DS Export:
538
921
  * No" until 2026 and mark them Yes now. They stay marked here: a stream
@@ -555,7 +938,8 @@ exports.AZURE_KEY_METRICS = [
555
938
  azure("Disk Read Bytes", G.Storage),
556
939
  azure("Disk Write Bytes", G.Storage),
557
940
  azure("VmAvailabilityMetric", G.Availability),
558
- azure("CPU Credits Remaining", G.Compute),
941
+ // A burstable (B-series) VM's own.
942
+ when(C.Burstable, azure("CPU Credits Remaining", G.Compute)),
559
943
  azure("Available Memory Percentage", G.Memory),
560
944
  azure("Disk Read Operations/Sec", G.Storage),
561
945
  azure("Disk Write Operations/Sec", G.Storage),
@@ -576,7 +960,8 @@ exports.AZURE_KEY_METRICS = [
576
960
  azure("Network In Total", G.Network),
577
961
  azure("Network Out Total", G.Network),
578
962
  azure("VmAvailabilityMetric", G.Availability),
579
- azure("CPU Credits Remaining", G.Compute),
963
+ // A burstable (B-series) VM's own.
964
+ when(C.Burstable, azure("CPU Credits Remaining", G.Compute)),
580
965
  azure("Available Memory Percentage", G.Memory),
581
966
  azure("Disk Read Bytes", G.Storage),
582
967
  azure("Disk Write Bytes", G.Storage),
@@ -613,9 +998,16 @@ exports.AZURE_KEY_METRICS = [
613
998
  azure("Http5xx", G.Errors),
614
999
  azure("Http4xx", G.Errors),
615
1000
  azure("HttpResponseTime", G.Latency),
1001
+ /*
1002
+ * Its Health check, where one is set: its instances' status, which
1003
+ * reads a failure once an instance is deemed unhealthy. Kept at five
1004
+ * minutes at its finest.
1005
+ */
1006
+ when(C.Setup, azure5("HealthCheckStatus", G.Availability)),
616
1007
  azure("CpuTime", G.Compute),
617
1008
  azure("MemoryWorkingSet", G.Memory),
618
- azure("FunctionExecutionCount", G.Traffic),
1009
+ // A function app's own.
1010
+ when(C.Kind, azure("FunctionExecutionCount", G.Traffic)),
619
1011
  azure("Http2xx", G.Traffic),
620
1012
  azure("RequestsInApplicationQueue", G.Backlog),
621
1013
  azure("PrivateBytes", G.Memory),
@@ -624,7 +1016,7 @@ exports.AZURE_KEY_METRICS = [
624
1016
  azure("AppConnections", G.Connections),
625
1017
  azure("BytesReceived", G.Network),
626
1018
  azure("BytesSent", G.Network),
627
- azure("FunctionExecutionUnits", G.Compute),
1019
+ when(C.Kind, azure("FunctionExecutionUnits", G.Compute)),
628
1020
  azure("FileSystemUsage", G.Storage),
629
1021
  ],
630
1022
  },
@@ -663,7 +1055,8 @@ exports.AZURE_KEY_METRICS = [
663
1055
  type: "Microsoft.Sql/servers/databases",
664
1056
  metrics: [
665
1057
  azure("cpu_percent", G.Compute),
666
- azure("dtu_consumption_percent", G.Compute),
1058
+ // A database or pool on the DTU purchasing model's own.
1059
+ when(C.Tier, azure("dtu_consumption_percent", G.Compute)),
667
1060
  azure("storage_percent", G.Storage),
668
1061
  azure("connection_failed", G.Connections),
669
1062
  azure("deadlock", G.Errors),
@@ -683,9 +1076,10 @@ exports.AZURE_KEY_METRICS = [
683
1076
  type: "Microsoft.Sql/servers/elasticpools",
684
1077
  metrics: [
685
1078
  azure("cpu_percent", G.Compute),
686
- azure("eDTU_used", G.Compute),
1079
+ when(C.Tier, azure("eDTU_used", G.Compute)),
687
1080
  azure("storage_percent", G.Storage),
688
- azure("dtu_consumption_percent", G.Compute),
1081
+ // A database or pool on the DTU purchasing model's own.
1082
+ when(C.Tier, azure("dtu_consumption_percent", G.Compute)),
689
1083
  azure("workers_percent", G.Compute),
690
1084
  azure("sessions_percent", G.Connections),
691
1085
  azure("log_write_percent", G.Storage),
@@ -715,7 +1109,8 @@ exports.AZURE_KEY_METRICS = [
715
1109
  azure("active_connections", G.Connections),
716
1110
  azure("connections_failed", G.Connections),
717
1111
  azure("is_db_alive", G.Availability),
718
- azure("cpu_credits_remaining", G.Compute),
1112
+ // A burstable server's own.
1113
+ when(C.Burstable, azure("cpu_credits_remaining", G.Compute)),
719
1114
  azure("storage_used", G.Storage),
720
1115
  azure("txlogs_storage_used", G.Storage),
721
1116
  azure("disk_iops_consumed_percentage", G.Storage),
@@ -726,7 +1121,7 @@ exports.AZURE_KEY_METRICS = [
726
1121
  azure("maximum_used_transactionIDs", G.Storage),
727
1122
  azure("network_bytes_ingress", G.Network),
728
1123
  azure("network_bytes_egress", G.Network),
729
- azure("physical_replication_delay_in_seconds", G.Replication),
1124
+ when(C.Replica, azure("physical_replication_delay_in_seconds", G.Replication)),
730
1125
  ],
731
1126
  },
732
1127
  {
@@ -746,7 +1141,7 @@ exports.AZURE_KEY_METRICS = [
746
1141
  azure("lock_deadlocks", G.Errors),
747
1142
  azure("network_bytes_ingress", G.Network),
748
1143
  azure("network_bytes_egress", G.Network),
749
- azure("replication_lag", G.Replication),
1144
+ when(C.Replica, azure("replication_lag", G.Replication)),
750
1145
  ],
751
1146
  },
752
1147
  {
@@ -755,23 +1150,44 @@ exports.AZURE_KEY_METRICS = [
755
1150
  azure("TotalRequests", G.Traffic),
756
1151
  azure("TotalRequestUnits", G.Traffic),
757
1152
  azure("NormalizedRUConsumption", G.Compute),
758
- azure("ServerSideLatency", G.Latency),
759
- azure("ServerSideLatencyGateway", G.Latency),
760
- azure("ServerSideLatencyDirect", G.Latency),
1153
+ /*
1154
+ * The server's latency, by how a client connects: direct (the API
1155
+ * for NoSQL's and Table's SDKs in direct mode), else through the
1156
+ * gateway (every API, MongoDB, Cassandra and Gremlin's always).
1157
+ */
1158
+ when(C.Kind, azure("ServerSideLatencyDirect", G.Latency)),
1159
+ when(C.Kind, azure("ServerSideLatencyGateway", G.Latency)),
761
1160
  azure("ThrottledRequestPercentage", G.Errors),
762
- azure("ReplicationLatency", G.Replication),
763
- azure("ServiceAvailability", G.Availability),
1161
+ // An account replicated to more than one region's own.
1162
+ when(C.Setup, azure("ReplicationLatency", G.Replication)),
1163
+ azure60("ServiceAvailability", G.Availability),
1164
+ /*
1165
+ * What the account stores, kept at five minutes at its finest: its
1166
+ * data, its indexes and its documents, every container's together.
1167
+ * DataUsage, IndexUsage and DocumentCount are deprecated for these.
1168
+ */
1169
+ azure5("DataUsageV2", G.Storage),
1170
+ azure5("IndexUsageV2", G.Storage),
1171
+ azure5("DocumentCountV2", G.Storage),
764
1172
  ],
1173
+ /*
1174
+ * ServerSideLatency, which Microsoft removes from Azure Monitor ("Please
1175
+ * use Server Side Latency Direct and Server Side Latency Gateway to
1176
+ * monitor the latency instead"), is read no more: the monitors built on
1177
+ * it were moved to one of the two (#9739).
1178
+ */
765
1179
  notExportedByDiagnosticSettings: [
766
1180
  "TotalRequests",
767
1181
  "TotalRequestUnits",
768
1182
  "NormalizedRUConsumption",
769
- "ServerSideLatency",
770
- "ServerSideLatencyGateway",
771
1183
  "ServerSideLatencyDirect",
1184
+ "ServerSideLatencyGateway",
772
1185
  "ThrottledRequestPercentage",
773
1186
  "ReplicationLatency",
774
1187
  "ServiceAvailability",
1188
+ "DataUsageV2",
1189
+ "IndexUsageV2",
1190
+ "DocumentCountV2",
775
1191
  ],
776
1192
  },
777
1193
  {
@@ -792,7 +1208,7 @@ exports.AZURE_KEY_METRICS = [
792
1208
  azure("totalkeys", G.Cache),
793
1209
  azure("usedmemory", G.Memory),
794
1210
  azure("LatencyP99", G.Latency),
795
- azure("GeoReplicationHealthy", G.Replication),
1211
+ when(C.Setup, azure("GeoReplicationHealthy", G.Replication)),
796
1212
  ],
797
1213
  },
798
1214
  {
@@ -812,7 +1228,7 @@ exports.AZURE_KEY_METRICS = [
812
1228
  azure("expiredkeys", G.Cache),
813
1229
  azure("totalkeys", G.Cache),
814
1230
  azure("cacheLatency", G.Latency),
815
- azure("geoReplicationHealthy", G.Replication),
1231
+ when(C.Setup, azure("geoReplicationHealthy", G.Replication)),
816
1232
  ],
817
1233
  },
818
1234
  {
@@ -821,7 +1237,7 @@ exports.AZURE_KEY_METRICS = [
821
1237
  azure("Transactions", G.Traffic),
822
1238
  azure("Availability", G.Availability),
823
1239
  azure("SuccessE2ELatency", G.Latency),
824
- azure("UsedCapacity", G.Storage),
1240
+ azure60("UsedCapacity", G.Storage),
825
1241
  azure("SuccessServerLatency", G.Latency),
826
1242
  azure("Ingress", G.Network),
827
1243
  azure("Egress", G.Network),
@@ -968,15 +1384,16 @@ exports.AZURE_KEY_METRICS = [
968
1384
  },
969
1385
  {
970
1386
  type: "Microsoft.Network/loadBalancers",
1387
+ // A Standard load balancer's: a Basic one publishes none.
971
1388
  metrics: [
972
- azure("VipAvailability", G.Availability),
973
- azure("DipAvailability", G.Availability),
974
- azure("ByteCount", G.Traffic),
975
- azure("PacketCount", G.Traffic),
976
- azure("SYNCount", G.Connections),
977
- azure("SnatConnectionCount", G.Connections),
978
- azure("UsedSnatPorts", G.Connections),
979
- azure("AllocatedSnatPorts", G.Connections),
1389
+ when(C.Tier, azure("VipAvailability", G.Availability)),
1390
+ when(C.Tier, azure("DipAvailability", G.Availability)),
1391
+ when(C.Tier, azure("ByteCount", G.Traffic)),
1392
+ when(C.Tier, azure("PacketCount", G.Traffic)),
1393
+ when(C.Tier, azure("SYNCount", G.Connections)),
1394
+ when(C.Tier, azure("SnatConnectionCount", G.Connections)),
1395
+ when(C.Tier, azure("UsedSnatPorts", G.Connections)),
1396
+ when(C.Tier, azure("AllocatedSnatPorts", G.Connections)),
980
1397
  ],
981
1398
  notExportedByDiagnosticSettings: ["UsedSnatPorts", "AllocatedSnatPorts"],
982
1399
  },
@@ -993,8 +1410,9 @@ exports.AZURE_KEY_METRICS = [
993
1410
  azure("CurrentConnections", G.Connections),
994
1411
  azure("BytesReceived", G.Network),
995
1412
  azure("BytesSent", G.Network),
996
- azure("CapacityUnits", G.Compute),
997
- azure("ComputeUnits", G.Compute),
1413
+ // A v2 gateway's own.
1414
+ when(C.Tier, azure("CapacityUnits", G.Compute)),
1415
+ when(C.Tier, azure("ComputeUnits", G.Compute)),
998
1416
  ],
999
1417
  notExportedByDiagnosticSettings: [
1000
1418
  "ApplicationGatewayTotalTime",
@@ -1065,9 +1483,10 @@ exports.AZURE_KEY_METRICS = [
1065
1483
  azure("TunnelEgressBytes", G.Network),
1066
1484
  azure("TunnelIngressPacketDropCount", G.Errors),
1067
1485
  azure("TunnelEgressPacketDropCount", G.Errors),
1068
- azure("BgpPeerStatus", G.Availability),
1069
- azure("P2SConnectionCount", G.Connections),
1070
- azure("P2SBandwidth", G.Network),
1486
+ // A gateway with BGP, or with point-to-site connections, set up.
1487
+ when(C.Setup, azure("BgpPeerStatus", G.Availability)),
1488
+ when(C.Setup, azure("P2SConnectionCount", G.Connections)),
1489
+ when(C.Setup, azure("P2SBandwidth", G.Network)),
1071
1490
  ],
1072
1491
  notExportedByDiagnosticSettings: ["BgpPeerStatus"],
1073
1492
  },
@@ -1103,8 +1522,8 @@ exports.AZURE_KEY_METRICS = [
1103
1522
  {
1104
1523
  type: "Microsoft.Network/dnszones",
1105
1524
  metrics: [
1106
- azure("QueryVolume", G.Traffic),
1107
- azure("RecordSetCapacityUtilization", G.Storage),
1525
+ azure60("QueryVolume", G.Traffic),
1526
+ azure60("RecordSetCapacityUtilization", G.Storage),
1108
1527
  ],
1109
1528
  notExportedByDiagnosticSettings: [
1110
1529
  "QueryVolume",
@@ -1149,12 +1568,13 @@ exports.AZURE_KEY_METRICS = [
1149
1568
  azure("Ratelimit", G.Errors),
1150
1569
  azure("DataIn", G.Network),
1151
1570
  azure("DataOut", G.Network),
1152
- azure("AzureOpenAIRequests", G.Traffic),
1153
- azure("AzureOpenAIAvailabilityRate", G.Availability),
1154
- azure("AzureOpenAITimeToResponse", G.Latency),
1155
- azure("ProcessedPromptTokens", G.Traffic),
1156
- azure("GeneratedTokens", G.Traffic),
1157
- azure("TokenTransaction", G.Traffic),
1571
+ // An Azure OpenAI account's own.
1572
+ when(C.Kind, azure("AzureOpenAIRequests", G.Traffic)),
1573
+ when(C.Kind, azure("AzureOpenAIAvailabilityRate", G.Availability)),
1574
+ when(C.Kind, azure("AzureOpenAITimeToResponse", G.Latency)),
1575
+ when(C.Kind, azure("ProcessedPromptTokens", G.Traffic)),
1576
+ when(C.Kind, azure("GeneratedTokens", G.Traffic)),
1577
+ when(C.Kind, azure("TokenTransaction", G.Traffic)),
1158
1578
  ],
1159
1579
  notExportedByDiagnosticSettings: ["AzureOpenAIAvailabilityRate"],
1160
1580
  },
@@ -1163,7 +1583,7 @@ exports.AZURE_KEY_METRICS = [
1163
1583
  metrics: [
1164
1584
  azure("TotalPullCount", G.Traffic),
1165
1585
  azure("TotalPushCount", G.Traffic),
1166
- azure("StorageUsed", G.Storage),
1586
+ azure60("StorageUsed", G.Storage),
1167
1587
  azure("SuccessfulPullCount", G.Traffic),
1168
1588
  azure("SuccessfulPushCount", G.Traffic),
1169
1589
  ],
@@ -1272,8 +1692,9 @@ exports.AZURE_KEY_METRICS = [
1272
1692
  azure("exceptions/count", G.Errors),
1273
1693
  azure("dependencies/failed", G.Errors),
1274
1694
  azure("dependencies/duration", G.Latency),
1275
- azure("availabilityResults/availabilityPercentage", G.Availability),
1276
- azure("pageViews/count", G.Traffic),
1695
+ // An availability test's, and the browser SDK's page views.
1696
+ when(C.Setup, azure("availabilityResults/availabilityPercentage", G.Availability)),
1697
+ when(C.Setup, azure("pageViews/count", G.Traffic)),
1277
1698
  ],
1278
1699
  notExportedByDiagnosticSettings: [
1279
1700
  "requests/count",
@@ -1315,6 +1736,40 @@ function getAzureKeyMetricNames(type) {
1315
1736
  return metric.name;
1316
1737
  });
1317
1738
  }
1739
+ /*
1740
+ * Every metric a read asks of a resource of the type, in order: its key
1741
+ * metrics, then the deprecated ones it still reads for the monitors built
1742
+ * on them (AzureTypeKeyMetrics.retired).
1743
+ */
1744
+ function getAzureReadMetricNames(keyMetrics) {
1745
+ return [
1746
+ ...keyMetrics.metrics.map((metric) => {
1747
+ return metric.name;
1748
+ }),
1749
+ ...(keyMetrics.retired || []).map((metric) => {
1750
+ return metric.name;
1751
+ }),
1752
+ ];
1753
+ }
1754
+ /*
1755
+ * Whether a key metric of the type is marked as read at five minutes
1756
+ * (AzureKeyMetric.grain), whatever the case of its name.
1757
+ */
1758
+ function isAzureFiveMinuteKeyMetric(type, metricName) {
1759
+ var _a;
1760
+ const wanted = (metricName || "").trim().toLowerCase();
1761
+ return Boolean((_a = getAzureKeyMetrics(type || "")) === null || _a === void 0 ? void 0 : _a.metrics.some((metric) => {
1762
+ return (metric.grain === exports.AZURE_FIVE_MINUTE_GRAIN &&
1763
+ metric.name.toLowerCase() === wanted);
1764
+ }));
1765
+ }
1766
+ // Whether a type has a key metric read at five minutes: a call of its own.
1767
+ function hasAzureFiveMinuteKeyMetrics(type) {
1768
+ var _a;
1769
+ return Boolean((_a = getAzureKeyMetrics(type || "")) === null || _a === void 0 ? void 0 : _a.metrics.some((metric) => {
1770
+ return metric.grain === exports.AZURE_FIVE_MINUTE_GRAIN;
1771
+ }));
1772
+ }
1318
1773
  /*
1319
1774
  * The stored name of an Azure Monitor metric, as the azure_monitor
1320
1775
  * receiver writes it: "azure_" + the name with spaces as underscores + "_"
@@ -1424,9 +1879,33 @@ function isAzureStreamedKeyMetricStoredName(type, storedMetricName) {
1424
1879
  const metric = getAzureKeyMetricOfStoredName(type, storedMetricName);
1425
1880
  return metric !== null && isAzureStreamedKeyMetric(type, metric);
1426
1881
  }
1882
+ /*
1883
+ * Who reports a metric when Google Cloud does not itself: the Ops Agent,
1884
+ * installed on a Compute Engine VM, which publishes what the hypervisor
1885
+ * cannot see - how full the VM's memory and disks are - under
1886
+ * agent.googleapis.com.
1887
+ */
1888
+ exports.GCP_OPS_AGENT = "ops-agent";
1889
+ // Google's instructions for installing the Ops Agent on a VM.
1890
+ exports.GCP_OPS_AGENT_INSTALL_URL = "https://docs.cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/installation";
1427
1891
  exports.GCP_ALIGNMENT_PERIOD_SECONDS = 60;
1428
- function gcp(metricType, aligner, unit, group) {
1429
- return { metricType, aligner, unit, group };
1892
+ function gcp(metricType, aligner, unit, group, options = {}) {
1893
+ return {
1894
+ metricType,
1895
+ aligner,
1896
+ unit,
1897
+ group,
1898
+ ...(options.readAs ? { readAs: options.readAs } : {}),
1899
+ ...(options.metricLabels ? { metricLabels: options.metricLabels } : {}),
1900
+ ...(options.reportedBy ? { reportedBy: options.reportedBy } : {}),
1901
+ };
1902
+ }
1903
+ // Reported by the Ops Agent: a VM's own memory or disks, in their "used" state.
1904
+ function opsAgent(metricType, group) {
1905
+ return gcp(metricType, "ALIGN_MEAN", "%", group, {
1906
+ metricLabels: { state: "used" },
1907
+ reportedBy: exports.GCP_OPS_AGENT,
1908
+ });
1430
1909
  }
1431
1910
  exports.GCP_KEY_METRICS = [
1432
1911
  {
@@ -1435,8 +1914,14 @@ exports.GCP_KEY_METRICS = [
1435
1914
  gcp("compute.googleapis.com/instance/cpu/utilization", "ALIGN_MEAN", "1", G.Compute),
1436
1915
  gcp("compute.googleapis.com/instance/network/received_bytes_count", "ALIGN_RATE", "By/s", G.Network),
1437
1916
  gcp("compute.googleapis.com/instance/network/sent_bytes_count", "ALIGN_RATE", "By/s", G.Network),
1917
+ /*
1918
+ * How full the VM's memory is, and each of its disks (a series per
1919
+ * device): only the Ops Agent on the VM sees it.
1920
+ */
1921
+ opsAgent("agent.googleapis.com/memory/percent_used", G.Memory),
1922
+ opsAgent("agent.googleapis.com/disk/percent_used", G.Storage),
1438
1923
  // Only an E2 instance reports it.
1439
- gcp("compute.googleapis.com/instance/memory/balloon/ram_used", "ALIGN_MEAN", "By", G.Memory),
1924
+ when(C.Kind, gcp("compute.googleapis.com/instance/memory/balloon/ram_used", "ALIGN_MEAN", "By", G.Memory)),
1440
1925
  gcp("compute.googleapis.com/instance/disk/read_bytes_count", "ALIGN_RATE", "By/s", G.Storage),
1441
1926
  gcp("compute.googleapis.com/instance/disk/write_bytes_count", "ALIGN_RATE", "By/s", G.Storage),
1442
1927
  gcp("compute.googleapis.com/instance/disk/read_ops_count", "ALIGN_RATE", "1/s", G.Storage),
@@ -1458,7 +1943,7 @@ exports.GCP_KEY_METRICS = [
1458
1943
  gcp("cloudsql.googleapis.com/database/network/received_bytes_count", "ALIGN_RATE", "By/s", G.Network),
1459
1944
  gcp("cloudsql.googleapis.com/database/network/sent_bytes_count", "ALIGN_RATE", "By/s", G.Network),
1460
1945
  // Only a replica reports it.
1461
- gcp("cloudsql.googleapis.com/database/replication/replica_lag", "ALIGN_MAX", "s", G.Replication),
1946
+ when(C.Replica, gcp("cloudsql.googleapis.com/database/replication/replica_lag", "ALIGN_MAX", "s", G.Replication)),
1462
1947
  ],
1463
1948
  },
1464
1949
  {
@@ -1523,21 +2008,27 @@ exports.GCP_KEY_METRICS = [
1523
2008
  gcp("pubsub.googleapis.com/subscription/sent_message_count", "ALIGN_RATE", "1/s", G.Traffic),
1524
2009
  gcp("pubsub.googleapis.com/subscription/ack_message_count", "ALIGN_RATE", "1/s", G.Traffic),
1525
2010
  gcp("pubsub.googleapis.com/subscription/expired_ack_deadlines_count", "ALIGN_RATE", "1/s", G.Errors),
1526
- gcp("pubsub.googleapis.com/subscription/dead_letter_message_count", "ALIGN_RATE", "1/s", G.Errors),
2011
+ // A subscription with a dead-letter topic's own.
2012
+ when(C.Setup, gcp("pubsub.googleapis.com/subscription/dead_letter_message_count", "ALIGN_RATE", "1/s", G.Errors)),
1527
2013
  ],
1528
2014
  },
1529
2015
  {
1530
2016
  resourceType: "pubsub_topic",
1531
2017
  metrics: [
1532
2018
  /*
1533
- * Deprecated by Google for a count of topic/message_sizes, which a
1534
- * read cannot take yet (it reads a distribution as one percentile):
1535
- * kept while the topic's headline reads it (CloudResourceHealth).
2019
+ * The messages published each minute: how many sizes the topic's
2020
+ * message size distribution holds, as Google says to count them
2021
+ * ("Apply a count aggregator on topic/message_sizes").
1536
2022
  */
1537
- gcp("pubsub.googleapis.com/topic/send_message_operation_count", "ALIGN_RATE", "1/s", G.Traffic),
2023
+ gcp("pubsub.googleapis.com/topic/message_sizes", "ALIGN_SUM", "1", G.Traffic, { readAs: "count" }),
1538
2024
  gcp("pubsub.googleapis.com/topic/send_request_count", "ALIGN_RATE", "1/s", G.Traffic),
1539
2025
  gcp("pubsub.googleapis.com/topic/message_sizes", "ALIGN_PERCENTILE_95", "By", G.Traffic),
1540
2026
  ],
2027
+ /*
2028
+ * topic/send_message_operation_count, which Google deprecates ("Apply a
2029
+ * count aggregator on topic/message_sizes instead"), is read no more:
2030
+ * the monitors built on it were moved to the count above (#9739).
2031
+ */
1541
2032
  },
1542
2033
  {
1543
2034
  resourceType: "redis_instance",
@@ -1551,7 +2042,8 @@ exports.GCP_KEY_METRICS = [
1551
2042
  gcp("redis.googleapis.com/stats/cpu_utilization", "ALIGN_RATE", "s{CPU}/s", G.Compute),
1552
2043
  gcp("redis.googleapis.com/stats/reject_connections_count", "ALIGN_RATE", "1/s", G.Errors),
1553
2044
  gcp("redis.googleapis.com/stats/network_traffic", "ALIGN_RATE", "By/s", G.Network),
1554
- gcp("redis.googleapis.com/replication/master/slaves/lag", "ALIGN_MAX", "s", G.Replication),
2045
+ // A Standard Tier instance's, with its read replicas.
2046
+ when(C.Tier, gcp("redis.googleapis.com/replication/master/slaves/lag", "ALIGN_MAX", "s", G.Replication)),
1555
2047
  ],
1556
2048
  },
1557
2049
  {
@@ -1618,32 +2110,96 @@ exports.GCP_KEY_METRICS = [
1618
2110
  },
1619
2111
  ];
1620
2112
  /*
1621
- * Every metric type read, once, with the first resource type it is listed
1622
- * under: a type two resource types report is one call.
2113
+ * The name a Google Cloud metric is stored under, as its readings, its
2114
+ * monitors and its resource's page know it: its metric type - or, for a
2115
+ * distribution read for its count (GcpKeyMetric.readAs), the type and
2116
+ * "_count": "pubsub.googleapis.com/topic/message_sizes_count", the way
2117
+ * Cloud Monitoring's PromQL names a distribution's count.
2118
+ */
2119
+ function getGcpStoredMetricName(metric) {
2120
+ return metric.readAs === "count"
2121
+ ? `${metric.metricType}_count`
2122
+ : metric.metricType;
2123
+ }
2124
+ /*
2125
+ * Every metric a read may ask a project for, once by the name it is stored
2126
+ * under - a metric type two resource types report is one call, and a
2127
+ * distribution read both for a percentile and for its count is two - with
2128
+ * the resource types it is listed under: the key metrics in the catalog's
2129
+ * order, then the deprecated ones still read (GcpTypeKeyMetrics.retired).
2130
+ */
2131
+ function getGcpReadMetrics() {
2132
+ const byName = new Map();
2133
+ const add = (metric, resourceType, isRetired) => {
2134
+ const storedName = getGcpStoredMetricName(metric);
2135
+ const known = byName.get(storedName);
2136
+ if (known) {
2137
+ if (!known.resourceTypes.includes(resourceType)) {
2138
+ known.resourceTypes.push(resourceType);
2139
+ }
2140
+ return;
2141
+ }
2142
+ byName.set(storedName, {
2143
+ ...metric,
2144
+ resourceType,
2145
+ resourceTypes: [resourceType],
2146
+ storedName,
2147
+ isRetired,
2148
+ });
2149
+ };
2150
+ for (const entry of exports.GCP_KEY_METRICS) {
2151
+ for (const metric of entry.metrics) {
2152
+ add(metric, entry.resourceType, false);
2153
+ }
2154
+ }
2155
+ for (const entry of exports.GCP_KEY_METRICS) {
2156
+ for (const retired of entry.retired || []) {
2157
+ add(retired.metric, entry.resourceType, true);
2158
+ }
2159
+ }
2160
+ return Array.from(byName.values());
2161
+ }
2162
+ /*
2163
+ * Every key metric read, once by the name it is stored under, with the
2164
+ * first resource type it is listed under: a type two resource types report
2165
+ * is one call.
1623
2166
  */
1624
2167
  function getGcpKeyMetricTypes() {
1625
2168
  const metrics = [];
1626
2169
  const seen = new Set();
1627
2170
  for (const entry of exports.GCP_KEY_METRICS) {
1628
2171
  for (const metric of entry.metrics) {
1629
- if (seen.has(metric.metricType)) {
2172
+ const storedName = getGcpStoredMetricName(metric);
2173
+ if (seen.has(storedName)) {
1630
2174
  continue;
1631
2175
  }
1632
- seen.add(metric.metricType);
2176
+ seen.add(storedName);
1633
2177
  metrics.push({ ...metric, resourceType: entry.resourceType });
1634
2178
  }
1635
2179
  }
1636
2180
  return metrics;
1637
2181
  }
1638
- // The resource types a metric type is listed under, in the catalog's order.
1639
- function getGcpResourceTypesOfMetric(metricType) {
1640
- return exports.GCP_KEY_METRICS.filter((entry) => {
1641
- return entry.metrics.some((metric) => {
1642
- return metric.metricType === metricType;
1643
- });
1644
- }).map((entry) => {
1645
- return entry.resourceType;
1646
- });
2182
+ /*
2183
+ * How many deprecated metrics a Google Cloud type is still read for, beside
2184
+ * its key metrics (GcpTypeKeyMetrics.retired): each a time series a
2185
+ * resource a read, which the cost estimate counts.
2186
+ */
2187
+ function getGcpRetiredMetricCount(resourceType) {
2188
+ var _a, _b;
2189
+ return (((_b = (_a = exports.GCP_KEY_METRICS.find((entry) => {
2190
+ return entry.resourceType === resourceType;
2191
+ })) === null || _a === void 0 ? void 0 : _a.retired) === null || _b === void 0 ? void 0 : _b.length) || 0);
2192
+ }
2193
+ /*
2194
+ * The resource types a metric is listed under, by the name it is stored
2195
+ * under (a metric type, for all but a distribution's count), in the
2196
+ * catalog's order - a deprecated one still read among them.
2197
+ */
2198
+ function getGcpResourceTypesOfMetric(storedName) {
2199
+ var _a;
2200
+ return (((_a = getGcpReadMetrics().find((metric) => {
2201
+ return metric.storedName === storedName;
2202
+ })) === null || _a === void 0 ? void 0 : _a.resourceTypes) || []);
1647
2203
  }
1648
2204
  // The CloudWatch namespace an AWS resource type is read from.
1649
2205
  function getAwsNamespaceOfType(type) {
@@ -1656,7 +2212,9 @@ function getAwsNamespaceOfType(type) {
1656
2212
  }
1657
2213
  /*
1658
2214
  * How many key metrics a resource type has, for the docs and the cost
1659
- * estimate. AWS takes a CloudFormation type or a namespace.
2215
+ * estimate. AWS takes a CloudFormation type or a namespace. A Google Cloud
2216
+ * type's Ops Agent metrics are not counted: they are read only from a VM
2217
+ * that runs the agent, and cost nothing where none does.
1660
2218
  */
1661
2219
  function getKeyMetricCount(provider, typeOrNamespace) {
1662
2220
  var _a, _b, _c;
@@ -1669,8 +2227,12 @@ function getKeyMetricCount(provider, typeOrNamespace) {
1669
2227
  }
1670
2228
  return (((_c = exports.GCP_KEY_METRICS.find((entry) => {
1671
2229
  return entry.resourceType === typeOrNamespace;
1672
- })) === null || _c === void 0 ? void 0 : _c.metrics.length) || 0);
2230
+ })) === null || _c === void 0 ? void 0 : _c.metrics.filter((metric) => {
2231
+ return !metric.reportedBy;
2232
+ }).length) || 0);
1673
2233
  }
2234
+ // Azure Monitor's five-minute grain, as seconds between two points.
2235
+ const AZURE_FIVE_MINUTE_GRAIN_SECONDS = 300;
1674
2236
  /*
1675
2237
  * The CloudWatch namespace and metric of a stored CloudWatch name
1676
2238
  * ("amazonaws.com/AWS/EC2/CPUUtilization" -> AWS/EC2, CPUUtilization),
@@ -1721,7 +2283,15 @@ function findAzureKeyMetric(type, storedMetricName) {
1721
2283
  if (rank < 0) {
1722
2284
  return null;
1723
2285
  }
1724
- return { name: metrics[rank].name, group: metrics[rank].group, rank };
2286
+ const metric = metrics[rank];
2287
+ return {
2288
+ name: metric.name,
2289
+ group: metric.group,
2290
+ rank,
2291
+ ...(metric.grain === exports.AZURE_FIVE_MINUTE_GRAIN
2292
+ ? { intervalSeconds: AZURE_FIVE_MINUTE_GRAIN_SECONDS }
2293
+ : {}),
2294
+ };
1725
2295
  }
1726
2296
  function findGcpKeyMetric(type, storedMetricName) {
1727
2297
  const wanted = (storedMetricName || "").trim().toLowerCase();
@@ -1729,13 +2299,13 @@ function findGcpKeyMetric(type, storedMetricName) {
1729
2299
  let found = null;
1730
2300
  for (const entry of exports.GCP_KEY_METRICS) {
1731
2301
  const rank = entry.metrics.findIndex((metric) => {
1732
- return metric.metricType.toLowerCase() === wanted;
2302
+ return getGcpStoredMetricName(metric).toLowerCase() === wanted;
1733
2303
  });
1734
2304
  if (rank < 0) {
1735
2305
  continue;
1736
2306
  }
1737
2307
  const reference = {
1738
- name: entry.metrics[rank].metricType,
2308
+ name: getGcpStoredMetricName(entry.metrics[rank]),
1739
2309
  group: entry.metrics[rank].group,
1740
2310
  rank,
1741
2311
  };