@oneuptime/common 14.1.0 → 14.2.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 (249) hide show
  1. package/Models/DatabaseModels/Alert.d.mts +1 -0
  2. package/Models/DatabaseModels/Alert.d.ts +1 -0
  3. package/Models/DatabaseModels/Alert.js +34 -0
  4. package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +2 -0
  5. package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +2 -0
  6. package/Models/DatabaseModels/AutoRemediationSuggestion.js +62 -0
  7. package/Models/DatabaseModels/Incident.d.mts +1 -0
  8. package/Models/DatabaseModels/Incident.d.ts +1 -0
  9. package/Models/DatabaseModels/Incident.js +35 -0
  10. package/Models/DatabaseModels/IncidentPostmortemActionItem.d.mts +31 -0
  11. package/Models/DatabaseModels/IncidentPostmortemActionItem.d.ts +31 -0
  12. package/Models/DatabaseModels/IncidentPostmortemActionItem.js +591 -0
  13. package/Models/DatabaseModels/IncidentPostmortemActionItem.mjs +3 -0
  14. package/Models/DatabaseModels/Index.js +2 -0
  15. package/Models/DatabaseModels/TelemetryIngestionKey.js +1 -1
  16. package/Types/AI/AIActionWords.d.mts +3 -1
  17. package/Types/AI/AIActionWords.d.ts +3 -1
  18. package/Types/AI/AIActionWords.js +70 -1
  19. package/Types/AI/AIActionWords.mjs +2 -0
  20. package/Types/AI/AIChatTypes.d.mts +2 -1
  21. package/Types/AI/AIChatTypes.d.ts +2 -1
  22. package/Types/AI/AIReadTableWords.d.mts +192 -0
  23. package/Types/AI/AIReadTableWords.d.ts +192 -0
  24. package/Types/AI/AIReadTableWords.js +368 -0
  25. package/Types/AI/AIReadTableWords.mjs +18 -0
  26. package/Types/AI/AiRunRefusal.d.mts +3 -0
  27. package/Types/AI/AiRunRefusal.d.ts +3 -0
  28. package/Types/AI/AiRunRefusal.js +22 -1
  29. package/Types/AI/ResourceAiAccessPermissions.js +7 -18
  30. package/Types/AuditLog/AuditLogActionLabel.js +19 -9
  31. package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -0
  32. package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -0
  33. package/Types/BaseDatabase/AggregationIntervalUtil.js +123 -16
  34. package/Types/Cloud/CloudResourceHealth.d.mts +30 -1
  35. package/Types/Cloud/CloudResourceHealth.d.ts +30 -1
  36. package/Types/Cloud/CloudResourceHealth.js +405 -13
  37. package/Types/Cloud/CloudResourceHealth.mjs +28 -0
  38. package/Types/DataObservability/DataCheckRefusals.d.mts +32 -0
  39. package/Types/DataObservability/DataCheckRefusals.d.ts +32 -0
  40. package/Types/DataObservability/DataCheckRefusals.js +77 -0
  41. package/Types/DataObservability/DataCheckRefusals.mjs +8 -0
  42. package/Types/Database/AccessControl/PermissionScopeNarrowing.js +4 -0
  43. package/Types/Date.d.mts +2 -0
  44. package/Types/Date.d.ts +2 -0
  45. package/Types/Date.js +22 -0
  46. package/Types/DateLanguage.d.mts +2 -0
  47. package/Types/DateLanguage.d.ts +2 -0
  48. package/Types/DateLanguage.js +8 -5
  49. package/Types/Email/EmailTemplateType.d.mts +1 -0
  50. package/Types/Email/EmailTemplateType.d.ts +1 -0
  51. package/Types/Email/EmailTemplateType.js +2 -0
  52. package/Types/Exception/EgressGuardException.js +1 -1
  53. package/Types/Exception/ErrorMessageRule.d.mts +1 -0
  54. package/Types/Exception/ErrorMessageRule.d.ts +1 -0
  55. package/Types/Exception/ErrorMessageRule.js +67 -13
  56. package/Types/Exception/ErrorMessageRule.mjs +1 -0
  57. package/Types/Exception/ExceptionMessages.d.mts +2 -0
  58. package/Types/Exception/ExceptionMessages.d.ts +2 -0
  59. package/Types/Exception/ExceptionMessages.js +2 -0
  60. package/Types/Incident/PostmortemActionItemStatus.d.mts +17 -0
  61. package/Types/Incident/PostmortemActionItemStatus.d.ts +17 -0
  62. package/Types/Incident/PostmortemActionItemStatus.js +74 -0
  63. package/Types/Incident/PostmortemActionItemStatus.mjs +5 -0
  64. package/Types/JSONFunctions.js +10 -3
  65. package/Types/Link.d.mts +1 -0
  66. package/Types/Link.d.ts +1 -0
  67. package/Types/MeaningKeys.d.mts +4 -0
  68. package/Types/MeaningKeys.d.ts +4 -0
  69. package/Types/MeaningKeys.js +74 -0
  70. package/Types/MeaningKeys.mjs +5 -0
  71. package/Types/Monitor/WhoIsTold.d.mts +3 -0
  72. package/Types/Monitor/WhoIsTold.d.ts +3 -0
  73. package/Types/Monitor/WhoIsTold.js +63 -13
  74. package/Types/NoBreakSpaces.d.mts +16 -0
  75. package/Types/NoBreakSpaces.d.ts +16 -0
  76. package/Types/NoBreakSpaces.js +419 -0
  77. package/Types/NoBreakSpaces.mjs +9 -0
  78. package/Types/NotificationRule/PagingLadder.d.mts +12 -0
  79. package/Types/NotificationRule/PagingLadder.d.ts +12 -0
  80. package/Types/NotificationRule/PagingLadder.js +159 -11
  81. package/Types/NotificationRule/PagingLadder.mjs +3 -0
  82. package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.mts +3 -0
  83. package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.ts +3 -0
  84. package/Types/OnCallDutyPolicy/OnCallPageRecordGone.js +42 -0
  85. package/Types/OnCallDutyPolicy/OnCallPageRecordGone.mjs +4 -0
  86. package/Types/OnCallDutyPolicy/OnCallPageWords.d.mts +6 -2
  87. package/Types/OnCallDutyPolicy/OnCallPageWords.d.ts +6 -2
  88. package/Types/OnCallDutyPolicy/OnCallPageWords.js +21 -20
  89. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +4 -0
  90. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +4 -0
  91. package/Types/OnCallDutyPolicy/OnCallPersonPage.js +125 -1
  92. package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +1 -0
  93. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +2 -0
  94. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +2 -0
  95. package/Types/OnCallDutyPolicy/OnCallTestPage.js +12 -0
  96. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
  97. package/Types/OpenStack/OpenStackCapacity.js +12 -5
  98. package/Types/Permission.d.mts +4 -0
  99. package/Types/Permission.d.ts +4 -0
  100. package/Types/Permission.js +64 -8
  101. package/Types/Product/ProductUsage.js +2 -1
  102. package/Types/Product/ProjectProductsAnswer.js +2 -1
  103. package/Types/ResourceAiAgent/AiResourceType.d.mts +1 -0
  104. package/Types/ResourceAiAgent/AiResourceType.d.ts +1 -0
  105. package/Types/ResourceAiAgent/AiResourceType.js +12 -0
  106. package/Types/Rum/ProductAnalyticsEventReads.js +10 -1
  107. package/Types/Rum/ProductAnalyticsEvents.js +13 -1
  108. package/Types/Rum/SessionReplayCustomEvents.d.mts +4 -1
  109. package/Types/Rum/SessionReplayCustomEvents.d.ts +4 -1
  110. package/Types/Rum/SessionReplayCustomEvents.js +12 -0
  111. package/Types/Rum/SessionReplayCustomEvents.mjs +1 -0
  112. package/Types/SetupHealth/SetupHealth.d.mts +1 -0
  113. package/Types/SetupHealth/SetupHealth.d.ts +1 -0
  114. package/Types/SetupHealth/SetupHealth.js +13 -5
  115. package/Types/StatusPage/DefaultStatusNames.d.mts +11 -3
  116. package/Types/StatusPage/DefaultStatusNames.d.ts +11 -3
  117. package/Types/StatusPage/DefaultStatusNames.js +74 -28
  118. package/Types/StatusPage/DefaultStatusNames.mjs +9 -2
  119. package/Types/StatusPage/StateChangeNoteMessage.d.mts +3 -2
  120. package/Types/StatusPage/StateChangeNoteMessage.d.ts +3 -2
  121. package/Types/StatusPage/StateChangeNoteMessage.js +16 -13
  122. package/Types/Telemetry/TelemetryIngestionKeyType.js +7 -6
  123. package/Types/Translator.d.mts +1 -0
  124. package/Types/Translator.d.ts +1 -0
  125. package/Types/Translator.js +100 -19
  126. package/Types/Translator.mjs +1 -0
  127. package/Types/UserSession/SessionLength.d.mts +33 -0
  128. package/Types/UserSession/SessionLength.d.ts +33 -0
  129. package/Types/UserSession/SessionLength.js +134 -5
  130. package/Types/UserSession/SessionLength.mjs +5 -0
  131. package/Types/Workflow/WorkflowStatus.js +21 -10
  132. package/Utils/AI/InvestigationReport.js +2 -2
  133. package/Utils/API.d.mts +0 -11
  134. package/Utils/API.d.ts +0 -11
  135. package/Utils/API.js +0 -432
  136. package/Utils/AiRemediation/Resource/ResourceCommandPolicy.js +2 -2
  137. package/Utils/AiRemediation/VerifiedFixRunbook.d.mts +39 -0
  138. package/Utils/AiRemediation/VerifiedFixRunbook.d.ts +39 -0
  139. package/Utils/AiRemediation/VerifiedFixRunbook.js +231 -0
  140. package/Utils/AiRemediation/VerifiedFixRunbook.mjs +10 -0
  141. package/Utils/Dashboard/DashboardWidgetSorts.js +11 -2
  142. package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +2 -1
  143. package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +2 -1
  144. package/Utils/Dashboard/MonitorListWidgetFormat.js +5 -3
  145. package/Utils/DefaultRecordNames.d.mts +6 -0
  146. package/Utils/DefaultRecordNames.d.ts +6 -0
  147. package/Utils/DefaultRecordNames.js +122 -0
  148. package/Utils/DefaultRecordNames.mjs +6 -0
  149. package/Utils/Grok/Grok.js +7 -4
  150. package/Utils/Incident/PostmortemActionItemCodeTask.d.mts +20 -0
  151. package/Utils/Incident/PostmortemActionItemCodeTask.d.ts +20 -0
  152. package/Utils/Incident/PostmortemActionItemCodeTask.js +107 -0
  153. package/Utils/Incident/PostmortemActionItemCodeTask.mjs +10 -0
  154. package/Utils/Incident/PostmortemActionItemMarkdown.d.mts +39 -0
  155. package/Utils/Incident/PostmortemActionItemMarkdown.d.ts +39 -0
  156. package/Utils/Incident/PostmortemActionItemMarkdown.js +118 -0
  157. package/Utils/Incident/PostmortemActionItemMarkdown.mjs +12 -0
  158. package/Utils/Incident/PostmortemNoteActionItems.d.mts +29 -0
  159. package/Utils/Incident/PostmortemNoteActionItems.d.ts +29 -0
  160. package/Utils/Incident/PostmortemNoteActionItems.js +544 -0
  161. package/Utils/Incident/PostmortemNoteActionItems.mjs +7 -0
  162. package/Utils/LookupTable.d.mts +3 -0
  163. package/Utils/LookupTable.d.ts +3 -0
  164. package/Utils/LookupTable.js +61 -0
  165. package/Utils/LookupTable.mjs +3 -0
  166. package/Utils/Markdown/LinkReferenceDefinitions.d.mts +2 -0
  167. package/Utils/Markdown/LinkReferenceDefinitions.d.ts +2 -0
  168. package/Utils/Markdown/LinkReferenceDefinitions.js +101 -1
  169. package/Utils/Markdown/LinkReferenceDefinitions.mjs +2 -0
  170. package/Utils/Markdown/OverLongText.js +296 -2
  171. package/Utils/Markdown/SlowMarkdown.d.mts +1 -0
  172. package/Utils/Markdown/SlowMarkdown.d.ts +1 -0
  173. package/Utils/Markdown/SlowMarkdown.js +354 -4
  174. package/Utils/Markdown/SlowMarkdown.mjs +1 -0
  175. package/Utils/Metrics/MetricFormulaEvaluator.js +10 -4
  176. package/Utils/Metrics/MetricSeriesFingerprint.js +13 -4
  177. package/Utils/Metrics/MetricSeriesScope.d.mts +5 -0
  178. package/Utils/Metrics/MetricSeriesScope.d.ts +5 -0
  179. package/Utils/Metrics/MetricSeriesScope.js +5 -1
  180. package/Utils/Monitor/MonitorRootCauseWording.d.mts +3 -0
  181. package/Utils/Monitor/MonitorRootCauseWording.d.ts +3 -0
  182. package/Utils/Monitor/MonitorRootCauseWording.js +100 -11
  183. package/Utils/Monitor/ProbeAgreementRule.d.mts +10 -0
  184. package/Utils/Monitor/ProbeAgreementRule.d.ts +10 -0
  185. package/Utils/Monitor/ProbeAgreementRule.js +58 -0
  186. package/Utils/Monitor/ProbeAgreementRule.mjs +3 -0
  187. package/Utils/Monitor/ProbeFailureReading.d.mts +4 -0
  188. package/Utils/Monitor/ProbeFailureReading.d.ts +4 -0
  189. package/Utils/Monitor/ProbeFailureReading.js +30 -1
  190. package/Utils/Monitor/ProbeFailureReading.mjs +1 -0
  191. package/Utils/Monitor/RequestFailureDescriptions.d.mts +61 -0
  192. package/Utils/Monitor/RequestFailureDescriptions.d.ts +61 -0
  193. package/Utils/Monitor/RequestFailureDescriptions.js +252 -0
  194. package/Utils/Monitor/RequestFailureDescriptions.mjs +6 -0
  195. package/Utils/PromQL/PromQLEngine.js +18 -9
  196. package/Utils/PromQL/PromQLFunctionEvaluators.js +114 -58
  197. package/Utils/PromQL/PromQLLabelOrder.d.mts +8 -0
  198. package/Utils/PromQL/PromQLLabelOrder.d.ts +8 -0
  199. package/Utils/PromQL/PromQLLabelOrder.js +212 -0
  200. package/Utils/PromQL/PromQLLabelOrder.mjs +6 -0
  201. package/Utils/PromQL/PromQLLabels.js +4 -3
  202. package/Utils/PromQL/PromQLMetricNames.js +8 -2
  203. package/Utils/PromQL/PromQLParser.js +11 -6
  204. package/Utils/PromQL/PromQLRegex.d.mts +11 -0
  205. package/Utils/PromQL/PromQLRegex.d.ts +11 -0
  206. package/Utils/PromQL/PromQLRegex.js +990 -50
  207. package/Utils/PromQL/PromQLRegex.mjs +3 -0
  208. package/Utils/PromQL/PrometheusResponse.js +3 -1
  209. package/Utils/PromQL/RE2CharacterClass.d.mts +24 -0
  210. package/Utils/PromQL/RE2CharacterClass.d.ts +24 -0
  211. package/Utils/PromQL/RE2CharacterClass.js +532 -0
  212. package/Utils/PromQL/RE2CharacterClass.mjs +16 -0
  213. package/Utils/RequestFailedDetailsUtil.d.mts +15 -0
  214. package/Utils/RequestFailedDetailsUtil.d.ts +15 -0
  215. package/Utils/RequestFailedDetailsUtil.js +452 -0
  216. package/Utils/RequestFailedDetailsUtil.mjs +2 -0
  217. package/Utils/Rum/UrlScrubber.d.mts +1 -1
  218. package/Utils/Rum/UrlScrubber.d.ts +1 -1
  219. package/Utils/Rum/UrlScrubber.js +10 -4
  220. package/Utils/Rum/UserFlow.js +22 -4
  221. package/Utils/SecurityCase/SecurityOverviewMetrics.d.mts +11 -1
  222. package/Utils/SecurityCase/SecurityOverviewMetrics.d.ts +11 -1
  223. package/Utils/SecurityCase/SecurityOverviewMetrics.js +99 -17
  224. package/Utils/SecurityCase/SecurityOverviewMetrics.mjs +3 -0
  225. package/Utils/Sms/OnCallPageSms.d.mts +2 -0
  226. package/Utils/Sms/OnCallPageSms.d.ts +2 -0
  227. package/Utils/Sms/OnCallPageSms.js +3 -1
  228. package/Utils/StateListType.d.mts +11 -0
  229. package/Utils/StateListType.d.ts +11 -0
  230. package/Utils/StateListType.js +21 -0
  231. package/Utils/StateListType.mjs +2 -0
  232. package/Utils/StateOrder.d.mts +8 -11
  233. package/Utils/StateOrder.d.ts +8 -11
  234. package/Utils/StateOrder.js +49 -84
  235. package/Utils/StateOrder.mjs +2 -0
  236. package/Utils/Suggestions/ActionItemCodeTaskSuggestion.d.mts +9 -0
  237. package/Utils/Suggestions/ActionItemCodeTaskSuggestion.d.ts +9 -0
  238. package/Utils/Suggestions/ActionItemCodeTaskSuggestion.js +25 -0
  239. package/Utils/Suggestions/ActionItemCodeTaskSuggestion.mjs +2 -0
  240. package/Utils/Suggestions/VerifiedFixRunbookSuggestion.d.mts +5 -0
  241. package/Utils/Suggestions/VerifiedFixRunbookSuggestion.d.ts +5 -0
  242. package/Utils/Suggestions/VerifiedFixRunbookSuggestion.js +39 -0
  243. package/Utils/Suggestions/VerifiedFixRunbookSuggestion.mjs +2 -0
  244. package/Utils/Syslog/SyslogMessageParser.js +16 -6
  245. package/Utils/Telemetry/HeartbeatAvailability.js +16 -21
  246. package/Utils/ValueFormatter.d.mts +1 -0
  247. package/Utils/ValueFormatter.d.ts +1 -0
  248. package/Utils/ValueFormatter.js +258 -18
  249. package/package.json +1 -1
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.REASON_FAILED_CONNECTIONS = exports.REASON_FAILED_INVOCATIONS = exports.REASON_FAILED_DELIVERIES = exports.REASON_FAILED_RUNS = exports.REASON_FAILED_EXECUTIONS = exports.REASON_DELIVERIES_FAILING = exports.REASON_CONSUMERS_BEHIND = exports.REASON_OLDEST_MESSAGE_WAITING = exports.REASON_DDOS = exports.REASON_NO_CONTROLLER = exports.REASON_CLUSTER_RED = exports.REASON_PORT_ALLOCATION_ERRORS = exports.REASON_FIREWALL_HEALTH = exports.REASON_PROBES_FAILING = exports.REASON_AVAILABILITY_LOW = exports.REASON_IO_LIMIT = exports.REASON_PORTS_HIGH = exports.REASON_CAPACITY_HIGH = exports.REASON_SESSIONS_HIGH = exports.REASON_SERVER_LOAD_HIGH = exports.REASON_REQUEST_UNITS_HIGH = exports.REASON_DTU_HIGH = exports.REASON_STORAGE_FULL = exports.REASON_MEMORY_USED = exports.REASON_CPU_HIGH = exports.REASON_THROTTLED = exports.REASON_UNHEALTHY_HOSTS = exports.REASON_INVOCATIONS_FAILED = exports.REASON_REQUESTS_FAILED = exports.REASON_HEALTH_CHECK_FAILING = exports.REASON_TUNNELS_DOWN = exports.REASON_NOT_AVAILABLE = exports.REASON_STATUS_CHECKS_FAILING = exports.CLOUD_STATUS_REPORTING = exports.CLOUD_STATUS_NOT_REPORTING = exports.CLOUD_STATUS_UNHEALTHY = exports.CLOUD_STATUS_DEGRADED = exports.CLOUD_STATUS_HEALTHY = exports.CloudHealthSeverity = exports.CLOUD_BACKLOG_AGE_SECONDS = exports.CLOUD_AVAILABILITY_DOWN_PERCENT = exports.CLOUD_AVAILABILITY_LOW_PERCENT = exports.CLOUD_STORAGE_FULL_PERCENT = exports.CLOUD_STORAGE_HIGH_PERCENT = exports.CLOUD_MEMORY_HIGH_PERCENT = exports.CLOUD_CPU_HIGH_PERCENT = exports.CLOUD_FAILED_SHARE_CRITICAL_PERCENT = exports.CLOUD_FAILED_SHARE_WARNING_PERCENT = exports.CLOUD_HEALTH_MIN_REQUESTS = exports.CLOUD_READINGS_STALE_MS = void 0;
4
- exports.CLOUD_HEADLINE_READINGS = exports.HEADLINE_SERVER_LOAD = exports.HEADLINE_AVAILABILITY = exports.HEADLINE_UNHEALTHY_HOSTS = exports.HEADLINE_OLDEST_MESSAGE = exports.HEADLINE_MESSAGES_WAITING = exports.HEADLINE_DURATION = exports.HEADLINE_RESPONSE_TIME = exports.HEADLINE_LATENCY = exports.HEADLINE_ERRORS = exports.HEADLINE_INVOCATIONS = exports.HEADLINE_REQUESTS = exports.HEADLINE_CONNECTIONS = exports.HEADLINE_FREE_STORAGE = exports.HEADLINE_STORAGE_USED = exports.HEADLINE_MEMORY = exports.HEADLINE_CPU = exports.CLOUD_HEALTH_RULES = exports.REASON_RESTARTS = exports.REASON_SERVER_ERRORS = exports.REASON_DEAD_LETTERED = exports.REASON_DEADLOCKS = void 0;
4
+ exports.CLOUD_HEADLINE_READINGS = exports.HEADLINE_PORTS_USED = exports.HEADLINE_QUEUE_LENGTH = exports.HEADLINE_THROTTLED = exports.HEADLINE_HEALTH = exports.HEADLINE_FAILED_RUNS = exports.HEADLINE_RUNS = exports.HEADLINE_CAPACITY = exports.HEADLINE_INSTANCES = exports.HEADLINE_WRITE_LATENCY = exports.HEADLINE_READ_LATENCY = exports.HEADLINE_WRITE_OPERATIONS = exports.HEADLINE_READ_OPERATIONS = exports.HEADLINE_SESSIONS = exports.HEADLINE_REQUEST_UNITS = exports.HEADLINE_RESTARTS = exports.HEADLINE_PODS_READY = exports.HEADLINE_DEAD_LETTERED = exports.HEADLINE_MESSAGES_OUT = exports.HEADLINE_MESSAGES_IN = exports.HEADLINE_HEALTHY_BACKENDS = exports.HEADLINE_THROUGHPUT = exports.HEADLINE_TRAFFIC = exports.HEADLINE_FREE_MEMORY = exports.HEADLINE_DISK_WRITE = exports.HEADLINE_DISK_READ = exports.HEADLINE_NETWORK_OUT = exports.HEADLINE_NETWORK_IN = exports.HEADLINE_SERVER_LOAD = exports.HEADLINE_AVAILABILITY = exports.HEADLINE_UNHEALTHY_HOSTS = exports.HEADLINE_OLDEST_MESSAGE = exports.HEADLINE_MESSAGES_WAITING = exports.HEADLINE_DURATION = exports.HEADLINE_RESPONSE_TIME = exports.HEADLINE_LATENCY = exports.HEADLINE_ERRORS = exports.HEADLINE_INVOCATIONS = exports.HEADLINE_REQUESTS = exports.HEADLINE_CONNECTIONS = exports.HEADLINE_FREE_STORAGE = exports.HEADLINE_STORAGE_USED = exports.HEADLINE_MEMORY = exports.HEADLINE_CPU = exports.CLOUD_HEALTH_RULES = exports.REASON_RESTARTS = exports.REASON_SERVER_ERRORS = exports.REASON_DEAD_LETTERED = exports.REASON_DEADLOCKS = void 0;
5
5
  exports.getCloudReadingKey = getCloudReadingKey;
