@daemonitor/plugins 1.1.23 → 1.1.24

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.
@@ -149,6 +149,8 @@ async function collectContainers(bin) {
149
149
  continue;
150
150
  c.healthFailingStreak = Number(h.FailingStreak) || 0;
151
151
  const last = Array.isArray(h.Log) && h.Log.length ? h.Log[h.Log.length - 1] : null;
152
+ if (last && typeof last.ExitCode === "number")
153
+ c.healthExitCode = last.ExitCode;
152
154
  if (last?.Output) {
153
155
  // Healthcheck output is often multi-line and ends in a newline; collapse
154
156
  // it so it fits an alert line, and keep the head where the error is.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daemonitor/plugins",
3
- "version": "1.1.23",
3
+ "version": "1.1.24",
4
4
  "description": "daemonitor plugins",
5
5
  "types": "types/index.d.ts",
6
6
  "main": "dist/index.js",