UNPKG

the-moby-effect

Version:
31 lines (30 loc) 2.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContainerMemoryStats = void 0; var Schema = _interopRequireWildcard(require("effect/Schema")); var MobySchemas = _interopRequireWildcard(require("../schemas/index.js")); function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } class ContainerMemoryStats extends /*#__PURE__*/Schema.Class("ContainerMemoryStats")({ usage: /*#__PURE__*/Schema.optional(MobySchemas.UInt64), max_usage: /*#__PURE__*/Schema.optional(MobySchemas.UInt64), stats: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Record({ key: Schema.String, value: MobySchemas.UInt64 }), { nullable: true }), failcnt: /*#__PURE__*/Schema.optional(MobySchemas.UInt64), limit: /*#__PURE__*/Schema.optional(MobySchemas.UInt64), commitbytes: /*#__PURE__*/Schema.optional(MobySchemas.UInt64), commitpeakbytes: /*#__PURE__*/Schema.optional(MobySchemas.UInt64), privateworkingset: /*#__PURE__*/Schema.optional(MobySchemas.UInt64) }, { identifier: "ContainerMemoryStats", title: "container.MemoryStats", documentation: "https://github.com/moby/moby/blob/a21b1a2d12e2c01542cb191eb526d7bfad0641e3/api/types/container/stats.go#L55-L80" }) {} exports.ContainerMemoryStats = ContainerMemoryStats; //# sourceMappingURL=ContainerMemoryStats.generated.js.map