the-moby-effect
Version:
Moby/Docker API client built using effect-ts
48 lines (47 loc) • 2.37 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ContainerCPUUsage = 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 ContainerCPUUsage extends /*#__PURE__*/Schema.Class("ContainerCPUUsage")({
/**
* Total CPU time consumed.
*
* Linux units: nanoseconds. Windows units: 100's of nanoseconds
*/
total_usage: MobySchemas.UInt64,
/**
* Linux: total CPU time consumed per core. Windows: not used.
*
* Units: nanoseconds.
*/
percpu_usage: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(MobySchemas.UInt64), {
nullable: true
}),
/**
* Linux: time spent by tasks of the cgroup in kernel mode, units
* nanoseconds
*
* Windows: time spent by all container processes in kernel mode, units
* 100's of nanoseconds. Not populated for Hyper-V Containers.
*/
usage_in_kernelmode: MobySchemas.UInt64,
/**
* Linux: time spent by tasks of the cgroup in user mode, units
* nanoseconds
*
* Windows: time spent by all container processes in user mode, units
* 100's of nanoseconds. Not populated for Hyper-V Containers.
*/
usage_in_usermode: MobySchemas.UInt64
}, {
identifier: "ContainerCPUUsage",
title: "container.CPUUsage",
documentation: "https://github.com/moby/moby/blob/a21b1a2d12e2c01542cb191eb526d7bfad0641e3/api/types/container/stats.go#L16-L38"
}) {}
exports.ContainerCPUUsage = ContainerCPUUsage;
//# sourceMappingURL=ContainerCPUUsage.generated.js.map