6
6
  exports.toCloudDate = toCloudDate;
7
7
  exports.readCloudResourceReadings = readCloudResourceReadings;
8
8
  exports.formatCloudPercent = formatCloudPercent;
9
9
  exports.getCloudBacklogText = getCloudBacklogText;
10
+ exports.isCloudHeadlineExpected = isCloudHeadlineExpected;
10
11
  exports.getCloudReadingPeriodSeconds = getCloudReadingPeriodSeconds;
11
12
  exports.hasCloudHealthRules = hasCloudHealthRules;
12
13
  exports.getCloudHeadlineReadings = getCloudHeadlineReadings;
@@ -1012,8 +1013,32 @@ exports.CLOUD_HEALTH_RULES = [
1012
1013
  ],
1013
1014
  },
1014
1015
  ];
1015
- function headline(key, label, format) {
1016
- return { key, label, format };
1016
+ function headline(key, label, format, options = {}) {
1017
+ return options.onlySome
1018
+ ? { key, label, format, onlySome: true }
1019
+ : { key, label, format };
1020
+ }
1021
+ /*
1022
+ * The formats of a level - how much, how many, how long, right now - which
1023
+ * every read of a resource that reports the metric brings. A sum or a rate
1024
+ * over the period may be left out when it is zero (CloudWatch writes no 5xx
1025
+ * count for a period without one), so a missing one says nothing.
1026
+ */
1027
+ const CLOUD_LEVEL_FORMATS = new Set([
1028
+ "percent",
1029
+ "ratio",
1030
+ "bytes",
1031
+ "count",
1032
+ "seconds",
1033
+ "milliseconds",
1034
+ ]);
1035
+ /*
1036
+ * Whether a fresh read that did not bring this reading says something: a
1037
+ * level every resource of the type reports, so its page says "Not
1038
+ * reported" rather than leaving it out without a word.
1039
+ */
1040
+ function isCloudHeadlineExpected(headline) {
1041
+ return !headline.onlySome && CLOUD_LEVEL_FORMATS.has(headline.format);
1017
1042
  }
1018
1043
  exports.HEADLINE_CPU = (0, Translator_1.translationKey)("CPU");
1019
1044
  exports.HEADLINE_MEMORY = (0, Translator_1.translationKey)("Memory");
@@ -1031,11 +1056,67 @@ exports.HEADLINE_OLDEST_MESSAGE = (0, Translator_1.translationKey)("Oldest messa
1031
1056
  exports.HEADLINE_UNHEALTHY_HOSTS = (0, Translator_1.translationKey)("Unhealthy hosts");
1032
1057
  exports.HEADLINE_AVAILABILITY = (0, Translator_1.translationKey)("Availability");
1033
1058
  exports.HEADLINE_SERVER_LOAD = (0, Translator_1.translationKey)("Server load");
1059
+ exports.HEADLINE_NETWORK_IN = (0, Translator_1.translationKey)("Network in");
1060
+ exports.HEADLINE_NETWORK_OUT = (0, Translator_1.translationKey)("Network out");
1061
+ exports.HEADLINE_DISK_READ = (0, Translator_1.translationKey)("Disk read");
1062
+ exports.HEADLINE_DISK_WRITE = (0, Translator_1.translationKey)("Disk write");
1063
+ exports.HEADLINE_FREE_MEMORY = (0, Translator_1.translationKey)("Free memory");
1064
+ exports.HEADLINE_TRAFFIC = (0, Translator_1.translationKey)("Traffic");
1065
+ exports.HEADLINE_THROUGHPUT = (0, Translator_1.translationKey)("Throughput");
1066
+ exports.HEADLINE_HEALTHY_BACKENDS = (0, Translator_1.translationKey)("Healthy backends");
1067
+ exports.HEADLINE_MESSAGES_IN = (0, Translator_1.translationKey)("Messages in");
1068
+ exports.HEADLINE_MESSAGES_OUT = (0, Translator_1.translationKey)("Messages out");
1069
+ exports.HEADLINE_DEAD_LETTERED = (0, Translator_1.translationKey)("Dead-lettered messages");
1070
+ exports.HEADLINE_PODS_READY = (0, Translator_1.translationKey)("Pods ready");
1071
+ exports.HEADLINE_RESTARTS = (0, Translator_1.translationKey)("Restarts");
1072
+ exports.HEADLINE_REQUEST_UNITS = (0, Translator_1.translationKey)("Request units");
1073
+ exports.HEADLINE_SESSIONS = (0, Translator_1.translationKey)("Sessions");
1074
+ exports.HEADLINE_READ_OPERATIONS = (0, Translator_1.translationKey)("Read operations");
1075
+ exports.HEADLINE_WRITE_OPERATIONS = (0, Translator_1.translationKey)("Write operations");
1076
+ exports.HEADLINE_READ_LATENCY = (0, Translator_1.translationKey)("Read latency");
1077
+ exports.HEADLINE_WRITE_LATENCY = (0, Translator_1.translationKey)("Write latency");
1078
+ exports.HEADLINE_INSTANCES = (0, Translator_1.translationKey)("Instances");
1079
+ exports.HEADLINE_CAPACITY = (0, Translator_1.translationKey)("Capacity");
1080
+ exports.HEADLINE_RUNS = (0, Translator_1.translationKey)("Runs");
1081
+ exports.HEADLINE_FAILED_RUNS = (0, Translator_1.translationKey)("Failed runs");
1082
+ exports.HEADLINE_HEALTH = (0, Translator_1.translationKey)("Health");
1083
+ exports.HEADLINE_THROTTLED = (0, Translator_1.translationKey)("Throttled");
1084
+ exports.HEADLINE_QUEUE_LENGTH = (0, Translator_1.translationKey)("Queue length");
1085
+ exports.HEADLINE_PORTS_USED = (0, Translator_1.translationKey)("Outbound ports used");
1086
+ /*
1087
+ * What each type's page leads with, in the order its tiles are drawn: what
1088
+ * a person reads first about one of its kind - a machine's CPU, memory,
1089
+ * network and disks; a database's CPU, storage and connections; a load
1090
+ * balancer's traffic and backends; an app's requests, response time and
1091
+ * errors - from the key metrics its connection reads (CloudKeyMetrics).
1092
+ */
1034
1093
  exports.CLOUD_HEADLINE_READINGS = [
1094
+ // ---- AWS --------------------------------------------------------------
1035
1095
  {
1036
1096
  provider: AWS,
1037
1097
  types: ["AWS::EC2::Instance"],
1038
- readings: [headline("aws/ec2/cpuutilization", exports.HEADLINE_CPU, "percent")],
1098
+ readings: [
1099
+ headline("aws/ec2/cpuutilization", exports.HEADLINE_CPU, "percent"),
1100
+ headline("aws/ec2/networkin", exports.HEADLINE_NETWORK_IN, "bytesPerPeriod"),
1101
+ headline("aws/ec2/networkout", exports.HEADLINE_NETWORK_OUT, "bytesPerPeriod"),
1102
+ ],
1103
+ },
1104
+ {
1105
+ provider: AWS,
1106
+ types: ["AWS::EC2::Volume"],
1107
+ readings: [
1108
+ headline("aws/ebs/volumereadops", exports.HEADLINE_READ_OPERATIONS, "perPeriod"),
1109
+ headline("aws/ebs/volumewriteops", exports.HEADLINE_WRITE_OPERATIONS, "perPeriod"),
1110
+ headline("aws/ebs/volumequeuelength", exports.HEADLINE_QUEUE_LENGTH, "count"),
1111
+ ],
1112
+ },
1113
+ {
1114
+ provider: AWS,
1115
+ types: ["AWS::EC2::NatGateway"],
1116
+ readings: [
1117
+ headline("aws/natgateway/activeconnectioncount", exports.HEADLINE_CONNECTIONS, "count"),
1118
+ headline("aws/natgateway/bytesouttodestination", exports.HEADLINE_TRAFFIC, "bytesPerPeriod"),
1119
+ ],
1039
1120
  },
1040
1121
  {
1041
1122
  provider: AWS,
@@ -1048,10 +1129,26 @@ exports.CLOUD_HEADLINE_READINGS = [
1048
1129
  },
1049
1130
  {
1050
1131
  provider: AWS,
1132
+ /*
1133
+ * An Application Load Balancer and a Network Load Balancer are one
1134
+ * type: each reports its own namespace's metrics, never the other's.
1135
+ */
1051
1136
  types: ["AWS::ElasticLoadBalancingV2::LoadBalancer"],
1052
1137
  readings: [
1053
- headline("aws/applicationelb/requestcount", exports.HEADLINE_REQUESTS, "perPeriod"),
1054
- headline("aws/applicationelb/targetresponsetime", exports.HEADLINE_RESPONSE_TIME, "seconds"),
1138
+ headline("aws/applicationelb/requestcount", exports.HEADLINE_REQUESTS, "perPeriod", { onlySome: true }),
1139
+ headline("aws/applicationelb/targetresponsetime", exports.HEADLINE_RESPONSE_TIME, "seconds", { onlySome: true }),
1140
+ headline("aws/applicationelb/httpcode_target_5xx_count", exports.HEADLINE_ERRORS, "perPeriod", { onlySome: true }),
1141
+ headline("aws/networkelb/activeflowcount", exports.HEADLINE_CONNECTIONS, "count", { onlySome: true }),
1142
+ headline("aws/networkelb/processedbytes", exports.HEADLINE_TRAFFIC, "bytesPerPeriod", { onlySome: true }),
1143
+ ],
1144
+ },
1145
+ {
1146
+ provider: AWS,
1147
+ types: ["AWS::CloudFront::Distribution"],
1148
+ readings: [
1149
+ headline("aws/cloudfront/requests", exports.HEADLINE_REQUESTS, "perPeriod"),
1150
+ headline("aws/cloudfront/5xxerrorrate", exports.HEADLINE_ERRORS, "percent"),
1151
+ headline("aws/cloudfront/bytesdownloaded", exports.HEADLINE_TRAFFIC, "bytesPerPeriod"),
1055
1152
  ],
1056
1153
  },
1057
1154
  {
@@ -1069,6 +1166,16 @@ exports.CLOUD_HEADLINE_READINGS = [
1069
1166
  headline("aws/lambda/invocations", exports.HEADLINE_INVOCATIONS, "perPeriod"),
1070
1167
  headline("aws/lambda/errors", exports.HEADLINE_ERRORS, "perPeriod"),
1071
1168
  headline("aws/lambda/duration", exports.HEADLINE_DURATION, "milliseconds"),
1169
+ headline("aws/lambda/throttles", exports.HEADLINE_THROTTLED, "perPeriod"),
1170
+ ],
1171
+ },
1172
+ {
1173
+ provider: AWS,
1174
+ types: ["AWS::StepFunctions::StateMachine"],
1175
+ readings: [
1176
+ headline("aws/states/executionsstarted", exports.HEADLINE_RUNS, "perPeriod"),
1177
+ headline("aws/states/executionsfailed", exports.HEADLINE_FAILED_RUNS, "perPeriod"),
1178
+ headline("aws/states/executiontime", exports.HEADLINE_DURATION, "milliseconds"),
1072
1179
  ],
1073
1180
  },
1074
1181
  {
@@ -1076,8 +1183,14 @@ exports.CLOUD_HEADLINE_READINGS = [
1076
1183
  types: ["AWS::RDS::DBInstance"],
1077
1184
  readings: [
1078
1185
  headline("aws/rds/cpuutilization", exports.HEADLINE_CPU, "percent"),
1079
- headline("aws/rds/freestoragespace", exports.HEADLINE_FREE_STORAGE, "bytes"),
1186
+ // An Aurora instance keeps its data in its cluster's volume.
1187
+ headline("aws/rds/freestoragespace", exports.HEADLINE_FREE_STORAGE, "bytes", {
1188
+ onlySome: true,
1189
+ }),
1080
1190
  headline("aws/rds/databaseconnections", exports.HEADLINE_CONNECTIONS, "count"),
1191
+ headline("aws/rds/freeablememory", exports.HEADLINE_FREE_MEMORY, "bytes"),
1192
+ headline("aws/rds/readlatency", exports.HEADLINE_READ_LATENCY, "seconds"),
1193
+ headline("aws/rds/writelatency", exports.HEADLINE_WRITE_LATENCY, "seconds"),
1081
1194
  ],
1082
1195
  },
1083
1196
  {
@@ -1088,6 +1201,24 @@ exports.CLOUD_HEADLINE_READINGS = [
1088
1201
  headline("aws/rds/databaseconnections", exports.HEADLINE_CONNECTIONS, "count"),
1089
1202
  ],
1090
1203
  },
1204
+ {
1205
+ provider: AWS,
1206
+ types: ["AWS::DocDB::DBInstance", "AWS::DocDB::DBCluster"],
1207
+ readings: [
1208
+ headline("aws/docdb/cpuutilization", exports.HEADLINE_CPU, "percent"),
1209
+ headline("aws/docdb/databaseconnections", exports.HEADLINE_CONNECTIONS, "count"),
1210
+ headline("aws/docdb/freeablememory", exports.HEADLINE_FREE_MEMORY, "bytes"),
1211
+ ],
1212
+ },
1213
+ {
1214
+ provider: AWS,
1215
+ types: ["AWS::Redshift::Cluster"],
1216
+ readings: [
1217
+ headline("aws/redshift/cpuutilization", exports.HEADLINE_CPU, "percent"),
1218
+ headline("aws/redshift/percentagediskspaceused", exports.HEADLINE_STORAGE_USED, "percent"),
1219
+ headline("aws/redshift/databaseconnections", exports.HEADLINE_CONNECTIONS, "count"),
1220
+ ],
1221
+ },
1091
1222
  {
1092
1223
  provider: AWS,
1093
1224
  types: [
@@ -1097,7 +1228,8 @@ exports.CLOUD_HEADLINE_READINGS = [
1097
1228
  ],
1098
1229
  readings: [
1099
1230
  headline("aws/elasticache/cpuutilization", exports.HEADLINE_CPU, "percent"),
1100
- headline("aws/elasticache/databasememoryusagepercentage", exports.HEADLINE_MEMORY, "percent"),
1231
+ // Redis and Valkey say how full they are; Memcached does not.
1232
+ headline("aws/elasticache/databasememoryusagepercentage", exports.HEADLINE_MEMORY, "percent", { onlySome: true }),
1101
1233
  headline("aws/elasticache/currconnections", exports.HEADLINE_CONNECTIONS, "count"),
1102
1234
  ],
1103
1235
  },
@@ -1107,6 +1239,15 @@ exports.CLOUD_HEADLINE_READINGS = [
1107
1239
  readings: [
1108
1240
  headline("aws/sqs/approximatenumberofmessagesvisible", exports.HEADLINE_MESSAGES_WAITING, "count"),
1109
1241
  headline("aws/sqs/approximateageofoldestmessage", exports.HEADLINE_OLDEST_MESSAGE, "seconds"),
1242
+ headline("aws/sqs/numberofmessagessent", exports.HEADLINE_MESSAGES_IN, "perPeriod"),
1243
+ ],
1244
+ },
1245
+ {
1246
+ provider: AWS,
1247
+ types: ["AWS::SNS::Topic"],
1248
+ readings: [
1249
+ headline("aws/sns/numberofmessagespublished", exports.HEADLINE_MESSAGES_IN, "perPeriod"),
1250
+ headline("aws/sns/numberofnotificationsfailed", exports.HEADLINE_ERRORS, "perPeriod"),
1110
1251
  ],
1111
1252
  },
1112
1253
  {
@@ -1115,15 +1256,50 @@ exports.CLOUD_HEADLINE_READINGS = [
1115
1256
  readings: [
1116
1257
  headline("aws/apigateway/count", exports.HEADLINE_REQUESTS, "perPeriod"),
1117
1258
  headline("aws/apigateway/latency", exports.HEADLINE_LATENCY, "milliseconds"),
1259
+ headline("aws/apigateway/5xxerror", exports.HEADLINE_ERRORS, "perPeriod"),
1118
1260
  ],
1119
1261
  },
1262
+ {
1263
+ provider: AWS,
1264
+ types: ["AWS::AmazonMQ::Broker"],
1265
+ readings: [
1266
+ headline("aws/amazonmq/cpuutilization", exports.HEADLINE_CPU, "percent"),
1267
+ ],
1268
+ },
1269
+ // ---- Azure ------------------------------------------------------------
1120
1270
  {
1121
1271
  provider: AZURE,
1122
- types: [
1123
- "Microsoft.Compute/virtualMachines",
1124
- "Microsoft.Compute/virtualMachineScaleSets",
1272
+ types: ["Microsoft.Compute/virtualMachines"],
1273
+ readings: [
1274
+ headline("percentage_cpu", exports.HEADLINE_CPU, "percent"),
1275
+ headline("available_memory_bytes", exports.HEADLINE_FREE_MEMORY, "bytes"),
1276
+ headline("network_in_total", exports.HEADLINE_NETWORK_IN, "bytesPerPeriod"),
1277
+ headline("network_out_total", exports.HEADLINE_NETWORK_OUT, "bytesPerPeriod"),
1278
+ headline("disk_read_bytes", exports.HEADLINE_DISK_READ, "bytesPerPeriod"),
1279
+ headline("disk_write_bytes", exports.HEADLINE_DISK_WRITE, "bytesPerPeriod"),
1280
+ // 1 while the machine is up: drawn as a share of the minute.
1281
+ headline("vmavailabilitymetric", exports.HEADLINE_AVAILABILITY, "ratio"),
1282
+ ],
1283
+ },
1284
+ {
1285
+ provider: AZURE,
1286
+ types: ["Microsoft.Compute/virtualMachineScaleSets"],
1287
+ readings: [
1288
+ headline("percentage_cpu", exports.HEADLINE_CPU, "percent"),
1289
+ headline("available_memory_bytes", exports.HEADLINE_FREE_MEMORY, "bytes"),
1290
+ headline("network_in_total", exports.HEADLINE_NETWORK_IN, "bytesPerPeriod"),
1291
+ headline("network_out_total", exports.HEADLINE_NETWORK_OUT, "bytesPerPeriod"),
1292
+ ],
1293
+ },
1294
+ {
1295
+ provider: AZURE,
1296
+ types: ["Microsoft.Compute/disks"],
1297
+ readings: [
1298
+ headline("composite_disk_read_bytes/sec", exports.HEADLINE_DISK_READ, "bytesPerSecond"),
1299
+ headline("composite_disk_write_bytes/sec", exports.HEADLINE_DISK_WRITE, "bytesPerSecond"),
1300
+ headline("composite_disk_read_operations/sec", exports.HEADLINE_READ_OPERATIONS, "perSecond"),
1301
+ headline("composite_disk_write_operations/sec", exports.HEADLINE_WRITE_OPERATIONS, "perSecond"),
1125
1302
  ],
1126
- readings: [headline("percentage_cpu", exports.HEADLINE_CPU, "percent")],
1127
1303
  },
1128
1304
  {
1129
1305
  provider: AZURE,
@@ -1131,6 +1307,12 @@ exports.CLOUD_HEADLINE_READINGS = [
1131
1307
  readings: [
1132
1308
  headline("requests", exports.HEADLINE_REQUESTS, "count"),
1133
1309
  headline("httpresponsetime", exports.HEADLINE_RESPONSE_TIME, "seconds"),
1310
+ headline("http5xx", exports.HEADLINE_ERRORS, "perPeriod"),
1311
+ headline("memoryworkingset", exports.HEADLINE_MEMORY, "bytes"),
1312
+ // Only a function app runs functions.
1313
+ headline("functionexecutioncount", exports.HEADLINE_INVOCATIONS, "perPeriod", {
1314
+ onlySome: true,
1315
+ }),
1134
1316
  ],
1135
1317
  },
1136
1318
  {
@@ -1139,6 +1321,25 @@ exports.CLOUD_HEADLINE_READINGS = [
1139
1321
  readings: [
1140
1322
  headline("cpupercentage", exports.HEADLINE_CPU, "percent"),
1141
1323
  headline("memorypercentage", exports.HEADLINE_MEMORY, "percent"),
1324
+ headline("httpqueuelength", exports.HEADLINE_QUEUE_LENGTH, "count"),
1325
+ ],
1326
+ },
1327
+ {
1328
+ provider: AZURE,
1329
+ types: ["Microsoft.App/containerApps"],
1330
+ readings: [
1331
+ headline("requests", exports.HEADLINE_REQUESTS, "perPeriod"),
1332
+ headline("workingsetbytes", exports.HEADLINE_MEMORY, "bytes"),
1333
+ headline("restartcount", exports.HEADLINE_RESTARTS, "perPeriod"),
1334
+ ],
1335
+ },
1336
+ {
1337
+ provider: AZURE,
1338
+ types: ["Microsoft.ContainerService/managedClusters"],
1339
+ readings: [
1340
+ headline("node_cpu_usage_percentage", exports.HEADLINE_CPU, "percent"),
1341
+ headline("node_memory_working_set_percentage", exports.HEADLINE_MEMORY, "percent"),
1342
+ headline("kube_pod_status_ready", exports.HEADLINE_PODS_READY, "count"),
1142
1343
  ],
1143
1344
  },
1144
1345
  {
@@ -1152,6 +1353,11 @@ exports.CLOUD_HEADLINE_READINGS = [
1152
1353
  headline("storage_percent", exports.HEADLINE_STORAGE_USED, "percent"),
1153
1354
  ],
1154
1355
  },
1356
+ {
1357
+ provider: AZURE,
1358
+ types: ["Microsoft.Sql/servers/databases"],
1359
+ readings: [headline("sessions_percent", exports.HEADLINE_SESSIONS, "percent")],
1360
+ },
1155
1361
  {
1156
1362
  provider: AZURE,
1157
1363
  types: [
@@ -1165,6 +1371,15 @@ exports.CLOUD_HEADLINE_READINGS = [
1165
1371
  headline("active_connections", exports.HEADLINE_CONNECTIONS, "count"),
1166
1372
  ],
1167
1373
  },
1374
+ {
1375
+ provider: AZURE,
1376
+ types: ["Microsoft.DocumentDB/databaseAccounts"],
1377
+ readings: [
1378
+ headline("totalrequests", exports.HEADLINE_REQUESTS, "perPeriod"),
1379
+ headline("normalizedruconsumption", exports.HEADLINE_REQUEST_UNITS, "percent"),
1380
+ headline("serversidelatency", exports.HEADLINE_LATENCY, "milliseconds"),
1381
+ ],
1382
+ },
1168
1383
  {
1169
1384
  provider: AZURE,
1170
1385
  types: ["Microsoft.Cache/redis"],
@@ -1177,13 +1392,135 @@ exports.CLOUD_HEADLINE_READINGS = [
1177
1392
  {
1178
1393
  provider: AZURE,
1179
1394
  types: ["Microsoft.Storage/storageAccounts"],
1180
- readings: [headline("availability", exports.HEADLINE_AVAILABILITY, "percent")],
1395
+ readings: [
1396
+ headline("availability", exports.HEADLINE_AVAILABILITY, "percent"),
1397
+ headline("transactions", exports.HEADLINE_REQUESTS, "perPeriod"),
1398
+ headline("successe2elatency", exports.HEADLINE_LATENCY, "milliseconds"),
1399
+ // Written once an hour: a read between two writes may not bring it.
1400
+ headline("usedcapacity", exports.HEADLINE_STORAGE_USED, "bytes", {
1401
+ onlySome: true,
1402
+ }),
1403
+ ],
1404
+ },
1405
+ {
1406
+ provider: AZURE,
1407
+ types: ["Microsoft.KeyVault/vaults"],
1408
+ readings: [
1409
+ headline("availability", exports.HEADLINE_AVAILABILITY, "percent"),
1410
+ headline("serviceapihit", exports.HEADLINE_REQUESTS, "perPeriod"),
1411
+ headline("serviceapilatency", exports.HEADLINE_LATENCY, "milliseconds"),
1412
+ ],
1181
1413
  },
1414
+ {
1415
+ provider: AZURE,
1416
+ types: ["Microsoft.ServiceBus/namespaces"],
1417
+ readings: [
1418
+ headline("incomingmessages", exports.HEADLINE_MESSAGES_IN, "perPeriod"),
1419
+ headline("outgoingmessages", exports.HEADLINE_MESSAGES_OUT, "perPeriod"),
1420
+ headline("activemessages", exports.HEADLINE_MESSAGES_WAITING, "count"),
1421
+ headline("deadletteredmessages", exports.HEADLINE_DEAD_LETTERED, "count"),
1422
+ ],
1423
+ },
1424
+ {
1425
+ provider: AZURE,
1426
+ types: ["Microsoft.EventHub/namespaces"],
1427
+ readings: [
1428
+ headline("incomingmessages", exports.HEADLINE_MESSAGES_IN, "perPeriod"),
1429
+ headline("outgoingmessages", exports.HEADLINE_MESSAGES_OUT, "perPeriod"),
1430
+ ],
1431
+ },
1432
+ {
1433
+ provider: AZURE,
1434
+ types: ["Microsoft.Network/loadBalancers"],
1435
+ readings: [
1436
+ // Data path availability: the load balancer's own frontends.
1437
+ headline("vipavailability", exports.HEADLINE_AVAILABILITY, "percent"),
1438
+ // Health probe status: the share of its backends answering.
1439
+ headline("dipavailability", exports.HEADLINE_HEALTHY_BACKENDS, "percent"),
1440
+ headline("bytecount", exports.HEADLINE_TRAFFIC, "bytesPerPeriod"),
1441
+ ],
1442
+ },
1443
+ {
1444
+ provider: AZURE,
1445
+ types: ["Microsoft.Network/applicationGateways"],
1446
+ readings: [
1447
+ headline("totalrequests", exports.HEADLINE_REQUESTS, "perPeriod"),
1448
+ headline("applicationgatewaytotaltime", exports.HEADLINE_RESPONSE_TIME, "milliseconds"),
1449
+ headline("failedrequests", exports.HEADLINE_ERRORS, "perPeriod"),
1450
+ headline("unhealthyhostcount", exports.HEADLINE_UNHEALTHY_HOSTS, "count"),
1451
+ headline("throughput", exports.HEADLINE_THROUGHPUT, "bytesPerSecond"),
1452
+ ],
1453
+ },
1454
+ {
1455
+ provider: AZURE,
1456
+ types: ["Microsoft.Network/publicIPAddresses"],
1457
+ readings: [
1458
+ headline("vipavailability", exports.HEADLINE_AVAILABILITY, "percent"),
1459
+ headline("bytecount", exports.HEADLINE_TRAFFIC, "bytesPerPeriod"),
1460
+ ],
1461
+ },
1462
+ {
1463
+ provider: AZURE,
1464
+ types: ["Microsoft.Network/azureFirewalls"],
1465
+ readings: [
1466
+ headline("firewallhealth", exports.HEADLINE_HEALTH, "percent"),
1467
+ headline("throughput", exports.HEADLINE_THROUGHPUT, "bitsPerSecond"),
1468
+ headline("snatportutilization", exports.HEADLINE_PORTS_USED, "percent"),
1469
+ ],
1470
+ },
1471
+ {
1472
+ provider: AZURE,
1473
+ types: ["Microsoft.Network/natGateways"],
1474
+ readings: [
1475
+ headline("datapathavailability", exports.HEADLINE_AVAILABILITY, "percent"),
1476
+ headline("bytecount", exports.HEADLINE_TRAFFIC, "bytesPerPeriod"),
1477
+ headline("snatconnectioncount", exports.HEADLINE_CONNECTIONS, "perPeriod"),
1478
+ ],
1479
+ },
1480
+ {
1481
+ provider: AZURE,
1482
+ types: ["Microsoft.Cdn/profiles"],
1483
+ readings: [
1484
+ headline("requestcount", exports.HEADLINE_REQUESTS, "perPeriod"),
1485
+ headline("percentage5xx", exports.HEADLINE_ERRORS, "percent"),
1486
+ headline("totallatency", exports.HEADLINE_LATENCY, "milliseconds"),
1487
+ ],
1488
+ },
1489
+ {
1490
+ provider: AZURE,
1491
+ types: ["Microsoft.ApiManagement/service"],
1492
+ readings: [
1493
+ headline("requests", exports.HEADLINE_REQUESTS, "perPeriod"),
1494
+ headline("duration", exports.HEADLINE_RESPONSE_TIME, "milliseconds"),
1495
+ headline("capacity", exports.HEADLINE_CAPACITY, "percent"),
1496
+ ],
1497
+ },
1498
+ {
1499
+ provider: AZURE,
1500
+ types: ["Microsoft.CognitiveServices/accounts"],
1501
+ readings: [
1502
+ headline("totalcalls", exports.HEADLINE_REQUESTS, "perPeriod"),
1503
+ headline("totalerrors", exports.HEADLINE_ERRORS, "perPeriod"),
1504
+ headline("latency", exports.HEADLINE_LATENCY, "milliseconds"),
1505
+ ],
1506
+ },
1507
+ {
1508
+ provider: AZURE,
1509
+ types: ["Microsoft.Logic/workflows"],
1510
+ readings: [
1511
+ headline("runsstarted", exports.HEADLINE_RUNS, "perPeriod"),
1512
+ headline("runsfailed", exports.HEADLINE_FAILED_RUNS, "perPeriod"),
1513
+ headline("runlatency", exports.HEADLINE_DURATION, "seconds"),
1514
+ ],
1515
+ },
1516
+ // ---- Google Cloud -----------------------------------------------------
1182
1517
  {
1183
1518
  provider: GCP,
1184
1519
  types: ["gce_instance"],
1185
1520
  readings: [
1186
1521
  headline("compute.googleapis.com/instance/cpu/utilization", exports.HEADLINE_CPU, "ratio"),
1522
+ headline("compute.googleapis.com/instance/network/received_bytes_count", exports.HEADLINE_NETWORK_IN, "bytesPerSecond"),
1523
+ headline("compute.googleapis.com/instance/network/sent_bytes_count", exports.HEADLINE_NETWORK_OUT, "bytesPerSecond"),
1187
1524
  ],
1188
1525
  },
1189
1526
  {
@@ -1193,6 +1530,24 @@ exports.CLOUD_HEADLINE_READINGS = [
1193
1530
  headline("cloudsql.googleapis.com/database/cpu/utilization", exports.HEADLINE_CPU, "ratio"),
1194
1531
  headline("cloudsql.googleapis.com/database/memory/utilization", exports.HEADLINE_MEMORY, "ratio"),
1195
1532
  headline("cloudsql.googleapis.com/database/disk/utilization", exports.HEADLINE_STORAGE_USED, "ratio"),
1533
+ headline("cloudsql.googleapis.com/database/network/connections", exports.HEADLINE_CONNECTIONS, "count"),
1534
+ ],
1535
+ },
1536
+ {
1537
+ provider: GCP,
1538
+ types: ["gcs_bucket"],
1539
+ readings: [
1540
+ // Sampled far less often than it is read: a read may not bring it.
1541
+ headline("storage.googleapis.com/storage/total_bytes", exports.HEADLINE_STORAGE_USED, "bytes", { onlySome: true }),
1542
+ headline("storage.googleapis.com/api/request_count", exports.HEADLINE_REQUESTS, "perSecond"),
1543
+ ],
1544
+ },
1545
+ {
1546
+ provider: GCP,
1547
+ types: ["https_lb_rule"],
1548
+ readings: [
1549
+ headline("loadbalancing.googleapis.com/https/request_count", exports.HEADLINE_REQUESTS, "perSecond"),
1550
+ headline("loadbalancing.googleapis.com/https/total_latencies", exports.HEADLINE_LATENCY, "milliseconds"),
1196
1551
  ],
1197
1552
  },
1198
1553
  {
@@ -1201,6 +1556,14 @@ exports.CLOUD_HEADLINE_READINGS = [
1201
1556
  readings: [
1202
1557
  headline("run.googleapis.com/request_count", exports.HEADLINE_REQUESTS, "perSecond"),
1203
1558
  headline("run.googleapis.com/request_latencies", exports.HEADLINE_LATENCY, "milliseconds"),
1559
+ headline("run.googleapis.com/container/instance_count", exports.HEADLINE_INSTANCES, "count"),
1560
+ ],
1561
+ },
1562
+ {
1563
+ provider: GCP,
1564
+ types: ["cloud_function"],
1565
+ readings: [
1566
+ headline("cloudfunctions.googleapis.com/function/execution_count", exports.HEADLINE_INVOCATIONS, "perSecond"),
1204
1567
  ],
1205
1568
  },
1206
1569
  {
@@ -1211,6 +1574,35 @@ exports.CLOUD_HEADLINE_READINGS = [
1211
1574
  headline("pubsub.googleapis.com/subscription/oldest_unacked_message_age", exports.HEADLINE_OLDEST_MESSAGE, "seconds"),
1212
1575
  ],
1213
1576
  },
1577
+ {
1578
+ provider: GCP,
1579
+ types: ["pubsub_topic"],
1580
+ readings: [
1581
+ headline("pubsub.googleapis.com/topic/send_message_operation_count", exports.HEADLINE_MESSAGES_IN, "perSecond"),
1582
+ ],
1583
+ },
1584
+ {
1585
+ provider: GCP,
1586
+ types: ["redis_instance"],
1587
+ readings: [
1588
+ headline("redis.googleapis.com/stats/memory/usage_ratio", exports.HEADLINE_MEMORY, "ratio"),
1589
+ headline("redis.googleapis.com/clients/connected", exports.HEADLINE_CONNECTIONS, "count"),
1590
+ ],
1591
+ },
1592
+ {
1593
+ provider: GCP,
1594
+ types: ["spanner_instance"],
1595
+ readings: [
1596
+ headline("spanner.googleapis.com/instance/cpu/utilization", exports.HEADLINE_CPU, "ratio"),
1597
+ ],
1598
+ },
1599
+ {
1600
+ provider: GCP,
1601
+ types: ["cloud_tasks_queue"],
1602
+ readings: [
1603
+ headline("cloudtasks.googleapis.com/queue/depth", exports.HEADLINE_MESSAGES_WAITING, "count"),
1604
+ ],
1605
+ },
1214
1606
  ];
1215
1607
  /*
1216
1608
  * ---------------------------------------------------------------------------
@@ -19,21 +19,48 @@ export const CLOUD_STORAGE_FULL_PERCENT = commonJsModule.CLOUD_STORAGE_FULL_PERC
19
19
  export const CLOUD_STORAGE_HIGH_PERCENT = commonJsModule.CLOUD_STORAGE_HIGH_PERCENT;
20
20
  export const CloudHealthSeverity = commonJsModule.CloudHealthSeverity;
21
21
  export const HEADLINE_AVAILABILITY = commonJsModule.HEADLINE_AVAILABILITY;
22
+ export const HEADLINE_CAPACITY = commonJsModule.HEADLINE_CAPACITY;
22
23
  export const HEADLINE_CONNECTIONS = commonJsModule.HEADLINE_CONNECTIONS;
23
24
  export const HEADLINE_CPU = commonJsModule.HEADLINE_CPU;
25
+ export const HEADLINE_DEAD_LETTERED = commonJsModule.HEADLINE_DEAD_LETTERED;
26
+ export const HEADLINE_DISK_READ = commonJsModule.HEADLINE_DISK_READ;
27
+ export const HEADLINE_DISK_WRITE = commonJsModule.HEADLINE_DISK_WRITE;
24
28
  export const HEADLINE_DURATION = commonJsModule.HEADLINE_DURATION;
25
29
  export const HEADLINE_ERRORS = commonJsModule.HEADLINE_ERRORS;
30
+ export const HEADLINE_FAILED_RUNS = commonJsModule.HEADLINE_FAILED_RUNS;
31
+ export const HEADLINE_FREE_MEMORY = commonJsModule.HEADLINE_FREE_MEMORY;
26
32
  export const HEADLINE_FREE_STORAGE = commonJsModule.HEADLINE_FREE_STORAGE;
33
+ export const HEADLINE_HEALTH = commonJsModule.HEADLINE_HEALTH;
34
+ export const HEADLINE_HEALTHY_BACKENDS = commonJsModule.HEADLINE_HEALTHY_BACKENDS;
35
+ export const HEADLINE_INSTANCES = commonJsModule.HEADLINE_INSTANCES;
27
36
  export const HEADLINE_INVOCATIONS = commonJsModule.HEADLINE_INVOCATIONS;
28
37
  export const HEADLINE_LATENCY = commonJsModule.HEADLINE_LATENCY;
29
38
  export const HEADLINE_MEMORY = commonJsModule.HEADLINE_MEMORY;
39
+ export const HEADLINE_MESSAGES_IN = commonJsModule.HEADLINE_MESSAGES_IN;
40
+ export const HEADLINE_MESSAGES_OUT = commonJsModule.HEADLINE_MESSAGES_OUT;
30
41
  export const HEADLINE_MESSAGES_WAITING = commonJsModule.HEADLINE_MESSAGES_WAITING;
42
+ export const HEADLINE_NETWORK_IN = commonJsModule.HEADLINE_NETWORK_IN;
43
+ export const HEADLINE_NETWORK_OUT = commonJsModule.HEADLINE_NETWORK_OUT;
31
44
  export const HEADLINE_OLDEST_MESSAGE = commonJsModule.HEADLINE_OLDEST_MESSAGE;
45
+ export const HEADLINE_PODS_READY = commonJsModule.HEADLINE_PODS_READY;
46
+ export const HEADLINE_PORTS_USED = commonJsModule.HEADLINE_PORTS_USED;
47
+ export const HEADLINE_QUEUE_LENGTH = commonJsModule.HEADLINE_QUEUE_LENGTH;
48
+ export const HEADLINE_READ_LATENCY = commonJsModule.HEADLINE_READ_LATENCY;
49
+ export const HEADLINE_READ_OPERATIONS = commonJsModule.HEADLINE_READ_OPERATIONS;
32
50
  export const HEADLINE_REQUESTS = commonJsModule.HEADLINE_REQUESTS;
51
+ export const HEADLINE_REQUEST_UNITS = commonJsModule.HEADLINE_REQUEST_UNITS;
33
52
  export const HEADLINE_RESPONSE_TIME = commonJsModule.HEADLINE_RESPONSE_TIME;
53
+ export const HEADLINE_RESTARTS = commonJsModule.HEADLINE_RESTARTS;
54
+ export const HEADLINE_RUNS = commonJsModule.HEADLINE_RUNS;
34
55
  export const HEADLINE_SERVER_LOAD = commonJsModule.HEADLINE_SERVER_LOAD;
56
+ export const HEADLINE_SESSIONS = commonJsModule.HEADLINE_SESSIONS;
35
57
  export const HEADLINE_STORAGE_USED = commonJsModule.HEADLINE_STORAGE_USED;
58
+ export const HEADLINE_THROTTLED = commonJsModule.HEADLINE_THROTTLED;
59
+ export const HEADLINE_THROUGHPUT = commonJsModule.HEADLINE_THROUGHPUT;
60
+ export const HEADLINE_TRAFFIC = commonJsModule.HEADLINE_TRAFFIC;
36
61
  export const HEADLINE_UNHEALTHY_HOSTS = commonJsModule.HEADLINE_UNHEALTHY_HOSTS;
62
+ export const HEADLINE_WRITE_LATENCY = commonJsModule.HEADLINE_WRITE_LATENCY;
63
+ export const HEADLINE_WRITE_OPERATIONS = commonJsModule.HEADLINE_WRITE_OPERATIONS;
37
64
  export const REASON_AVAILABILITY_LOW = commonJsModule.REASON_AVAILABILITY_LOW;
38
65
  export const REASON_CAPACITY_HIGH = commonJsModule.REASON_CAPACITY_HIGH;
39
66
  export const REASON_CLUSTER_RED = commonJsModule.REASON_CLUSTER_RED;
@@ -82,6 +109,7 @@ export const getCloudReadingKeysForType = commonJsModule.getCloudReadingKeysForT
82
109
  export const getCloudReadingPeriodSeconds = commonJsModule.getCloudReadingPeriodSeconds;
83
110
  export const hasCloudHealthRules = commonJsModule.hasCloudHealthRules;
84
111
  export const hasFreshCloudReadings = commonJsModule.hasFreshCloudReadings;
112
+ export const isCloudHeadlineExpected = commonJsModule.isCloudHeadlineExpected;
85
113
  export const isCloudResourceReporting = commonJsModule.isCloudResourceReporting;
86
114
  export const readCloudResourceReadings = commonJsModule.readCloudResourceReadings;
87
115
  export const toCloudDate = commonJsModule.toCloudDate;
@@ -0,0 +1,32 @@
1
+ import { RefusalWithValues } from "../Exception/RefusalWithValues.mjs";
2
+ export declare const DataCheckFromSentenceRefusal: {
3
+ noRule: string;
4
+ tableNotFound: string;
5
+ engineNotChecked: string;
6
+ answerNotACheck: string;
7
+ queryNamesNoValue: string;
8
+ pipelineNamesNoValue: string;
9
+ };
10
+ export declare const RULE_NOT_A_CHECK_REFUSAL: RefusalWithValues;
11
+ export declare const CHECK_NOT_WRITTEN_REFUSAL: RefusalWithValues;
12
+ export declare const CustomSqlRefusal: {
13
+ noQuery: string;
14
+ tooLong: string;
15
+ notSingleQuery: string;
16
+ notARead: string;
17
+ writes: string;
18
+ dataverseNoWith: string;
19
+ };
20
+ export declare const MongoPipelineRefusal: {
21
+ noPipeline: string;
22
+ tooLong: string;
23
+ notJson: string;
24
+ writes: string;
25
+ };
26
+ export declare const DataReconciliationRefusal: {
27
+ notFound: string;
28
+ sourceNeedsTable: string;
29
+ targetNeedsTable: string;
30
+ missingStatuses: string;
31
+ };
32
+ export declare const DATA_CHECK_REFUSALS_WITH_VALUES: ReadonlyArray<RefusalWithValues>;